turbot/guardrails_insights

Query: alerts_total

Usage

powerpipe query guardrails_insights.query.alerts_total

Steampipe Tables

SQL

select
sum((output -> 'alerts' -> 'metadata' -> 'stats' ->> 'total')::int) as "Alerts - alarm, invalid, error"
from
guardrails_query
where
query = '{
alerts: controls(filter: "state:alarm,invalid,error") {
metadata {
stats {
total
}
}
}
}';

Dashboards

The query is used in the dashboards: