Reporting the Flink Edge Job Status
Function
This API is used to process the reported information about the Flink job status on the edge.
Debugging
You can debug this API in API Explorer.
URI
- URI format
- Parameter description
Table 1 URI parameter Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Request
- Example request
Table 2 Request parameters Parameter
Mandatory
Type
Description
jobs
Yes
Array of Objects
A list of jobs. For details, see Table 3.
msg_confirm_topic
Yes
String
Topic for confirming messages.
message_id
Yes
String
Message ID.
Response
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| is_success | No | Boolean | Indicates whether the request is successfully executed. Value true indicates that the request is successfully executed. |
| message | No | String | Message content |
Example
- Example request
{ "jobs": [ { "create_time": 1591104868201, "job_id": 99270, "exceptions": { "error_id": "Agent.51000", "error_type": "JOB_SUBMIT_EXCEPTION", "error_cause": "agent_submit_job_exception_error", "exception": "", "error_time": "2020-06-02 13:34:28" }, "status": "job_submit_fail" } ], "msg_confirm_topic": "hw/events/messages/dli/message/confirm", "message_id": "uuid" } - Example response
{ "is_success": "true", "message": "The IEF Flink job status information is successfully reported." }
Status Codes
Table 5 describes the status code.
Error Codes
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Code.
Last Article: Creating an IEF Message Channel
Next Article: Action Callback of Flink Edge Jobs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.