Queries the observability capacity unit (OCU) usage data of Real User Monitoring (RUM).
Operation description
You can query the usage data for the current day at any time. You can query the usage data for the previous day only after 8:00 today.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| arms:GetRumOcuStatisticData | get | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| StartTime | long | Yes | The beginning of the time range to query. Unit: milliseconds. | 1600063200000 |
| EndTime | long | Yes | The end of the time range to query. Unit: milliseconds. | 1687849260000 |
| QueryType | string | No | The type of the query. To query non-time series data, set the value to INSTANT. To query time series data, set the value to TIME_SERIES. | TIME_SERIES |
| Filter | array<object> | No | The filter condition. Three types of filter conditions are provided:
| |
| object | No | |||
| Key | string | No | The key of the filter condition. Three types of filter conditions are provided:
| pid |
| OpType | string | No | The type of the operator. Valid value: in. | in |
| Value | any | No | The value of the filter condition. The value is a JSON array of strings. | ["b590xxxxx@2dcbxxxxx9", "b590xxxxx@2dcbxxxxx8"] |
| Group | array | No | The grouping fields. Valid values:
| |
| string | No | The grouping key. | [ "siteType", "dataType" ] | |
| Page | integer | Yes | The page number. | 1 |
| PageSize | integer | Yes | The number of entries per page. | 100 |
| RegionId | string | No | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "626037F5-FDEB-45B0-804C-B3C92797****",
"Code": 200,
"Message": null,
"Data": {
"Items": [
{
"key": {
"totalChargedSessionCount": 11008,
"__time__": 1717948800,
"appName": "Main console",
"totalOcu": 55,
"startTime": 1719244800,
"pid": "b5xxxxxuqs@1f59cxxxxxxxxxb",
"totalCount": 11
}
}
],
"Total": 100,
"Page": 1,
"PageSize": 100,
"Complete": true
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-08-16 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
