blob: f941ea96c19471d618c28d64fee4991fe950d059 [file] [log] [blame]
Jian Lid86fac32016-04-01 16:10:26 -07001{
2 "type": "object",
3 "title": "metrics",
4 "required": [
5 "metrics"
6 ],
7 "properties": {
8 "metrics": {
9 "type": "array",
10 "xml": {
11 "name": "metrics",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "metrics",
17 "required": [
18 "cpuLoad",
19 "totalCpuTime",
20 "sysCpuTime",
21 "userCpuTime",
22 "cpuIdleTime"
23 ],
24 "properties": {
25 "cpuLoad": {
26 "type": "object",
27 "required": [
28 "time",
29 "latest",
30 "average"
31 ],
32 "properties": {
33 "time": {
34 "type": "integer",
35 "format": "int64"
36 },
37 "latest": {
38 "type": "integer",
39 "format": "int64"
40 },
41 "average": {
42 "type": "integer",
43 "format": "int64"
44 }
45 }
46 },
47 "totalCpuTime": {
48 "type": "object",
49 "required": [
50 "time",
51 "latest",
52 "average"
53 ],
54 "properties": {
55 "time": {
56 "type": "integer",
57 "format": "int64"
58 },
59 "latest": {
60 "type": "integer",
61 "format": "int64"
62 },
63 "average": {
64 "type": "integer",
65 "format": "int64"
66 }
67 }
68 },
69 "sysCpuTime": {
70 "type": "object",
71 "required": [
72 "time",
73 "latest",
74 "average"
75 ],
76 "properties": {
77 "time": {
78 "type": "integer",
79 "format": "int64"
80 },
81 "latest": {
82 "type": "integer",
83 "format": "int64"
84 },
85 "average": {
86 "type": "integer",
87 "format": "int64"
88 }
89 }
90 },
91 "userCpuTime": {
92 "type": "object",
93 "required": [
94 "time",
95 "latest",
96 "average"
97 ],
98 "properties": {
99 "time": {
100 "type": "integer",
101 "format": "int64"
102 },
103 "latest": {
104 "type": "integer",
105 "format": "int64"
106 },
107 "average": {
108 "type": "integer",
109 "format": "int64"
110 }
111 }
112 },
113 "cpuIdleTime": {
114 "type": "object",
115 "required": [
116 "time",
117 "latest",
118 "average"
119 ],
120 "properties": {
121 "time": {
122 "type": "integer",
123 "format": "int64"
124 },
125 "latest": {
126 "type": "integer",
127 "format": "int64"
128 },
129 "average": {
130 "type": "integer",
131 "format": "int64"
132 }
133 }
134 }
135 }
136 }
137 }
138 }
139}