All Products
Search
Document Center

ApsaraVideo Live:DescribeLiveDomainBpsDataByLayer

Last Updated:Nov 14, 2024

Queries the bandwidth and traffic data by protocol for one or more domain names.

Operation description

Usage notes

You can query data in the last 90 days. You can specify up to 500 domain names. Separate multiple domain names with commas (,). The merged data of multiple domain names is returned. The following list describes the time granularities of the data entries returned depending on the time range specified by StartTime and EndTime:

  • If the time range is smaller than or equal to 3 days, the time granularity is 5 minutes.
  • If the time range is larger than 3 days but smaller than or equal to 31 days, the time granularity is 1 hour.
  • If the time range is larger than 31 days, the time granularity is 1 day.
Note If neither the StartTime nor the EndTime parameter is specified, the data of the last 24 hours is returned.

QPS limit

You can call this operation up to 20 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
live:DescribeLiveDomainBpsDataByLayerget
*Domain
acs:cdn:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringNo

The streaming domain.

Note
  • If you do not specify this parameter, the merged data of all your domain names is returned. You can specify multiple domain names and separate them with commas (,).
pull.aliyundoc.com
StartTimestringNo

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 displayed in UTC.

Note If you do not specify this parameter, the data of the last 24 hours is returned by default. The minimum time granularity is 5 minutes.
2022-03-15T16: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 ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be displayed in UTC.

2022-03-16T16:59:59Z
IntervalstringNo

The time granularity of the query. Unit: seconds. Valid values:

  • 300
  • 3600
  • 86400
Note
  • If the time range specified by the StartTime and EndTime parameters is smaller than or equal to 3 days, the supported time granularities include 300, 3600, and 86400 seconds. If the time range is larger than 3 days but smaller than or equal to 31 days, the supported time granularities include 3600 and 86400 seconds. If the time range is larger than 31 days, the supported time granularity is 86400 seconds. If you specify an invalid value or do not specify this parameter, the default time granularity of 300 seconds is used.
300
IspNameEnstringNo

The name of the Internet service provider (ISP). If you do not specify this parameter, the data of all ISPs is returned.

Note You can call the DescribeLiveRegionAndIsp operation to query available regions and ISPs.
tele***
LocationNameEnstringNo

The name of the region. If you do not specify this parameter, the data of all regions is returned.

Note You can call the DescribeLiveRegionAndIsp operation to query available regions and ISPs.
hangzhou
LayerstringNo

The layer at which you want to query the data. Valid values:

  • IPv4 and IPv6 (network layer)
  • http, https, and quic (application layer)
  • all (default)
all

Response parameters

ParameterTypeDescriptionExample
object
DataIntervalstring

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

300
RequestIdstring

The request ID.

BEA5625F-8FCF-48F4-851B-2A48566EA967
BpsDataIntervalarray<object>

The data returned at each time interval.

DataModuleobject
Valuestring

The peak bandwidth. Unit: bit/s.

0.56
TrafficValuestring

The total traffic. Unit: byte.

331
TimeStampstring

The timestamp of the data returned.

2022-03-15T16:00:00Z

Examples

Sample success responses

JSONformat

{
  "DataInterval": "300",
  "RequestId": "BEA5625F-8FCF-48F4-851B-2A48566EA967",
  "BpsDataInterval": {
    "DataModule": [
      {
        "Value": "0.56",
        "TrafficValue": "331",
        "TimeStamp": "2022-03-15T16:00:00Z"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidStartTime.MalformedSpecified parameter StartTime is not valid.-
400InvalidEndTime.MalformedSpecified parameter EndTime is not valid.-
400InvalidEndTime.MismatchSpecified end time does not math the specified start time.The end time does not match the start time. Make sure that the start and end times match.
400InvalidStartTime.ValueNotSupportedSpecified end time does not math the specified start time,And the time range does not exceed 90 days.The start time and the end time do not match. The start time cannot be later than the end time, and the interval between the start time and the end time cannot exceed 90 days.

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

Change history

Change timeSummary of changesOperation
2024-09-29API Description Update. The Error code has changedView Change Details