欢迎使用Apptalking,本文档将帮助您快速理解产品的核心功能,如果在使用过程当中遇到了问题,欢迎通过邮件的方式进行问答。
报表API
Apptalking 控制台支持任意指标导出,可以非常方便的和第三方应用结合,使用HTTP协议,支持xml和json格式。
API 参数
URL地址:{应用安装路径}/controller/rest/applications/{系统名称}/metric-data
参数列表如下:
- output[json , xml]
性能指标导出的格式,json或者xml格式,默认使用xml格式。 - rollup[true, false]
是否汇总性能指标数据、默认true - use-cache-data[true , false]
是否使用缓存数据,默认false - metric-path
性能指标路径,可以在性能指标库中查询,复制获取。 - time-range-type[BEFORE_NOW , BETWEEN_TIMES]
时间戳类型,BEFORE_NOW 在当前时间以前,BETWEEN_TIMES 指定时间的范围。 - duration-in-mins
时间长度,分钟数,配合BEFORE_NOW 类型使用。 - start-time
开始时间,配合BETWEEN_TIMES类型使用 - end-time
结束时间,配合BETWEEN_TIMES类型使用
从指标库中复制指标路径
点击复制完整路径复制Metric Path。
点击复制Restful Url 复制 完整的API url。
数据实例
XML 数据: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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192<metric-datas>
<metric-data>
<metricId>1575</metricId>
<metricPath>
Business Transaction Performance|Business Transactions|App Server|MemoryTest.refresh|Calls per Minute
</metricPath>
<metricName>BTM|BTs|BT:80|Component:6|Calls per Minute</metricName>
<frequency>ONE_MIN</frequency>
<metricValues>
<metric-value>
<startTimeInMillis>1543833900000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543833960000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834020000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834080000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834140000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834200000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834260000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834320000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834380000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834440000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834500000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834560000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834620000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834680000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
<metric-value>
<startTimeInMillis>1543834740000</startTimeInMillis>
<value>4</value>
<min>0</min>
<max>0</max>
<current>4</current>
<sum>4</sum>
<count>1</count>
<standardDeviation>0.0</standardDeviation>
<occurrences>0</occurrences>
<useRange>false</useRange>
</metric-value>
</metricValues>
</metric-data>
</metric-datas>
JSON 数据: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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188[{
"frequency": "ONE_MIN",
"metricId": 1575,
"metricName": "BTM|BTs|BT:80|Component:6|Calls per Minute",
"metricPath": "Business Transaction Performance|Business Transactions|App Server|MemoryTest.refresh|Calls per Minute",
"metricValues": [
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834020000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834080000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834140000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834200000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834260000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834320000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834380000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834440000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834500000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834560000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834620000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834680000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834740000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834800000,
"sum": 4,
"useRange": false,
"value": 4
},
{
"count": 1,
"current": 4,
"max": 0,
"min": 0,
"occurrences": 0,
"standardDeviation": 0,
"startTimeInMillis": 1543834860000,
"sum": 4,
"useRange": false,
"value": 4
}
]
}]