addExecutionMetadata

Add execution information to a table

Add the metadata for the current batch to the table.

When working with a playbook, this will be the time in milliseconds that you select for the execution. For a batch, this will be the start and end time of the batch, as well as the URL that links to the result page of the batch execution.

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Search for Add Execution Metadata operator in the search field and select the operator from the Results to open the operator form.
  3. In the Table drop-down, enter or select a table to add the execution metadata for the current execution to the table.
  4. Click Run to view the result.
  5. Click Save to add the operator to the playbook.
  6. Click Cancel to discard the operator form.

Usage Details

addExecutionMetadata(table)

Output
The input table with an additional lhub_execution_metadata column is returned. lhub_execution_metadata is a JSON object and contains values of execution metadata fields.

{
   "interval_start_millis": 1591225680000,
   "interval_end_millis": 1591225740000,
   "batch_url": "https://domain.logichub.io/batches/batch-45545",
   "stream_name":"",
   "stream_id":"",
   "flow_id":""
}

batch_url, stream_name, stream_id, flow_idwill be non-empty only if the playbook is executed as a stream. When you execute the playbook interactive in the playbook builder, this field will be an empty string.


© 2017-2021 LogicHub®. All Rights Reserved.