Mengambil daftar garis dasar.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Owner |
string |
No |
Pemilik. |
3726346**** |
| ProjectId |
integer |
Yes |
ID ruang kerja DataWorks. Anda dapat masuk ke Konsol DataWorks dan membuka halaman Ruang Kerja untuk mengkueri ID tersebut. |
123456 |
| Priority |
string |
No |
Prioritas garis dasar. Nilai valid: {1,3,5,7,8}. |
1 |
| Enable |
boolean |
No |
Apakah akan mengaktifkan garis dasar. Nilai valid: true dan false. |
true |
| BaselineTypes |
string |
No |
Tipe garis dasar. Nilai valid: DAILY dan HOURLY. Anda dapat menentukan beberapa tipe. Pisahkan beberapa tipe dengan koma (,). |
DAILY |
| SearchText |
string |
No |
Kata kunci dalam nama garis dasar yang digunakan untuk mencari garis dasar. |
baselineName |
| PageNumber |
integer |
Yes |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. Nilai maksimum: 30. |
1 |
| PageSize |
integer |
Yes |
Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100. |
100 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
103630001 |
| ErrorMessage |
string |
The error message returned if the request failed. |
The user does not exist. 276571706358178756 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
object |
The data returned. |
|
| PageNumber |
string |
The page number. |
1 |
| PageSize |
string |
The number of entries per page. |
10 |
| TotalCount |
string |
The total number of baselines returned. |
100 |
| Baselines |
array<object> |
The baselines. |
|
|
array<object> |
|||
| BaselineId |
integer |
The baseline ID. |
1234 |
| ProjectId |
integer |
The ID of the workspace to which the baseline belongs. |
9527 |
| BaselineType |
string |
The type of the baseline. Valid values: DAILY and HOURLY. |
DAILY |
| Priority |
integer |
The priority of the baseline. Valid values: {1,2,5,7,8}. |
1 |
| Owner |
string |
The ID of the Alibaba Cloud account used by the baseline owner. Multiple IDs can be specified. The IDs are separated by commas (,). |
952795**** |
| BaselineName |
string |
The name of the baseline. |
BaselineName |
| Enabled |
boolean |
Indicates whether the baseline is enabled. Valid values: true and false. |
true |
| AlertEnabled |
boolean |
Indicates whether the alerting feature is enabled. Valid values: true and false. |
true |
| AlertMarginThreshold |
integer |
The alert margin threshold for the baseline instance. Unit: minutes. |
30 |
| OverTimeSettings |
array<object> |
The settings of the committed completion time of the baseline. |
|
|
object |
|||
| Cycle |
integer |
The cycle that corresponds to the committed completion time. For a day-level baseline, the value of this parameter is 1. For an hour-level baseline, the value of this parameter cannot exceed 24. |
1 |
| Time |
string |
The committed completion time in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59]. |
00:00 |
| RequestId |
string |
The request ID. |
952795279527ab**** |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"ErrorCode": "103630001",
"ErrorMessage": "The user does not exist. 276571706358178756",
"HttpStatusCode": 200,
"Data": {
"PageNumber": "1",
"PageSize": "10",
"TotalCount": "100",
"Baselines": [
{
"BaselineId": 1234,
"ProjectId": 9527,
"BaselineType": "DAILY",
"Priority": 1,
"Owner": "952795****",
"BaselineName": "BaselineName",
"Enabled": true,
"AlertEnabled": true,
"AlertMarginThreshold": 30,
"OverTimeSettings": [
{
"Cycle": 1,
"Time": "00:00"
}
]
}
]
},
"RequestId": "952795279527ab****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.