Mengkueri rekaman callback aliran.
Deskripsi operasi
Batas QPS untuk satu pengguna operasi API ini adalah 100 panggilan per detik. Jika batas terlampaui, panggilan API akan dibatasi, yang dapat memengaruhi bisnis Anda. Panggil operasi ini pada frekuensi yang sesuai.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamsNotifyRecords |
get |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| DomainName |
string |
Yes |
Domain ingest. |
push.example1.com |
| AppName |
string |
No |
Nama aplikasi tempat aliran berada. Anda dapat Tampilan AppName di halaman Stream Management. |
app |
| StreamName |
string |
No |
Nama aliran. Anda dapat Tampilan NamaStream di halaman Stream Management. |
stream |
| Status |
string |
No |
Menunjukkan apakah callback berhasil. Nilai valid:
Valid values:
|
success |
| StartTime |
string |
Yes |
Pengatur waktu mulai. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Catatan
Pengatur waktu mulai harus berada dalam 7 hari terakhir. |
2017-12-10T08:00:00Z |
| EndTime |
string |
Yes |
Pengatur waktu akhir. Pengatur waktu akhir harus lebih lambat daripada pengatur waktu mulai. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2017-12-10T09:00:00Z |
| PageSize |
integer |
No |
Ukuran halaman. Nilai default: 20. Nilai maksimum: 500. Nilai valid: bilangan bulat apa pun dari 1 hingga 500. |
20 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Rekaman callback pengambilan aliran. |
||
| NotifyRecordsInfo |
object |
||
| LiveStreamNotifyRecordsInfo |
array<object> |
Rekaman callback pengambilan aliran. |
|
|
object |
|||
| NotifyType |
string |
The callback type.
|
publish_done |
| Description |
string |
The result description. The value success is returned on success. An error message is returned on failure. |
success |
| StreamName |
string |
The name of the live stream. |
stream |
| NotifyTime |
string |
The time when the callback occurred. The time is displayed in UTC. |
2022-10-19T19:09:28Z |
| DomainName |
string |
The ingest domain. |
push.example1.com |
| NotifyContent |
string |
The content of the callback. |
{\"action\":\"publish_done\",\"app\":\"push.example1.com\"} |
| NotifyUrl |
string |
The callback URL. |
http://xx.xx.xx.xx/callbacks |
| NotifyResult |
string |
The callback result.
|
success |
| AppName |
string |
The name of the application to which the live stream belongs. |
app |
| NotifyResponse |
string |
The response returned by your server after it receives the callback. |
{"Code":0,"Msg":"Success"} |
| NotifyHeader |
string |
The request headers of the callback request. |
Host: 123456.cn-shanghai.example1.com User-Agent: Go-http-client/1.1 Accept-Encoding: gzip |
| PageNum |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Ukuran halaman. |
20 |
| RequestId |
string |
ID permintaan. |
F675E4B4-125D-1533-901B-11A724644285 |
| TotalNum |
integer |
Jumlah total entri yang sesuai dengan kondisi yang ditentukan. |
20 |
| TotalPage |
integer |
Jumlah total halaman. |
20 |
Contoh
Respons sukses
JSONformat
{
"NotifyRecordsInfo": {
"LiveStreamNotifyRecordsInfo": [
{
"NotifyType": "publish_done",
"Description": "success",
"StreamName": "stream",
"NotifyTime": "2022-10-19T19:09:28Z",
"DomainName": "push.example1.com",
"NotifyContent": "{\\\"action\\\":\\\"publish_done\\\",\\\"app\\\":\\\"push.example1.com\\\"}",
"NotifyUrl": "http://xx.xx.xx.xx/callbacks",
"NotifyResult": "success",
"AppName": "app",
"NotifyResponse": "{\"Code\":0,\"Msg\":\"Success\"}",
"NotifyHeader": "Host: 123456.cn-shanghai.example1.com\nUser-Agent: Go-http-client/1.1\nAccept-Encoding: gzip"
}
]
},
"PageNum": 1,
"PageSize": 20,
"RequestId": "F675E4B4-125D-1533-901B-11A724644285",
"TotalNum": 20,
"TotalPage": 20
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified parameter StartTime is not valid. | |
| 400 | InvalidEndTime.Malformed | Specified parameter EndTime is not valid. | |
| 400 | InvalidParam | Parameter invalid. | |
| 400 | InvalidEndTime.Mismatch | Specified EndTime does not match the specified StartTime. | |
| 400 | Duration.Exceed | StartTime needs to be within the last 7 days. | |
| 500 | 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.