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
  • idstring
    Required

    Identifies the event.

  • timestring

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

  • typestring
    Required

    The type of the event.

  • sourcestring
    Required

    Identifies the context in which an event happened.

  • specversionstring
    Required

    The version of the CloudEvents specification which the event uses.

  • datacontenttypestring

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

  • useridstring

    Unique identifier for the user triggering the event.

  • owneridstring

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

  • spaceidstring

    Unique identifier for the space related to the event.

  • tenantidstring
    Required

    Unique identifier for the tenant related to the event.

  • dataobject

    The automation run that ended, including execution metrics.

    Show data properties
    • automationany
    • idstring
    • titlestring

      Title of the automation run.

    • statusstring

      Status of the automation run.

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

    • contextstring

      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"

    • metricsobject
      Show metrics properties
      • blocksarray of objects

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

        Show blocks properties
        • typestring
          Required

          Type of the block.

          Can be one of: "snippetBlock""endpointBlock"

        • rxBytesinteger
          Required

          Total amount of bytes received by the current block.

        • txBytesinteger
          Required

          Total amount of bytes sent by the current block.

        • apiCallsinteger

          API calls to external resources made by the current block.

        • snippetIdstring

          Unique identifier for the snippet block used within the execution.

        • endpointIdstring

          Unique identifier for the endpoint.

        • connectorIdstring
          Required

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

      • networkobject
        Show network properties
        • rxBytesinteger

          The number of received bytes.

        • txBytesinteger

          The number of sent bytes.

      • totalApiCallsinteger

        The number of API calls made.

    • ownerIdstring

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

    • spaceIdstring

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

    • testRunboolean

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

    • archivedboolean

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

    • billableboolean

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

    • stopTimestring
    • createdAtstring
    • isTestRunboolean

      Indicates whether the run is a test run.

    • startTimestring
    • updatedAtstring
    • isArchivedboolean

      Indicates whether the run is archived.

    • executedByIdstring

      Id of the executor of the affected resource.

    • scheduledStartTimestring
    • blocksarray of objects

      List of blocks used during execution.

      Show blocks properties
      • typestring

        Type of the block.

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

      • paramsarray

        Parameters of the block (only present for base blocks)

      • rxBytesinteger

        Total amount of bytes received by the current block.

      • txBytesinteger

        Total amount of bytes sent by the current block.

      • apiCallsinteger

        API calls to external resources made by the current block.

      • durationinteger

        Duration of the block execution.

      • blockNamestring

        Name of the block (only present for base blocks)

      • snippetIdstring

        Unique identifier for the snippet block used within the execution.

      • endpointIdstring

        Unique identifier for the endpoint.

      • connectorIdstring

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

    • networkobject
      Show network properties
      • rxBytesinteger

        The number of received bytes.

      • txBytesinteger

        The number of sent bytes.

    • totalApiCallsinteger

      The number of API calls made.

  • toplevelresourceidstring

    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"
}