Mengambil statistik pemutaran rata-rata harian untuk rentang waktu tertentu, termasuk durasi pemutaran rata-rata dan jumlah pemutaran rata-rata.
Deskripsi operasi
Saat ini, satu-satunya wilayah layanan yang didukung adalah China (Shanghai).
Hanya data pemutaran yang dikumpulkan melalui SDK Pemutar Video ApsaraVideo yang didukung.
Statistik pemutaran untuk hari sebelumnya dihasilkan pada pukul 09:00 (UTC+8) setiap hari.
Anda dapat mengkueri data yang dihasilkan setelah 2018-01-01. Rentang waktu maksimum antara Waktu mulai dan Waktu akhir adalah 180 hari.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribePlayUserAvg |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
Waktu mulai kueri. Tentukan waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-06-29T13:00:00Z |
| EndTime |
string |
Yes |
Waktu akhir kueri. Tentukan waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). Catatan
Waktu akhir harus lebih lambat daripada Waktu mulai. Rentang waktu maksimum antara Waktu mulai dan Waktu akhir adalah 180 hari. |
2016-06-30T13:00:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
6C7F90B2-BDA4-4FAC-****-A38A121DFE19 |
| UserPlayStatisAvgs |
object |
||
| UserPlayStatisAvg |
array<object> |
Statistik pemutaran rata-rata harian untuk pengguna. |
|
|
object |
|||
| Date |
string |
The playback date. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2016-06-30T13:00:00Z |
| AvgPlayDuration |
string |
The average playback duration. Unit: milliseconds. |
1035902.8 |
| AvgPlayCount |
string |
The average playback count. |
2.0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6C7F90B2-BDA4-4FAC-****-A38A121DFE19",
"UserPlayStatisAvgs": {
"UserPlayStatisAvg": [
{
"Date": "2016-06-30T13:00:00Z",
"AvgPlayDuration": "1035902.8",
"AvgPlayCount": "2.0"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The start time is in an invalid format. |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The end time is in an invalid format. |
| 400 | InvalidEndTime.BeyondCurrent | EndTime beyond current time. | |
| 400 | InvalidParamter | %s | |
| 400 | InvalidEndTime.Mismatch | StartTime or EndTime is mismatch. | The start time and end time do not match. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.