Mengubah konfigurasi snapshot dari domain streaming. Snapshot yang ditangkap disimpan di Object Storage Service (OSS). Perubahan berlaku setelah Anda memulai ulang pengambilan aliran.
Deskripsi operasi
You can call this operation to modify a snapshot configuration of a streaming domain. The captured snapshots are stored in OSS. The modification takes effect after you restart stream ingest.
QPS limit
You can call this operation up to 30 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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLiveAppSnapshotConfig |
update |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Domain streaming utama. |
example.com |
| AppName |
string |
Yes |
Nama aplikasi tempat aliran langsung berada. |
liveApp**** |
| TimeInterval |
integer |
No |
Interval pengambilan snapshot. Nilai valid: 5 hingga 3600. Unit: detik. |
5 |
| OssEndpoint |
string |
No |
Titik akhir Bucket OSS. |
cn-oss-****.aliyuncs.com |
| OssBucket |
string |
No |
Nama Bucket OSS. |
liveBucket**** |
| OverwriteOssObject |
string |
No |
Format penamaan snapshot yang disimpan dalam mode timpa, yang berarti snapshot baru menimpa snapshot sebelumnya.
|
{liveApp****}/{liveStream****}.jpg |
| SequenceOssObject |
string |
No |
Format penamaan snapshot yang disimpan secara berurutan, yang berarti snapshot baru tidak menimpa snapshot sebelumnya. Anda dapat memanggil operasi DescribeLiveStreamSnapshotInfo untuk mengkueri snapshot yang ditangkap dalam periode pengatur waktu tertentu.
|
snapshot/{liveApp****}/{liveStream****}/{UnixTimestamp****}.jpg |
| Callback |
string |
No |
URL callback yang digunakan untuk menerima notifikasi tentang pengambilan snapshot. |
https://learn.aliyundoc.com |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Respons error
JSONformat
{
"Code":"InternalError",
"HostId":"live.aliyuncs.com",
"Message":"The request processing has failed due to some unknown error.",
"RequestId":"6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidOverwriteOssObjectOrSequenceOssObject.Malformed | Specified paramters OverwriteOssObject or SequenceOssObject should have one. | |
| 400 | InvalidOssEndpoint.Malformed | Specified parameter OssEndpoint is not valid. | |
| 400 | InvalidOssBucket.Malformed | Specified parameter OssBucket is not valid. | |
| 400 | InvalidOssBucket.NotFound | The parameter OssBucket does not exist. | |
| 400 | InvalidOverwriteOssObject.Malformed | Specified parameter OverwriteOssObject is not valid. | |
| 400 | InvalidSequenceOssObject.Malformed | Specified parameter SequenceOssObject is not valid. | |
| 400 | InvalidConfig.NotFound | The speicified config does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.