monitor-rules-model.xml
1.54 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.home.rule"
enable-sax-parser="true" enable-xml-parser="true" enable-xml-builder="true" enable-json-parser="true" enable-json-builder="true">
<entity name="monitor-rules" root="true">
<entity-ref name="rule" type="map" names="rules" method-find-or-create='true' />
</entity>
<entity name="rule">
<attribute name="id" value-type="String" key="true" />
<entity-ref name="metric-item" type="list" names="metric-items" />
<entity-ref name="config" type="list" names="configs" />
</entity>
<entity name="metric-item">
<attribute name="monitorCount" value-type="boolean" />
<attribute name="monitorSum" value-type="boolean" />
<attribute name="monitorAvg" value-type="boolean" />
<attribute name="productText" value-type="String" />
<attribute name="metricItemText" value-type="String" />
</entity>
<entity name="config">
<attribute name="starttime" value-type="String" />
<attribute name="endtime" value-type="String" />
<entity-ref name="condition" type="list" names="conditions" />
</entity>
<entity name="condition">
<attribute name="title" value-type="String" />
<attribute name="minute" value-type="int" default-value="3" />
<attribute name="alertType" value-type="String" default-value="error" />
<entity-ref name="sub-condition" type="list" names="sub-conditions" />
</entity>
<entity name="sub-condition">
<attribute name="type" value-type="String" />
<attribute name="text" value-type="String" />
</entity>
</model>