Realiza uma consulta paginada da lista de instâncias de tarefas de monitoramento de qualidade.
Esta API foi descontinuada. Recomendamos migrar para dataworks-public(2024-05-18) - ListDataQualityScanRuns para funcionalidade aprimorada e suporte contínuo. Embora a API descontinuada permaneça temporariamente acessível, nenhuma atualização ou correção de bugs será fornecida.
Descrição da operação
Você deve adquirir o DataWorks Basic Edition ou superior para usar este recurso.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dataworks:* |
list |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ProjectId |
integer |
Sim |
O ID do workspace do DataWorks. |
100 |
| DataQualityEvaluationTaskId |
integer |
Não |
O ID da tarefa de avaliação de qualidade de dados. |
10000 |
| TableGuid |
string |
Não |
O ID exclusivo da tabela no Data Map. |
odps.unit_test.tb_unit_test |
| CreateTimeFrom |
integer |
Não |
O horário de início mais antigo da instância da tarefa de avaliação de qualidade de dados. |
1710239005403 |
| CreateTimeTo |
integer |
Não |
O horário de início mais recente da instância da tarefa de avaliação de qualidade de dados. |
1710239005403 |
| BizdateFrom |
string |
Não |
A data de início de negócios da tarefa de avaliação de qualidade. |
2024-04-01 |
| BizdateTo |
string |
Não |
A data de término de negócios da tarefa de avaliação de qualidade. |
2024-05-01 |
| TriggerClientId |
string |
Não |
O TriggerClientId no TriggerContext. |
1001 |
| TriggerClient |
string |
Não |
O TriggerClient no TriggerContext. |
CWF2 |
| PageSize |
integer |
Sim |
O tamanho da página para a consulta de paginação da lista. Valor padrão: 10. |
10 |
| PageNumber |
integer |
Sim |
O número da página para a consulta de paginação da lista. Valor padrão: 1. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O valor de retorno. |
||
| RequestId |
string |
O ID da solicitação da API. |
691CA452-D37A-4ED**** |
| PagingInfo |
object |
O resultado da consulta de paginação das instâncias de tarefas de avaliação de qualidade. |
|
| PageNumber |
integer |
O número da página. |
1 |
| PageSize |
integer |
O tamanho da página. |
10 |
| TotalCount |
integer |
O número total de registros. |
294 |
| DataQualityEvaluationTaskInstances |
array<object> |
A TaskInstance acionada com sucesso. |
|
|
array<object> |
|||
| Id |
integer |
The ID of the quality check task instance. |
10001 |
| CreateTime |
integer |
The creation time of the task instance. |
1710239005403 |
| FinishTime |
integer |
The end time of the task instance. |
1710239005403 |
| Status |
string |
The current running status.
|
Critical |
| Parameters |
string |
The parameter settings used during the actual runtime. |
{ "bizdate": "20240517", "triggerTime": "1710239005403" } |
| TriggerContext |
string |
The context information when the instance is triggered. |
{ "TriggerClientId": 10001, "TriggerClient": "CWF2" } |
| ProjectId |
integer |
The ID of the DataWorks project workspace. |
100 |
| Task |
object |
The snapshot of the data quality evaluation task when the evaluation starts. |
|
| Id |
integer |
The ID of the data quality evaluation task. |
10001 |
| Description |
string |
The description of the quality monitoring task. |
This is a daily run data quality evaluation plan. |
| ProjectId |
integer |
The ID of the project workspace. |
100 |
| Target |
object |
The monitoring object of the data quality evaluation task. |
|
| Type |
string |
The type of the monitoring object.
|
Table |
| DatabaseType |
string |
For a dataset of table type, the database type to which the table belongs.
|
maxcompute |
| TableGuid |
string |
The unique ID of the table in Data Map. |
odps.unit_test.tb_unit_test |
| PartitionSpec |
string |
The partition settings of the partitioned table. |
ds=$[yyyymmdd-1] |
| Trigger |
object |
The trigger configuration of the data quality evaluation task. |
|
| Type |
string |
The type of event that can trigger the execution of the quality evaluation task.
|
ByScheduledTaskInstance |
| TaskIds |
array |
The IDs of scheduled task nodes. |
|
|
integer |
The ID of the scheduled task node. |
10000 |
|
| RuntimeConf |
string |
Settings used when accessing data sources. Currently, only specifying the YARN queue of EMR and specifying the SQL engine as SPARK_SQL|KYUUBI|PRESTO_SQL|HIVE_SQL when collecting EMR tables are supported. |
{ "queue": "default", "sqlEngine": "SPARK_SQL" } |
| Hooks |
array<object> |
The callback settings in the lifecycle of the data quality evaluation task instance. Currently, only one Hook for blocking scheduled tasks is supported. |
|
|
object |
Hook. |
||
| Type |
string |
The type of the subsequent processing action.
|
BlockTaskInstance |
| Condition |
string |
The trigger condition of the Hook. |
${severity} == "High" AND ${status} == "Critical" |
| Notifications |
object |
The notification subscription configuration. |
|
| Condition |
string |
The trigger condition of the notification. |
${severity} == "High" |
| Notifications |
array<object> |
The notification settings. |
|
|
array<object> |
The notification settings. |
||
| NofiticationReceivers |
array<object> |
The alert recipient settings. |
|
|
object |
The alert recipient settings. |
||
| ReceiverType |
string |
The type of the alert recipient.
|
AliUid |
| Extension |
string |
The extension information, in JSON format. For example, a DingTalk bot supports at-all. |
{"atAll":"true"} |
| ReceiverValues |
array |
The alert recipient. |
|
|
string |
The specific value of the alert recipient. |
10000001 |
|
| NotificationChannels |
array<object> |
The alert method. |
|
|
object |
The notification method. |
||
| Channels |
array |
The alert method. |
|
|
string |
|
|
|
| Name |
string |
The name of the quality monitoring task. |
Quality verification task |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "691CA452-D37A-4ED****",
"PagingInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 294,
"DataQualityEvaluationTaskInstances": [
{
"Id": 10001,
"CreateTime": 1710239005403,
"FinishTime": 1710239005403,
"Status": "Critical",
"Parameters": "{\n \"bizdate\": \"20240517\",\n \"triggerTime\": \"1710239005403\"\n}",
"TriggerContext": "{\n \"TriggerClientId\": 10001,\n \"TriggerClient\": \"CWF2\"\n}",
"ProjectId": 100,
"Task": {
"Id": 10001,
"Description": "This is a daily run data quality evaluation plan.",
"ProjectId": 100,
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.unit_test.tb_unit_test",
"PartitionSpec": "ds=$[yyyymmdd-1]"
},
"Trigger": {
"Type": "ByScheduledTaskInstance",
"TaskIds": [
10000
]
},
"RuntimeConf": "{ \"queue\": \"default\", \"sqlEngine\": \"SPARK_SQL\" }",
"Hooks": [
{
"Type": "BlockTaskInstance",
"Condition": "${severity} == \"High\" AND ${status} == \"Critical\""
}
],
"Notifications": {
"Condition": "${severity} == \"High\"",
"Notifications": [
{
"NofiticationReceivers": [
{
"ReceiverType": "AliUid",
"Extension": "{\"atAll\":\"true\"}",
"ReceiverValues": [
"10000001"
]
}
],
"NotificationChannels": [
{
"Channels": [
"Mail"
]
}
]
}
]
},
"Name": "Quality verification task"
}
}
]
}
}
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.