turbot/guardrails_insights
GitHub

Query: guardrails_control_alarm_count

Usage

steampipe query guardrails_insights.query.guardrails_control_alarm_count

Plugins & Tables

SQL

select
case
when count(*) > 0 then count(*)
else '0'
end as value,
'Alarm' as label,
case
when count(*) = 0 then 'ok'
else 'alert'
end as "type"
from
guardrails_control
where
state = 'alarm';

Dashboards

The query is used in the dashboards: