turbot/guardrails_insights

Query: workspace_health_control

Usage

powerpipe query guardrails_insights.query.workspace_health_control

Steampipe Tables

SQL

select
id as resource,
case
when state in ('tbd', 'invalid') then 'info'
else state
end as status,
case
when state = 'ok' then split_part(workspace, '//', 2) || ' is healthy.'
else split_part(workspace, '//', 2) || ' ' || reason || '.'
end as reason
, split_part(workspace, '//', 2) as workspace
from
guardrails_control
where
control_type_uri = 'tmod:@turbot/turbot#/control/types/workspaceHealthControl'
order by
workspace;

Controls

The query is being used by the following controls: