Membuat rencana eksekusi untuk tugas pra-ambil terjadwal Batch.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
No |
ID tugas pra-ambil, yang dihasilkan dengan memanggil operasi CreateScheduledPreloadJob. |
665d3af3621bccf3fe29e1a4 |
| Executions |
array<object> |
Yes |
Daftar rencana eksekusi yang akan ditambahkan untuk tugas pra-ambil terjadwal. |
|
|
object |
No |
Informasi rencana eksekusi. |
||
| StartTime |
string |
No |
Waktu mulai rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-03T16:00:00Z |
| EndTime |
string |
No |
Waktu akhir rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-04T02:02:09Z |
| Interval |
integer |
Yes |
Interval antara setiap eksekusi Batch dari rencana pra-ambil terjadwal. Unit: seconds. |
30 |
| SliceLen |
integer |
Yes |
Jumlah URL yang akan dipra-ambil per Batch. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
F61CDR30-E83C-4FDA-BF73-9A94CDD44229 |
| FailedExecutions |
array<object> |
Informasi tentang rencana pra-ambil yang gagal ditambahkan. |
|
|
object |
|||
| Id |
string |
ID rencana pra-ambil. |
66599bd7397885b43804901c |
| StartTime |
string |
Waktu mulai rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-02T02:43:35Z |
| EndTime |
string |
Waktu akhir rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-03T02:43:35Z |
| Interval |
integer |
Interval antara setiap eksekusi Batch dari rencana pra-ambil terjadwal. Unit: seconds. |
60 |
| SliceLen |
integer |
Jumlah URL yang akan dipra-ambil per Batch. |
10 |
| Status |
string |
Status rencana pra-ambil terjadwal. Nilai valid:
|
running |
| JobId |
string |
ID tugas pra-ambil. |
665d3af3621bccf3fe29e1a4 |
| AliUid |
string |
ID akun Alibaba Cloud. |
15685865xxx14622 |
| FailedMessages |
array |
Daftar Paket kegagalan untuk rencana yang gagal ditambahkan. |
|
|
string |
Paket kegagalan. |
execution id: 66599bd7397885b43804921c, error: end time is before start time. |
|
| SuccessCount |
integer |
Jumlah rencana pra-ambil yang berhasil ditambahkan. |
12 |
| SuccessExecutions |
array<object> |
Informasi tentang rencana pra-ambil yang berhasil ditambahkan. |
|
|
object |
|||
| Id |
string |
ID rencana pra-ambil. |
66599bd7397885b43804901c |
| StartTime |
string |
Waktu mulai rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-02T02:43:35Z |
| EndTime |
string |
Waktu akhir rencana pra-ambil terjadwal, dalam format ISO 8601 (misalnya 2024-01-01T00:00:00+Z). |
2024-06-03T02:43:35Z |
| Interval |
integer |
Interval antara setiap eksekusi Batch dari rencana pra-ambil terjadwal. Unit: seconds. |
60 |
| SliceLen |
integer |
Jumlah URL yang akan dipra-ambil per Batch. |
10 |
| Status |
string |
Status rencana pra-ambil terjadwal. Nilai valid:
|
failed |
| JobId |
string |
ID tugas pra-ambil. |
665d3af3621bccf3fe29e1a4 |
| AliUid |
string |
ID akun Alibaba Cloud. |
15685865xxx14622 |
| TotalCount |
integer |
Jumlah total rencana yang diminta untuk ditambahkan. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F61CDR30-E83C-4FDA-BF73-9A94CDD44229",
"FailedExecutions": [
{
"Id": "66599bd7397885b43804901c",
"StartTime": "2024-06-02T02:43:35Z",
"EndTime": "2024-06-03T02:43:35Z",
"Interval": 60,
"SliceLen": 10,
"Status": "running",
"JobId": "665d3af3621bccf3fe29e1a4",
"AliUid": "15685865xxx14622"
}
],
"FailedMessages": [
"execution id: 66599bd7397885b43804921c, error: end time is before start time."
],
"SuccessCount": 12,
"SuccessExecutions": [
{
"Id": "66599bd7397885b43804901c",
"StartTime": "2024-06-02T02:43:35Z",
"EndTime": "2024-06-03T02:43:35Z",
"Interval": 60,
"SliceLen": 10,
"Status": "failed",
"JobId": "665d3af3621bccf3fe29e1a4",
"AliUid": "15685865xxx14622"
}
],
"TotalCount": 2
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | The end time you entered is earlier than the start time. Please check and try again. |
| 400 | InvalidJob.JobCountOfSiteFull | The maximum number of prefetch tasks for the website has been reached. Delete some unwanted ones and try again. | The maximum number of prefetch tasks for the website has been reached. Delete some unwanted ones and try again. |
| 400 | InvalidParameter.ObjectId | Invalid task ID or execution plan ID. | Invalid task ID or execution plan ID. |
| 400 | MissingOssUrl | OssUrl missing. Specify a valid URL of the OSS object that stores URLs to prefetch. | OssUrl missing. Specify a valid URL of the OSS object that stores URLs to prefetch. |
| 400 | MissingUrlList | Enter the URLs you want to prefetch. | Enter the URLs you want to prefetch. |
| 400 | TooManyRequests | Too many requests.Please try again later. | Requests are too frequent, please try again later. |
| 403 | InvalidUid.PermissionDenied | You do not have the permissions to perform this operation on this resource. Check whether the specified UID is correct and has the required permissions. | You do not have the permissions to perform this operation on this resource. Check whether the specified UID is correct and has the required permissions. |
| 404 | InvalidJob.NotFound | The task does not exist. Check whether the task ID is correct or whether the task has been deleted. | The task does not exist. Check whether the task ID is correct or whether the task has been deleted. |
| 404 | LogNotFound | Failed to query the log. Check whether the task ID and execution ID are valid. | Failed to query the log. Check whether the task ID and execution ID are valid. |
| 404 | InvalidExecution.NotFound | The execution plan does not exist. Check whether the parameters such as the execution ID, start time, and end time are correct. | The execution plan does not exist. Check whether the parameters such as the execution ID, start time, and end time are correct. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.