ListMeasureData
Queries the statistics on the number of phone call-based alerts or text message-based alerts reported within the tenant to which your account belongs during the previous 30 days.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainCode |
string |
Yes |
The measurement item. Valid values:
|
DideAlarmPhone |
| ComponentCode |
string |
Yes |
The metering component. Valid values:
|
Count |
| StartTime |
integer |
Yes |
The start timestamp of the metering cycle, in milliseconds. The metering data is aggregated by day. Only data from the most recent 30 days can be queried for the range between EndTime and StartTime. |
1717344000000 |
| EndTime |
integer |
Yes |
The end timestamp of the metering cycle, in milliseconds. The metering data is aggregated by day. Only data from the most recent 30 days can be queried for the range between EndTime and StartTime. |
1717430400000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
1AFAE64E-D1BE-432B-A9**** |
| MeasureDatas |
array<object> |
The metering results. |
|
|
object |
|||
| DomainCode |
string |
The item that is measured. |
DideAlarmPhone |
| ComponentCode |
string |
The measurement component. |
Count |
| StartTime |
integer |
The start timestamp of the metering cycle, in milliseconds. |
1717344000000 |
| EndTime |
integer |
The end timestamp of the metering cycle, in milliseconds. |
1717430400000 |
| Usage |
integer |
The total quantity used within the measurement period. |
10 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
100001001 |
| ErrorMessage |
string |
The error message. |
The user is not in tenant. |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "1AFAE64E-D1BE-432B-A9****",
"MeasureDatas": [
{
"DomainCode": "DideAlarmPhone",
"ComponentCode": "Count",
"StartTime": 1717344000000,
"EndTime": 1717430400000,
"Usage": 10
}
],
"Success": true,
"ErrorCode": "100001001",
"ErrorMessage": "The user is not in tenant.",
"HttpStatusCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The user is not in tenant. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.