heavy-report-model.xml 1.95 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.home.heavy"  enable-merger="true"  enable-sax-parser="true"
	enable-base-visitor="true"  enable-xml-parser="false"  enable-xml-builder="false"  enable-native-parser="true"  enable-native-builder="true">
   <entity name="heavy-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" />
    <entity-ref name="heavy-sql" />
    <entity-ref name="heavy-call" />
    <entity-ref name="heavy-cache" />
  </entity>
  <entity name="heavy-sql">
    <entity-ref name="url" type="map" names="urls"  method-find-or-create='true'/>
    <entity-ref name="service" type="map" names="services"  method-find-or-create='true'/>
  </entity>
  <entity name="url">
    <attribute name="key" value-type="String" key="true"/>
    <attribute name="domain" value-type="String" />
    <attribute name="name" value-type="String" />
    <attribute name="logview" value-type="String" />
    <attribute name="count" value-type="long" primitive="true" />
  </entity>
  <entity name="service">
    <attribute name="key" value-type="String" key="true"/>
    <attribute name="domain" value-type="String" />
    <attribute name="name" value-type="String" />
    <attribute name="logview" value-type="String" />
    <attribute name="count" value-type="long" primitive="true" />
  </entity>
  <entity name="heavy-call">
    <entity-ref name="url" type="map" names="urls"  method-find-or-create='true'/>
    <entity-ref name="service" type="map" names="services"  method-find-or-create='true'/>
  </entity>
  <entity name="heavy-cache">
    <entity-ref name="url" type="map" names="urls"  method-find-or-create='true'/>
    <entity-ref name="service" type="map" names="services"  method-find-or-create='true'/>
  </entity>
</model>