Table: make_scenario
Scenarios allow you to create and run automation tasks. A scenario consists of a series of modules that indicate how data should be transferred and transformed between apps or services.
Key columns
- Provide a numeric
id
if you want to query for a specific Scenario.
Examples
List of all Scenarios
select *from make_scenario;
List all Scenarios using Webhooks as an entry-point
select *from make_scenariowhere hook_id is not null;
List all Scenarios using Airtable
select *from make_scenariowhere used_packages :: jsonb ? 'airtable';
List of all Scenarios edited today
select *from make_scenariowhere last_edit > now() - interval '1 days';
List of all Scenarios created by a specific user
select *from make_scenariowhere created_by_user ->> 'email' = 'marty@mcfly.family';
List of all Scenarios paused due to an error
select *from make_scenariowhere is_waiting = true;
List of all Scenarios with incomplete executions
select *from make_scenariowhere dlq_count > 0;
Schema for make_scenario
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
concept | boolean | Is the Scenario a concept? | |
created_by_user | jsonb | Author of this Scenario. | |
description | text | The Scenario description. | |
device_id | bigint | The device ID. | |
device_scope | text | The device scope. | |
dlq_count | bigint | Number of incomplete executions. | |
folder_id | bigint | The folder id, if Scenario is in a folder. | |
hook_id | bigint | The Webhook ID, if used to trigger the Scenario. | |
id | bigint | = | The Scenario ID. |
is_enabled | boolean | Is the Scenario enabled? | |
is_invalid | boolean | Is the Scenario invalid? | |
is_locked | boolean | Is the Scenario locked? | |
is_paused | boolean | Is the Scenario paused? | |
is_waiting | boolean | Is the Scenario paused due to an error? | |
last_edit | timestamp with time zone | Date and time of when was this Scenario edited the last time. | |
module_sequence_id | bigint | The module sequence ID. | |
name | text | The name of the Scenario. | |
next_exec | timestamp with time zone | Date and time of the next scheduled execution. | |
organization_id | bigint | Virtual column, used to map the entity to another object. | |
scenario_version | bigint | The version of the Scenario. | |
scheduling | jsonb | Scheduling details | |
team_id | bigint | Virtual column, used to map the entity to another object. | |
title | text | The display name for the resource. | |
updated_by_user | jsonb | Last editor of this Scenario. | |
used_packages | jsonb | The list of used Apps in this Scenario. |