turbot/guardrails_insights
GitHub

Query: guardrails_control_alert_between_90_365_days

Usage

steampipe query guardrails_insights.query.guardrails_control_alert_between_90_365_days

Plugins & Tables

SQL

with between_90_365_days as (
select
now() :: date - update_timestamp :: date as days
from
guardrails_control
where
update_timestamp between symmetric (now() - '90 days' :: interval)
and (now() - '365 days' :: interval)
and state = 'alarm'
)
select
count(*) as value,
'90-365 Days' as label
from
between_90_365_days;

Dashboards

The query is used in the dashboards: