Mengkueri detail jadwal piket dengan memanggil operasi GetOnCallSchedulesDetail.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:GetOnCallSchedulesDetail |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
ID jadwal piket. |
1234 |
| StartTime |
string |
No |
Pengatur waktu mulai periode piket, dalam format |
2022-10-01 |
| EndTime |
string |
No |
Pengatur waktu berakhir periode piket, dalam format |
2022-10-30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
21E85B16-75A6-429A-9F65-8AAC9A54**** |
| Data |
object |
Detail jadwal piket. |
|
| Id |
integer |
ID jadwal piket. |
1234 |
| Name |
string |
Nama Kebijakan kebijakan jadwal piket. |
排班策略测试 |
| Description |
string |
Deskripsi jadwal piket. |
测试 |
| AlertRobotId |
integer |
URL webhook chatbot DingTalk yang digunakan untuk notifikasi pergantian shift. |
https://oapi.dingtalk.com/robot/send?access_token=69d4e009547e11069c6513309414937b7bf0482fb9284125b5****** |
| ScheduleLayers |
array<object> |
Lapisan shift piket. |
|
|
array<object> |
|||
| ContactIds |
array |
The IDs of contacts in the schedule layer. |
|
|
integer |
The contact ID. |
[123, 234, 456] |
|
| StartTime |
string |
The start time of the shift rotation. |
2022-10-01 |
| ShiftLength |
integer |
The shift length, in hours. |
8 |
| RotationType |
string |
The rotation type. Valid values:
|
DAY |
| Restrictions |
array<object> |
The time restrictions for the schedule. |
|
|
object |
|||
| RestrictionType |
string |
The type of restriction. Valid values:
|
daily_restriction |
| StartTimeOfDay |
string |
The daily start time of the on-call shift. |
09:00 |
| EndTimeOfDay |
string |
The daily end time of the on-call shift. |
18:00 |
| RenderedLayerEntries |
array<object> |
Personel piket dalam rentang pengatur waktu yang dikueri. |
|
|
array<object> |
|||
|
array<object> |
|||
| Start |
string |
The start time of the on-call person's shift. |
2022-10-01 |
| End |
string |
The end time of the on-call person's shift. |
2022-10-30 |
| SimpleContact |
object |
The on-call person's details. |
|
| Id |
integer |
The on-call person's ID. |
123 |
| Name |
string |
The on-call person's name. |
员工1 |
| RenderedSubstitudeEntries |
array<object> |
Personel pengganti dalam rentang pengatur waktu yang dikueri. |
|
|
array<object> |
|||
| Start |
string |
The start time of the substitute's shift. |
2022-10-01 |
| End |
string |
The end time of the substitute's shift. |
2022-10-30 |
| SimpleContact |
object |
The substitute's details. |
|
| Id |
integer |
The substitute's ID. |
234 |
| Name |
string |
The substitute's name. |
员工2 |
| RenderedFinnalEntries |
array<object> |
Informasi personel piket final. |
|
|
array<object> |
|||
| Start |
string |
The start time of the final on-call person's shift. |
2022-10-01 |
| End |
string |
The end time of the final on-call person's shift. |
2022-10-30 |
| SimpleContact |
object |
The final on-call person's details. |
|
| Id |
integer |
The final on-call person's ID. |
123 |
| Name |
string |
The final on-call person's name. |
员工1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "21E85B16-75A6-429A-9F65-8AAC9A54****",
"Data": {
"Id": 1234,
"Name": "排班策略测试",
"Description": "测试",
"AlertRobotId": 0,
"ScheduleLayers": [
{
"ContactIds": [
0
],
"StartTime": "2022-10-01\n",
"ShiftLength": 8,
"RotationType": "DAY",
"Restrictions": [
{
"RestrictionType": "daily_restriction",
"StartTimeOfDay": "09:00",
"EndTimeOfDay": "18:00"
}
]
}
],
"RenderedLayerEntries": [
[
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 123,
"Name": "员工1"
}
}
]
],
"RenderedSubstitudeEntries": [
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 234,
"Name": "员工2"
}
}
],
"RenderedFinnalEntries": [
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 123,
"Name": "员工1"
}
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.