matrix-report-model.xml 1.51 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.consumer.matrix.model" enable-merger="true" enable-sax-parser="true"  
	enable-base-visitor="true"  enable-native-parser="true"  enable-native-builder="true">
  <entity name="matrix-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="domain" value-type="String" type="set" names="domain-names" />
    <entity-ref name="matrix" type="map" names="matrixs" method-find-or-create="true"/>
  </entity>
  <entity name="matrix">
    <attribute name="type" value-type="String" />
    <attribute name="name" value-type="String" key="true"/>
    <attribute name="count" value-type="int"  primitive="true"/>
    <attribute name="totalTime" value-type="long"  primitive="true"/>
	<attribute name="url" value-type="String" />
    <entity-ref name="ratio" type="map" names="ratios" method-find-or-create="true"/>
  </entity>
  <entity name="ratio">
    <attribute name="type" value-type="String" key="true"/>
    <attribute name="min" value-type="int"  primitive="true"/>
    <attribute name="max" value-type="int"  primitive="true"/>
	<attribute name="url" value-type="String" />
    <attribute name="totalCount" value-type="int"  primitive="true"/>
    <attribute name="totalTime" value-type="long"  primitive="true"/>
  </entity>
</model>