All Products
Search
Document Center

DataWorks:ListDIJobEvents

Last Updated:Dec 11, 2024

Queries events for a synchronization task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DIJobIdstringNo

The ID of the synchronization task.

11588
EventTypestringYes

The type of event that you want to query. Valid values: Failover, Alarm, and DDL.

Alarm
StartTimelongYes

The beginning of the time range to query.

1716971005
EndTimelongYes

The end of the time range to query.

1717971005
PageNumberlongNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizelongNo

The number of entries per page. Default value: 10. Maximum value: 100.

10

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID. You can use the ID to query logs and troubleshoot issues.

645F6D68-9C29-5961-80B1-BDD4B794C22D
PagingInfoobject

The pagination information.

TotalCountlong

The total number of entries returned.

2524
PageSizelong

The number of entries per page.

10
PageNumberlong

The page number.

1
DIJobEventarray<object>

The events returned. The value of this parameter is an array.

Eventsobject

The details about a single event.

Idstring

The event ID.

1
CreateTimestring

The time when the event was created.

1663573162
FailoverMessagestring

The error logs for failovers.

2024-05-29 15:11:31,377 [main] INFO com.*.**.di.core.metrics.:21 [] {****} 2024-05-29 15:11:31,384 [main] INFO *.aliyun.*.di.*.*.metrics.*:27 [] - Open MarioDiReporter 2024-05-29 15:11:33,248 [flink-akka.*.*-dispatcher-17] INFO
Severitystring

The severity level of the alert. Valid values: Warning and Critical.

Warning
Channelsstring

The alert notification method. Valid values: Phone, Mail, Sms, Ding, and Webhook.

Phone
Statusstring

The sending status of an alert notification. Valid values: Success, Fail, and Silence.

Success
Detailstring

The alert details.

Typestring

The type of the alert event.

  • Heartbeat
  • Delay
  • FailoverCount
  • DdlReport
  • ResourceUtilization
Delay
Actionstring

The processing result of the DDL event. Valid values: Critical, Ignore, Normal, and Warning.

Ignore
SrcTablestring

The name of the source table.

table1
DstTablestring

The name of the destination table.

table2
SrcSqlstring

The DDL statement of the source table.

alter table table1 ***
DstSqlstring

The DDL statement of the destination table.

alter table table2 ***

Examples

Sample success responses

JSONformat

{
  "RequestId": "645F6D68-9C29-5961-80B1-BDD4B794C22D",
  "PagingInfo": {
    "TotalCount": 2524,
    "PageSize": 10,
    "PageNumber": 1,
    "DIJobEvent": [
      {
        "Id": "1",
        "CreateTime": "1663573162",
        "FailoverMessage": "2024-05-29 15:11:31,377 [main] INFO com.*.**.di.core.metrics.:21 []  {****} \n2024-05-29 15:11:31,384 [main] INFO *.aliyun.*.di.*.*.metrics.*:27 [] - Open MarioDiReporter \n2024-05-29 15:11:33,248 [flink-akka.*.*-dispatcher-17] INFO ",
        "Severity": "Warning",
        "Channels": "Phone",
        "Status": "Success",
        "Detail": "",
        "Type": "Delay",
        "Action": "Ignore",
        "SrcTable": "table1",
        "DstTable": "table2",
        "SrcSql": "alter table table1 ***",
        "DstSql": "alter table table2 ***"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-15The internal configuration of the API is changed, but the call is not affectedView Change Details