ListDIJobEvents

Updated at:

Retrieves data integration task events.

Operation description

You must purchase DataWorks Basic Edition or a higher edition to use this operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

DIJobId

integer

No

The ID of the synchronization task. You can obtain the ID from the DIJobs[].Id parameter returned by the ListDIJobs operation (with ProjectId specified) and pass it together with EventType, StartTime, and EndTime. This parameter is actually required. If it is not provided, the error code 406100 (Missing required parameter) is returned.

11588

EventType

string

Yes

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

Alarm

StartTime

integer

Yes

The start time of the event query. The value is a UNIX timestamp in seconds.

1716971005

EndTime

integer

Yes

The end time of the event query. The value is a UNIX timestamp in seconds.

1717971005

PageNumber

integer

No

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

1

PageSize

integer

No

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

10

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

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

645F6D68-9C29-5961-80B1-BDD4****

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries that meet the conditions.

2524

PageSize

integer

The number of entries per page.

10

PageNumber

integer

The page number of the returned data.

1

DIJobEvent

array<object>

The array of events.

object

The details of a single event.

Id

string

The unique ID of the event.

1

CreateTime

string

The creation time. The value is a 10-digit UNIX timestamp, such as 1663573162.

1663573162

FailoverMessage

string

The error log of the failover.

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

Severity

string

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

Warning

Channels

string

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

Phone

Status

string

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

Success

Detail

string

The details of the alert.

Data integration synchronization task exception: Level: WARNING, DataWorks workspace name:** [Region: cn-shanghai], Task name:**, Alert rule: Business latency, aggregator:avg [**] for 5 minutes, service maybe abnormal

Type

string

The alert event type. Valid values:

  • Heartbeat: Task heartbeat alert.

  • Delay: Task latency alert.

  • FailoverCount: Failover count alert.

  • DdlReport: DDL notification.

  • ResourceUtilization: Resource group utilization.

Delay

Action

string

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

Ignore

SrcTable

string

The name of the source table.

table1

DstTable

string

The name of the destination table.

table2

SrcSql

string

The DDL statement of the source table.

alter table table1 ***

DstSql

string

The DDL statement of the destination table.

alter table table2 ***

Examples

Success response

JSON format

{
  "RequestId": "645F6D68-9C29-5961-80B1-BDD4****",
  "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": "Data integration synchronization task exception: Level: WARNING, DataWorks workspace name:** [Region: cn-shanghai], Task name:**, Alert rule: Business latency, aggregator:avg [**] for 5 minutes, service maybe abnormal",
        "Type": "Delay",
        "Action": "Ignore",
        "SrcTable": "table1",
        "DstTable": "table2",
        "SrcSql": "alter table table1 ***",
        "DstSql": "alter table table2 ***"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.