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
- Click + on the parent node.
- Search for Add Execution Metadata operator in the search field and select the operator from the Results to open the operator form.
- In the Table drop-down, enter or select a table to add the execution metadata for the current execution to the table.
- Click Run to view the result.
- Click Save to add the operator to the playbook.
- Click Cancel to discard the operator form.
Usage Details
LQL Command
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.
Example Output of the operator
{ "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_id
will 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.