turbot/guardrails_insights
GitHub

Query: guardrails_control_error_24_hours_count

Usage

steampipe query guardrails_insights.query.guardrails_control_error_24_hours_count

Plugins & Tables

SQL

with less_than_24_hours_error_changed as (
select
now() :: date - update_timestamp :: date as days
from
guardrails_control
where
update_timestamp > now() - '1 days' :: interval
and state = 'error'
)
select
count(*) as value,
'< 24 hours' as label
from
less_than_24_hours_error_changed;

Dashboards

The query is used in the dashboards: