All Products
Search
Document Center

ApsaraVideo VOD:DescribeVodDomainSrcTrafficData

更新時間:Jul 19, 2024

Queries origin traffic data for accelerated domain names in ApsaraVideo VOD. The traffic is measured in bytes.

Operation description

  • This operation is available only in the China (Shanghai) region.
  • ApsaraVideo VOD stores the origin traffic data for 90 days before the data is deleted.
  • If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both the StartTime and EndTime parameters, the request returns the data collected within the specified time range.
  • You can specify a maximum of 500 domain names in a request. Separate multiple domain names with commas (,). If you specify multiple domain names in a request, aggregation results are returned.

Time granularity

The time granularity supported by the Interval parameter varies based on the time range per query specified by using StartTime and EndTime. The following table describes the time period within which historical data is available and the data delay.

Time granularityTime range per query (days)Historical data available (days)Data delay
5 minutes(0, 3]9315 minutes
1 hour(3, 31]1864 hours
1 day(31, 366]36604:00 on the next day

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringNo

The accelerated domain name. You can specify a maximum of 500 domain names in a request. Separate multiple domain names with commas (,). If you specify multiple domain names in a request, aggregation results are returned.

If you leave this parameter empty, the origin traffic data for all accelerated domain names is queried by default.

example.com
StartTimestringNo

The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

If you leave this parameter empty, the origin traffic data that is generated in the last 24 hours is queried by default.

2022-03-22T16:00:00Z
EndTimestringNo

The end of the time range to query. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2022-09-24T15:59:59Z
IntervalstringNo

The time interval between the data entries to return. Unit: seconds. Valid values:

  • 300: 5 minutes
  • 3600: 1 hour
  • 86400: 1 day
Note The time granularity supported by the Interval parameter varies based on the time range per query specified by using StartTime and EndTime. For more information, see the Time granularity section of this topic.
300

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

EndTimestring

The end of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2022-09-23T15:59:59Z
StartTimestring

The start of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2022-08-29T16:00:00Z
RequestIdstring

The ID of the request.

25818875-5F78-4AF6-D7393642CA58****
DomainNamestring

The accelerated domain name.

example.com
TotalTrafficstring

The total traffic. Unit: bytes.

5906662826
DataIntervalstring

The time interval between the entries returned. Unit: seconds.

300
SrcTrafficDataPerIntervalarray<object>

Details about the origin traffic returned at each time interval. Unit: bytes.

object

The amount of origin traffic returned at each time interval.

Valuestring

The traffic value at each time interval.

0
TimeStampstring

The timestamp of the returned data. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2022-09-23T15:59:59Z
HttpsValuestring

The amount of traffic generated by origin HTTPS requests.

0

Examples

Sample success responses

JSONformat

{
  "EndTime": "2022-09-23T15:59:59Z",
  "StartTime": "2022-08-29T16:00:00Z",
  "RequestId": "25818875-5F78-4AF6-D7393642CA58****",
  "DomainName": "example.com",
  "TotalTraffic": "5906662826",
  "DataInterval": "300",
  "SrcTrafficDataPerInterval": {
    "DataModule": [
      {
        "Value": "0",
        "TimeStamp": "2022-09-23T15:59:59Z",
        "HttpsValue": "0"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-12-22Add OperationView Change Details