turbot/gcp_insights

Query: sql_database_instance_point_in_time_recovery_enable_count

Usage

powerpipe query gcp_insights.query.sql_database_instance_point_in_time_recovery_enable_count

SQL

select
count(*) as value,
'Point-in-time Recovery Disabled' as label,
case
count(*)
when 0 then 'ok'
else 'alert'
end as "type"
from
gcp_sql_database_instance
where
not enable_point_in_time_recovery;

Dashboards

The query is used in the dashboards: