Task

Task
Task

Describes the task object.

JSON Example
{
    "id": "string",
    "type": "NOTIFICATION",
    "status": "IN_PROGRESS",
    "start_time": "number",
    "end_time": "number",
    "action": "ACKNOWLEDGE",
    "details": "Performing ack operation",
    "user_name": "admin",
    "notification_ids": [
        "id1",
        "id2"
    ],
    "entities": [
        {}
    ],
    "dag_id": "string"
}
string
id
Required

Unique identifier for task.

string
type
Required

Which type of task user wants to create.

Possible values are : NOTIFICATION, REMEDIATION, COLLECTOR, ESCALATION,
string
status
Required

The current status of task.

Possible values are : IN_PROGRESS, COMPLETED, FAILED,
number
start_time
Required

The start time of task in epoch millis.

number
end_time
Required

The end time of task in epoch millis.

string
action
Required

The name of the action e.g. ADD_USER, ACKNOWLEDGE or REMEDIATION.

string
details
Optional

The details of performing action.

string
user_name
Required

The name of the user

array of string
notification_ids
Required

List of notification ids on which the action is performed.

array of object
entities
Required

This filed contains the details specific to the Task type (NOTIFICATION/REMEDIATION)

string
dag_id
Optional

This field is specific to remediation task. dag_id represent dag_id created for airflow pipeline.