Obtém uma lista de baselines.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Owner |
string |
Não |
O proprietário. |
3726346**** |
| ProjectId |
integer |
Sim |
O ID do workspace do DataWorks. Você pode fazer login no console do DataWorks e acessar a página Workspace para consultar o ID. |
123456 |
| Priority |
string |
Não |
A prioridade da baseline. Valores válidos: {1,3,5,7,8}. |
1 |
| Enable |
boolean |
Não |
Especifica se a baseline deve ser ativada. Valores válidos: true e false. |
true |
| BaselineTypes |
string |
Não |
O tipo da baseline. Valores válidos: DAILY e HOURLY. Você pode especificar vários tipos. Separe vários tipos com vírgulas (,). |
DAILY |
| SearchText |
string |
Não |
A palavra-chave no nome da baseline, usada para pesquisar a baseline. |
baselineName |
| PageNumber |
integer |
Sim |
O número da página. As páginas começam a partir da página 1. Valor padrão: 1. Valor máximo: 30. |
1 |
| PageSize |
integer |
Sim |
O número de entradas por página. Valor padrão: 10. Valor máximo: 100. |
100 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| ErrorCode |
string |
O código de erro. |
103630001 |
| ErrorMessage |
string |
A mensagem de erro retornada se a solicitação falhou. |
The user does not exist. 276571706358178756 |
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| Data |
object |
Os dados retornados. |
|
| PageNumber |
string |
O número da página. |
1 |
| PageSize |
string |
O número de entradas por página. |
10 |
| TotalCount |
string |
O número total de baselines retornadas. |
100 |
| Baselines |
array<object> |
As 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 |
O ID da solicitação. |
952795279527ab**** |
Exemplos
Resposta de sucesso
JSON formato
{
"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****"
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.