Usage query

Updated at:
Copy as MD

Usage statistics allows you to query the usage of resources, such as the streaming bandwidth and traffic, number of ingested streams, and transcoding and recording duration.

Time granularity

When you query usage data in the console or by calling API operations, the maximum time range per query, available historical data, and data delay vary by time granularity:

Time granularity

Max time range

Historical data available

Data delay

5 minutes

3 days

Last 6 months

15 minutes

1 hour

31 days

Last 6 months

4 hours

1 day

31 days

Last 6 months

04:00 on the next day

Query usage details

ApsaraVideo Live console

  1. Log on to the ApsaraVideo Live console.

  2. In the left-side navigation pane, choose Data Center > Billing > Usage.

  3. View the usage details.

    Select a domain name, region, and time range to view usage data for the following resources. Preset time ranges include Today, Yesterday, Last 7 Days, and Last 30 Days. You can also specify a custom time range.

    Tab

    Description

    Streaming Bandwidth/Traffic

    View streaming traffic and bandwidth usage for a specified domain name.

    Transcoding Duration

    View the transcoding duration for different specifications.

    Note

    For transcoding specifications for billing, see Transcoding specifications for billing.

    Live Stream Recording

    View the number of recording channels and transmuxing usage for a specified domain name in a specified region.

    Snapshots

    View the number of snapshots for a specified domain name.

    Content Moderation

    View the number of content moderation tasks for a specified domain name.

    Time Shifting

    View the time-shifting duration and data volume for a specified domain name.

    Stream Relay

    View edge and center stream relay usage for a specified domain name.

    Production Studios

    View the stream output duration from Production Studios for a specified domain name.

    Stream Delay

    View the Stream Delay duration for a specified domain name.

    DRM Calls

    View the number of DRM calls for a specified domain name.

    Details Export

    Export detailed traffic and bandwidth data by account or by domain name.

API reference

To query usage details by calling an API, see Statistics-Usage.

Transcoding billing specifications

A transcoding billing specification consists of a billing specification for transcoding, a transcoding type, and a duration.

The following transcoding types are available:

  • H264STD: H.264 standard transcoding.

  • H265STD: H.265 standard transcoding.

  • H264NBHD: H.264 Narrowband HD™ transcoding.

  • H265NBHD: H.265 Narrowband HD™ transcoding.

  • AUDIO: audio transcoding.

Examples:

  • SD_H265NBHD 6 minutes: Indicates the SD billing specification for H.265 Narrowband HD™ transcoding with a duration of 6 minutes.

  • 2K_H265NBHD 3 minutes: Indicates the 2K billing specification for H.265 Narrowband HD™ transcoding with a duration of 3 minutes.

Note

In these examples, SD and 2K refer to the billing specifications for transcoding, not the actual video resolution. For more information about billing specifications, see Live stream transcoding fees.

Export data

To export usage data, perform the following steps:

  1. Click the Details Export tab.

  2. Click Create Export Task. In the Create Export Task dialog box, Reconciliation Type defaults to Traffic and Bandwidth Data and Frequency defaults to Once. You cannot change these settings.

  3. Enter a task name, select a time range, and select the export content. If you export details by domain, you can select up to 100 domains.

  4. Click OK.

Note

If the exported file displays garbled characters, save the file locally first and then open it with the correct encoding.

FAQ

How do I troubleshoot unusual traffic for a live streaming domain and identify the source of charges?

  1. Identify the source of charges: Log on to the ApsaraVideo Live console. On the Usage page, select the domain name and time range. View the playback bandwidth or traffic details to identify when the unusual traffic occurred.

  2. Analyze the cause of unusual traffic: If you detect unusual traffic, use data from Operational Analysis and Real-time Monitoring. Check metrics such as unique visitors and HTTP status codes to identify abnormal access behavior.

  3. Strengthen security protection: Configure alerts for live streaming traffic in the Cloud Monitor console. Enable security measures such as URL authentication and Referer hotlink protection to prevent fraudulent traffic.