Mengambil jumlah real-time streaming asli dan ditranskode yang aktif untuk domain streaming yang ditentukan.
Deskripsi operasi
Sebelum Anda memanggil operasi ini, dapatkan nama domain streaming di konsol. Jumlah streaming yang dikembalikan mencakup streaming yang dikodekan dalam format H.264 dan H.265.
Batas QPS
Anda hanya dapat memanggil operasi ini satu kali per detik per akun. Permintaan yang melebihi batas ini akan dibuang dan Anda mungkin mengalami gangguan layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamCount |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| DomainName |
string |
Yes |
Domain streaming. Catatan
Pastikan nama domain telah ditambahkan ke ApsaraVideo Live dan Anda memiliki izin untuk mengoperasikannya. |
example.com |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
FCFFE4A4-F34F-4EEF-B401-36A01689AFBC |
| StreamCountInfos |
object |
||
| StreamCountInfo |
array<object> |
Statistik streaming. |
|
|
array<object> |
|||
| Type |
string |
The type of the active stream. Valid values:
|
raw |
| Count |
integer |
The number of active streams. |
3 |
| Limit |
integer |
The limit on the number of concurrent ingested streams. This parameter is returned only for users on the whitelist. |
10 |
| StreamCountDetails |
object |
||
| StreamCountDetail |
array<object> |
The stream details. |
|
|
object |
|||
| VideoDataRate |
integer |
The video bitrate. This parameter is returned only when statistics for transcoded streams are queried. |
390 |
| Format |
string |
The video codec. Valid values:
|
h264 |
| Count |
integer |
The number of active streams. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "FCFFE4A4-F34F-4EEF-B401-36A01689AFBC",
"StreamCountInfos": {
"StreamCountInfo": [
{
"Type": "raw",
"Count": 3,
"Limit": 10,
"StreamCountDetails": {
"StreamCountDetail": [
{
"VideoDataRate": 390,
"Format": "h264",
"Count": 2
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | The request processing has failed due to backend service exception. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.