Queries the number of real-time log deliveries.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | DescribeRealtimeDeliveryAcc |
The operation that you want to perform. Set the value to DescribeRealtimeDeliveryAcc. |
StartTime | String | No | 2016-10-20T04:00:00Z |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0. |
EndTime | String | No | 2016-10-20T05:00:00Z |
The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0. The end of the time range to query. The end time must be later than the start time. |
Interval | String | No | 300 |
The time interval between the data entries. Unit: seconds. The value varies based on the values of the StartTime and EndTime parameters. Valid values:
|
Project | String | No | Project |
The name of the Log Service project that is used for real-time log delivery. By default, all projects are queried. |
LogStore | String | No | LogStore |
The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time. By default, all Logstores are queried. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ReatTimeDeliveryAccData | Array of AccData |
The information about real-time log delivery. |
|
AccData | |||
FailedNum | Integer | 2 |
The number of failed attempts to deliver log data to Log Service. |
SuccessNum | Integer | 2 |
The number of successful deliveries of log data to Log Service. |
TimeStamp | String | 2018-09-03T06:00:00Z |
The timestamp of the data. |
RequestId | String | 684306D2-2511-4977-991D-CE97E91FD7C0 |
The ID of the request. |
Examples
Sample requests
http://cdn.aliyuncs.com?Action=DescribeRealtimeDeliveryAcc
&StartTime=2016-10-20T04:00:00Z
&EndTime=2016-10-20T05:00:00Z
&<Common request parameters>
Sample success responses
XML
format
<DescribeRealtimeDeliveryAccResponse>
<RequestId>684306D2-2511-4977-991D-CE97E91FD7C0</RequestId>
<ReatTimeDeliveryAccData>
<AccData>
<TimeStamp>2018-09-03T06:00:00Z</TimeStamp>
<FailedNum>0</FailedNum>
<SuccessNum>321321</SuccessNum>
</AccData>
<AccData>
<TimeStamp>2018-09-03T07:00:00Z</TimeStamp>
<FailedNum>0</FailedNum>
<SuccessNum>32943</SuccessNum>
</AccData>
</ReatTimeDeliveryAccData>
</DescribeRealtimeDeliveryAccResponse>
JSON
format
{
"RequestId": "684306D2-2511-4977-991D-CE97E91FD7C0",
"ReatTimeDeliveryAccData": {
"AccData": [
{
"TimeStamp": "2018-09-03T06:00:00Z",
"FailedNum": 0,
"SuccessNum": 321321
},
{
"TimeStamp": "2018-09-03T07:00:00Z",
"FailedNum": 0,
"SuccessNum": 32943
}
]
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The error message returned because the format of the end time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The error message returned because the specified start time is invalid. |
For a list of error codes, visit the API Error Center.