This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tables steampipecloud_process, steampipecloud_workspace_pipeline …
…and steampipecloud_workspace_process . (#31) Co-authored-by: Ved misra <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,932 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Table: steampipecloud_process | ||
|
||
Allows to track various activities performed on an identity in Steampipe Cloud. | ||
|
||
## Examples | ||
|
||
### Basic info | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
identity_type, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_process; | ||
``` | ||
|
||
### List processes that are being run by an identity pipeline | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
identity_type, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_process | ||
where | ||
pipeline_id is not null; | ||
``` | ||
|
||
### List user processes | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
identity_type, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_process | ||
where | ||
identity_type = 'user'; | ||
``` | ||
|
||
### List running processes | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
identity_type, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_process | ||
where | ||
state = 'running'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Table: steampipecloud_workspace_pipeline | ||
|
||
Pipelines allow users to run different kinds of activities in Steampipe Cloud on a schedule. | ||
|
||
**Important notes:** | ||
|
||
This table supports optional quals. Queries with optional quals in the `where` clause are optimised to use Steampipe Cloud filters. | ||
|
||
Optional quals are supported for the following columns: | ||
|
||
- `created_at` | ||
- `id` | ||
- `identity_handle` | ||
- `identity_id` | ||
- `pipeline` | ||
- `query_where` - Allows use of [query filters](https://steampipe.io/docs/cloud/reference/query-filter). For a list of supported columns for pipelines, please see [Supported APIs and Columns](https://steampipe.io/docs/cloud/reference/query-filter#supported-apis--columns). Please note that any query filter passed into the `query_where` qual will be combined with other optional quals. | ||
- `title` | ||
- `updated_at` | ||
- `workspace_handle` | ||
- `workspace_id` | ||
|
||
## Examples | ||
|
||
### Basic info | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
title, | ||
frequency, | ||
pipeline, | ||
args, | ||
tags, | ||
last_process_id | ||
from | ||
steampipecloud_workspace_pipeline; | ||
``` | ||
|
||
### List pipelines for a specific workspace | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
title, | ||
frequency, | ||
pipeline, | ||
args, | ||
tags, | ||
last_process_id | ||
from | ||
steampipecloud_workspace_pipeline | ||
where | ||
workspace_handle = 'dev'; | ||
``` | ||
|
||
### List pipelines of frequency type `interval` for a specific workspace | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
title, | ||
frequency, | ||
pipeline, | ||
args, | ||
tags, | ||
last_process_id | ||
from | ||
steampipecloud_workspace_pipeline | ||
where | ||
workspace_handle = 'dev' | ||
and frequency->>'type' = 'interval'; | ||
``` | ||
|
||
### List pipelines for the `AWS Compliance CIS v1.4.0` dashboard created in the last 7 days | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
title, | ||
frequency, | ||
pipeline, | ||
args, | ||
tags, | ||
last_process_id | ||
from | ||
steampipecloud_workspace_pipeline | ||
where | ||
args->>'resource' = 'aws_compliance.benchmark.cis_v140' | ||
and created_at >= now() - interval '7 days'; | ||
``` | ||
|
||
### List pipelines for the `AWS Compliance CIS v1.4.0` dashboard created in the last 7 days using [query filter](https://steampipe.io/docs/cloud/reference/query-filter) | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
title, | ||
frequency, | ||
pipeline, | ||
args, | ||
tags, | ||
last_process_id | ||
from | ||
steampipecloud_workspace_pipeline | ||
where | ||
query_where = 'title = ''Scheduled snapshot: CIS v1.4.0'' and created_at >= now() - interval ''7 days'''; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Table: steampipecloud_workspace_process | ||
|
||
Allows to track various activities performed on a workspace of an identity in Steampipe Cloud. | ||
|
||
**Important notes:** | ||
|
||
This table supports optional quals. Queries with optional quals in the `where` clause are optimised to use Steampipe Cloud filters. | ||
|
||
Optional quals are supported for the following columns: | ||
|
||
- `created_at` | ||
- `id` | ||
- `identity_handle` | ||
- `identity_id` | ||
- `pipeline_id` | ||
- `query_where` - Allows use of [query filters](https://steampipe.io/docs/cloud/reference/query-filter). For a list of supported columns for workspace proceses, please see [Supported APIs and Columns](https://steampipe.io/docs/cloud/reference/query-filter#supported-apis--columns). Please note that any query filter passed into the `query_where` qual will be combined with other optional quals. | ||
- `state` | ||
- `type` | ||
- `updated_at` | ||
- `workspace_handle` | ||
- `workspace_id` | ||
|
||
## Examples | ||
|
||
### Basic info | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_workspace_process; | ||
``` | ||
|
||
### List processes for a pipeline | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_workspace_process | ||
where | ||
pipeline_id = 'pipe_cfcgiefm1tumv1dis7lg'; | ||
``` | ||
|
||
### List running processes for a pipeline | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_workspace_process | ||
where | ||
pipeline_id = 'pipe_cfcgiefm1tumv1dis7lg' | ||
and state = 'running'; | ||
``` | ||
|
||
### List running processes for a pipeline using [query filter](https://steampipe.io/docs/cloud/reference/query-filter) | ||
|
||
```sql | ||
select | ||
id, | ||
identity_handle, | ||
workspace_handle, | ||
pipeline_id, | ||
type, | ||
state, | ||
created_at | ||
from | ||
steampipecloud_workspace_process | ||
where | ||
query_where = 'pipeline_id = ''pipe_cfcgiefm1tumv1dis7lg'' and state = ''running'''; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.