dependency-report-model.xml
1.9 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.consumer.dependency.model"
enable-merger="true" enable-sax-parser="true" enable-base-visitor="true" enable-native-parser="true" enable-native-builder="true">
<entity name="dependency-report" root="true">
<attribute name="domain" value-type="String" key="true" />
<attribute name="startTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<attribute name="endTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<element name="domainName" value-type="String" type="set"
names="domain-names" />
<entity-ref name="segment" type="map" names="segments" method-find-or-create="true" />
</entity>
<entity name="segment">
<attribute name="id" value-type="int" key="true"/>
<entity-ref name="index" type="map" names="indexs" method-find-or-create="true"/>
<entity-ref name="dependency" type="map" names="dependencies" method-find-or-create="true"/>
</entity>
<entity name="index">
<attribute name="name" value-type="String" key="true"/>
<attribute name="total-count" value-type="long" method-inc="true" primitive="true"/>
<attribute name="error-count" value-type="long" method-inc="true" primitive="true"/>
<attribute name="sum" value-type="double" primitive="true" format="0.00"/>
<attribute name="avg" value-type="double" primitive="true" format="0.00"/>
</entity>
<entity name="dependency">
<attribute name="key" value-type="String" key="true"/>
<attribute name="target" value-type="String"/>
<attribute name="type" value-type="String"/>
<attribute name="total-count" value-type="long" method-inc="true" primitive="true"/>
<attribute name="error-count" value-type="long" method-inc="true" primitive="true"/>
<attribute name="avg" value-type="double" primitive="true" format="0.00"/>
<attribute name="sum" value-type="double" primitive="true" format="0.00"/>
</entity>
</model>