This topic describes how to query data for stream ingest and playback in ApsaraVideo Live.
Log on to the ApsaraVideo Live console. In the left navigation pane, click Data Center and query the data on the Billing and Monitoring pages.
Usage data: Query metrics such as streaming bandwidth and traffic, the number of ingested streams, transcoding duration, and the number of snapshots. For more information, see Usage data.
Operational Analysis: Query data such as bandwidth and traffic, origin fetch bandwidth and traffic, unique visitors (UVs), and user distribution. For more information, see Operational analysis.
Real-time Monitoring: Monitor stream ingest quality, traffic, bandwidth, and more. For more information, see Real-time monitoring.
You can also query data by calling the following API operations:
DescribeLiveDomainBpsData: queries bandwidth data for a domain.
DescribeLiveDomainRecordUsageData: queries the number of recorded streams and the usage of container format conversion.
DescribeLiveDomainSnapshotData: queries the number of snapshots.
DescribeLiveDomainTrafficData: queries traffic data of a domain.
DescribeLiveDomainStreamTranscodeData: queries transcoding usage of a domain.
DescribeLiveDomainPushBpsData: queries the bandwidth monitoring data of an ingest domain.
DescribeLiveDomainPushTrafficData: queries the traffic monitoring data of an ingest domain.
DescribeLiveStreamHistoryUserNum: queries historical concurrent viewers of a live stream.
DescribeLiveStreamCount: queries the number of active live streams.
DescribeDomainUsageData: queries usage data of a domain in a specific billing region.
DescribeLiveStreamDetailFrameRateAndBitRateData: queries audio and video frame rates and bitrates of an RTMP live stream.
DescribeLiveDomainPvUvData: queries PV/UV data of a domain.
Check stream ingest quality
Real-time monitoring of stream ingest quality helps you identify issues like stuttering and latency in your live streams. It provides data every second, including metrics such as video frame rate, audio frame rate, video bitrate, audio bitrate, and real-time logs. By examining the stream status each second, you can assess stream ingest stability, quickly detect issues with your live content, and reduce viewer buffering.
To check stream ingest quality in the ApsaraVideo Live console, follow the procedure below. Alternatively, call the DescribeLiveDomainRecordUsageData operation to query the real-time bitrate and frame rate.
Procedure
Log on to the ApsaraVideo Live console.
In the left navigation pane, choose .
Click the Stream-based Data tab, enter the stream name (StreamName), select a time range, and click Search.
The maximum time range for a single query is 3 hours. You can query data from the last 7 days.
For more information about the metrics, see Real-time monitoring.
Real-time Logs
With a latency of only a few seconds, real-time logs help you quickly analyze details of stream ingest and user access.
Procedure
Log on to the ApsaraVideo Live console.
In the left navigation pane, choose .
Select a domain name and time range, then click Search to view the logs for that period.
For descriptions of the stream ingest log fields, see Log management.
Analyze playback data
Analyze playback data by examining metrics such as streaming bandwidth and traffic, HTTP status codes, unique visitors (UVs), and user distribution.
Metric | Description | How to query |
Real-time bandwidth/traffic | Real-time bandwidth and traffic for a streaming domain within a specific region, for a specific ISP, and over a specific time period. | Note You can also call the DescribeLiveDomainPushTrafficData operation to query this data.
|
Streaming bandwidth/traffic | Bandwidth and traffic usage for a specific domain name. | Note You can also call the DescribeLiveDomainPushBpsData operation to query this data.
|
HTTP status codes | HTTP response status codes. | Note You can also call the DescribeLiveDomainRealTimeHttpCodeData operation to query this data.
|
User distribution | The geographical distribution of your viewers. | Note You can also call the DescribeLiveDomainPvUvData operation to view the data.
|
Domain ranking | The access ranking of your accelerated domain names. | |
Unique visitors (UV) | The number of unique IP addresses that requested content from a domain name within a specified time period. |