Automation events notify you about lifecycle changes and execution status of no-code workflows in Qlik Automate, enabling you to monitor and react to automation activity.

Run ended

The run ended event will be published when an automation execution has ended.

Payload

object
  • id string
    Required

    Identifies the event.

  • time string

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • type string
    Required

    The type of the event.

  • source string
    Required

    Identifies the context in which an event happened.

  • specversion string
    Required

    The version of the CloudEvents specification which the event uses.

  • datacontenttype string

    Content type of the data value. Must adhere to RFC 2046 format.

  • userid string

    Unique identifier for the user triggering the event.

  • ownerid string

    Unique identifier for the owner of the resource related to the event.

  • spaceid string

    Unique identifier for the space related to the event.

  • tenantid string
    Required

    Unique identifier for the tenant related to the event.

  • data object

    The automation run that ended, including execution metrics.

    Show data properties
    • automation any
    • id string
    • title string

      Title of the automation run.

    • status string

      Status of the automation run.

      Can be one of: "exceeded limit""failed""finished""finished with warnings""must stop""not started""queued""running""starting""stopped"

    • context string

      The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, the "test_run" context will not process all results when listing items).

      Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup""api""interactive"

    • metrics object
      Show metrics properties
      • blocks array of objects

        List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

        Show blocks properties
        • type string
          Required

          Type of the block.

          Can be one of: "snippetBlock""endpointBlock"

        • rxBytes integer
          Required

          Total amount of bytes received by the current block.

        • txBytes integer
          Required

          Total amount of bytes sent by the current block.

        • apiCalls integer

          API calls to external resources made by the current block.

        • snippetId string

          Unique identifier for the snippet block used within the execution.

        • endpointId string

          Unique identifier for the endpoint.

        • connectorId string
          Required

          Unique identifier for the connector used within the block of the execution.

      • network object
        Show network properties
        • rxBytes integer

          The number of received bytes.

        • txBytes integer

          The number of sent bytes.

      • totalApiCalls integer

        The number of API calls made.

    • ownerId string

      Unique identifier for the owner of the automation (QCS external user ID).

    • spaceId string

      Unique identifier for the space the run belongs to (empty when the run is not in a space).

    • testRun boolean

      Indicates if this is a test run. Supersedes the legacy isTestRun field.

    • archived boolean

      Indicates if the run is archived. Supersedes the legacy isArchived field.

    • billable boolean

      Indicates if this automation run is billable (if there are executed blocks that are linked to billable connectors)

    • stopTime string
    • createdAt string
    • isTestRun boolean Deprecated

      Indicates whether the run is a test run.

    • startTime string
    • updatedAt string
    • isArchived boolean Deprecated

      Indicates whether the run is archived.

    • executedById string

      Id of the executor of the affected resource.

    • scheduledStartTime string
    • blocks array of objects

      List of blocks used during execution.

      Show blocks properties
      • type string

        Type of the block.

        Can be one of: "snippetBlock""endpointBlock""baseBlock"

      • params array

        Parameters of the block (only present for base blocks)

      • rxBytes integer

        Total amount of bytes received by the current block.

      • txBytes integer

        Total amount of bytes sent by the current block.

      • apiCalls integer

        API calls to external resources made by the current block.

      • duration integer

        Duration of the block execution.

      • blockName string

        Name of the block (only present for base blocks)

      • snippetId string

        Unique identifier for the snippet block used within the execution.

      • endpointId string

        Unique identifier for the endpoint.

      • connectorId string

        Unique identifier for the connector used within the block of the execution.

    • network object
      Show network properties
      • rxBytes integer

        The number of received bytes.

      • txBytes integer

        The number of sent bytes.

    • totalApiCalls integer

      The number of API calls made.

  • toplevelresourceid string

    Unique identifier for the automation associated with the execution.

com.qlik.v1.automation.run.ended

Example payload of the "Run ended" event

{
"id": "A234-1234-1234",
"time": "2023-01-01T12:00:00.000Z",
"type": "com.qlik.v1.automation.run.ended",
"source": "com.qlik/automations",
"specversion": "1.0.2",
"datacontenttype": "application/json",
"userid": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"ownerid": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"spaceid": "68badd085f87029377ff60fa",
"tenantid": "svua0w_Icu2Kl1-SPshoNwgzAWdVLK0N",
"data": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"title": "string",
"status": "exceeded limit",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"spaceId": "68badd085f87029377ff60fa",
"testRun": true,
"archived": true,
"billable": false,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"scheduledStartTime": "2021-12-23T12:28:21.000000Z",
"blocks": [
{
"type": "endpointBlock",
"params": [],
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"duration": 1000,
"blockName": "SleepBlock",
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 42
},
"toplevelresourceid": "00000000-0000-0000-0000-000000000000"
}