Application Performance Management Plus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | GetAppBatteryTrend | The API name. The current API name is GetAppBatteryTrend. |
Version | String | Yes | 2022-10-12 | The API version. The current API version is 2022-10-12. |
start_time | Integer | No | 1617225600 | Query start time (Unix timestamp). |
end_time | Integer | No | 1617312000 | Query end time (Unix timestamp). |
filters | No | - | The filter condition. You can specify multiple key‑value pairs to filter data. | |
granularity | Integer | No | 5 | Aggregation granularity, in minutes. |
metrics | String | No | battery_electric | Metric name to query |
statistic_scale | String | No | avg | Statistical scope.
|
scene | String | No | main_activity | Page name. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
op | String | No | in | The operator.
|
type | String | No | expression | The type of the filter condition.
|
value | String | No | 123456 | The filter value. |
values | Array of String | No | [123456] | The filter value. Multiple filter values are supported. |
map_key | String | No | key_1 | The key of the map type. It is required when the type is set to map. |
dimension | String | No | aid | The name of the condition. |
sub_conditions | No | - | The sub-condition. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
data | - | For requests without grouping, the list contains only one element. With grouping enabled, there are multiple elements, each representing a line. | |
error_msg | String | - | Error message. |
error_no | Integer | 0 | Error code. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
name | String | test123 | The name of the line. When grouped, the name needs to be set to the value of the grouping dimension. For example, it is used as the legend label for the curve. |
points | - | The data points on the curve. | |
total | Double | | The total count. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
alert | - | The alert message. | |
value | Double | 123 | The metric value. |
timestamp | Long | 1665417600 | The time when the metric occurred (Unix timestamp). |
readable_timestamp | String | 2022-10-11 | The time when the metric occurred (natural time). |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
msg | String | No error | The alert message. |
alert | Boolean | true | Whether an alert is required. |