heartbeat-report-model.xml
3.06 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.consumer.heartbeat.model" enable-merger="true" enable-sax-parser="true"
enable-base-visitor="true" enable-native-parser="true" enable-native-builder="true">
<entity name="heartbeat-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" />
<element name="ip" value-type="String" type="set" names="ips" />
<entity-ref name="machine" type="map" names="machines" method-find-or-create="true"/>
</entity>
<entity name="machine">
<attribute name="ip" value-type="String" key="true"/>
<entity-ref name="period" type="list" names="periods" />
<attribute name="classpath" value-type="String"/>
</entity>
<entity name="period" dynamic-attributes="true">
<attribute name="minute" value-type="int" primitive="true" key="true" />
<attribute name="thread-count" value-type="int" primitive="true" />
<attribute name="daemon-count" value-type="int" primitive="true" />
<attribute name="total-started-count" value-type="int" primitive="true" />
<attribute name="cat-thread-count" value-type="int" primitive="true" />
<attribute name="pigeon-thread-count" value-type="int" primitive="true" />
<attribute name="http-thread-count" value-type="int" primitive="true" />
<attribute name="new-gc-count" value-type="long" primitive="true" />
<attribute name="old-gc-count" value-type="long" primitive="true" />
<attribute name="memory-free" value-type="long" primitive="true" />
<attribute name="heap-usage" value-type="long" primitive="true" />
<attribute name="none-heap-usage" value-type="long" primitive="true" />
<attribute name="system-load-average" value-type="double" primitive="true" format="0.00"/>
<attribute name="cat-message-produced" value-type="long" primitive="true" />
<attribute name="cat-message-overflow" value-type="long" primitive="true" />
<attribute name="cat-message-size" value-type="double" primitive="true" format="0.00"/>
<entity-ref name="disk" type="list" names="disks"/>
<entity-ref name="extension" type="map" names="extensions" method-find-or-create="true"/>
</entity>
<entity name="disk">
<attribute name="path" value-type="String" key="true"/>
<attribute name="total" value-type="long" primitive="true" />
<attribute name="free" value-type="long" primitive="true" />
<attribute name="usable" value-type="long" primitive="true" />
</entity>
<entity name="extension">
<attribute name="id" value-type="String" key="true"/>
<entity-ref name="detail" type="map" names="details" method-find-or-create="true"/>
</entity>
<entity name="detail">
<attribute name="id" value-type="String" key="true"/>
<attribute name="value" value-type="double" primitive="true"/>
</entity>
</model>