heavy-report-model.xml
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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>