Obtém o status de uma instância de linha de base.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| BaselineId |
integer |
Sim |
O ID da linha de base. |
1234 |
| Bizdate |
string |
Sim |
O timestamp de dados da instância de linha de base. Especifique o horário no padrão ISO 8601 no formato yyyy-MM-dd'T'HH:mm:ssZ. O horário deve estar em UTC. |
2020-07-07T00:00:00+0800 |
| InGroupId |
integer |
Sim |
O ID do ciclo de agendamento da instância de linha de base. Para uma instância de linha de base agendada por dia, o valor deste parâmetro é 1. Para uma instância de linha de base agendada por hora, o valor deste parâmetro varia de 1 a 24. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| HttpStatusCode |
integer |
O código de status HTTP retornado. |
200 |
| RequestId |
string |
O ID da solicitação. Você pode usar o ID para solucionar problemas. |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
A mensagem de erro retornada. |
The specified parameters are invalid. |
| ErrorCode |
string |
O código de erro retornado. |
1031203110005 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
true |
| Data |
object |
Os detalhes da instância de linha de base. |
|
| Status |
string |
O status da linha de base. Valores válidos: ERROR, SAFE, DANGEROUS e OVER. O valor ERROR indica que nenhum nó está associado à linha de base ou que todos os nós associados à linha de base estão suspensos. O valor SAFE indica que os nós terminam a execução antes do horário de alerta. O valor DANGEROUS indica que os nós ainda estão em execução após o horário de alerta, mas antes do horário de conclusão comprometido. O valor OVER indica que os nós ainda estão em execução após o horário de conclusão comprometido. |
SAFE |
| Owner |
string |
O ID da conta Alibaba Cloud usada pelo proprietário da linha de base. Vários IDs são separados por vírgulas (,). |
9527952795**** |
| FinishTime |
integer |
O timestamp do horário real em que a instância de linha de base terminou a execução. Este parâmetro é retornado se o valor do parâmetro FinishStatus for FINISH. |
1553443200000 |
| ProjectId |
integer |
O ID do workspace ao qual a linha de base pertence. |
1234 |
| Priority |
integer |
A prioridade da linha de base. Valores válidos: 1, 2, 5, 7 e 8. |
1 |
| EndCast |
integer |
O timestamp do horário previsto em que a instância de linha de base terminará a execução. |
1553443200000 |
| InGroupId |
integer |
O ID do ciclo de agendamento da instância de linha de base. Para uma instância de linha de base agendada por dia, o valor deste parâmetro é 1. Para uma instância de linha de base agendada por hora, o valor deste parâmetro varia de 1 a 24. |
1 |
| BaselineName |
string |
O nome da linha de base. |
Baseline name |
| BaselineId |
integer |
O ID da linha de base. |
1234 |
| FinishStatus |
string |
O status da instância de linha de base. Valores válidos: UNFINISH e FINISH. O valor UNFINISH indica que a instância de linha de base ainda está em execução. O valor FINISH indica que a instância de linha de base terminou a execução. |
UNFINISH |
| Bizdate |
integer |
O timestamp de dados da instância de linha de base. |
1553443200000 |
| Buffer |
number |
A margem da instância de linha de base. Unidade: segundos. |
1200 |
| SlaTime |
integer |
O timestamp do horário de conclusão comprometido da instância de linha de base. |
1553443200000 |
| ExpTime |
integer |
O timestamp do horário de alerta da instância de linha de base. |
1553443200000 |
| LastInstance |
object |
As informações sobre a última instância gerada. |
|
| Status |
string |
The status of the instance. Valid values: NOT_RUN, WAIT_TIME, WAIT_RESOURCE, RUNNING, CHECKING, CHECKING_CONDITION, FAILURE, and SUCCESS. The value NOT_RUN indicates that the instance is not run. The value WAIT_TIME indicates that the instance is waiting to be run. The value WAIT_RESOURCE indicates that the instance is waiting for resources. The value RUNNING indicates that the instance is running. The value CHECKING indicates that data quality is being checked for the instance. The value CHECKING_CONDITION indicates that branch conditions are being checked for the instance. The value FAILURE indicates that the instance fails to run. The value SUCCESS indicates that the instance is run. |
SUCCESS |
| Owner |
string |
The ID of the Alibaba Cloud account used by the node owner. |
9527952795**** |
| FinishTime |
integer |
The timestamp of the actual time when the instance finished running. |
1553443200000 |
| NodeName |
string |
The name of the node. |
Node name |
| ProjectId |
integer |
The ID of the workspace to which the node belongs. |
1234 |
| InstanceId |
integer |
The ID of the instance. |
12345 |
| EndCast |
integer |
The timestamp of the predicted time when the instance finished running. |
1553443200000 |
| NodeId |
integer |
The ID of the node. |
1234 |
| BlockInstance |
object |
As informações sobre a instância-chave. |
|
| Status |
string |
The status of the instance. Valid values: NOT_RUN, WAIT_TIME, WAIT_RESOURCE, RUNNING, CHECKING, CHECKING_CONDITION, FAILURE, and SUCCESS. The value NOT_RUN indicates that the instance is not run. The value WAIT_TIME indicates that the instance is waiting to be run. The value WAIT_RESOURCE indicates that the instance is waiting for resources. The value RUNNING indicates that the instance is running. The value CHECKING indicates that data quality is being checked for the instance. The value CHECKING_CONDITION indicates that branch conditions are being checked for the instance. The value FAILURE indicates that the instance fails to run. The value SUCCESS indicates that the instance is run. |
SUCCESS |
| Owner |
string |
The ID of the Alibaba Cloud account used by the node owner. |
9527952795**** |
| FinishTime |
integer |
The timestamp of the actual time when the instance finished running. |
1553443200000 |
| NodeName |
string |
The name of the node. |
节点名称 |
| ProjectId |
integer |
The ID of the workspace to which the node belongs. |
1234 |
| InstanceId |
integer |
The ID of the instance. |
12345 |
| EndCast |
integer |
The timestamp of the predicted time when the instance finished running. |
1553443200000 |
| NodeId |
integer |
The ID of the node. |
1234 |
Exemplos
Resposta de sucesso
JSON formato
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFG****",
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "1031203110005",
"Success": true,
"Data": {
"Status": "SAFE",
"Owner": "9527952795****",
"FinishTime": 1553443200000,
"ProjectId": 1234,
"Priority": 1,
"EndCast": 1553443200000,
"InGroupId": 1,
"BaselineName": "Baseline name",
"BaselineId": 1234,
"FinishStatus": "UNFINISH",
"Bizdate": 1553443200000,
"Buffer": 1200,
"SlaTime": 1553443200000,
"ExpTime": 1553443200000,
"LastInstance": {
"Status": "SUCCESS",
"Owner": "9527952795****",
"FinishTime": 1553443200000,
"NodeName": "Node name",
"ProjectId": 1234,
"InstanceId": 12345,
"EndCast": 1553443200000,
"NodeId": 1234
},
"BlockInstance": {
"Status": "SUCCESS",
"Owner": "9527952795****",
"FinishTime": 1553443200000,
"NodeName": "节点名称",
"ProjectId": 1234,
"InstanceId": 12345,
"EndCast": 1553443200000,
"NodeId": 1234
}
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.