turbot/oci_insights

Query: mysql_backup_age_report

Usage

powerpipe query oci_insights.query.mysql_backup_age_report

SQL

select
b.display_name as "Name",
b.id as "OCID",
now()::date - b.time_created::date as "Age in Days",
b.time_created as "Create Time",
b.lifecycle_state as "Lifecycle State",
t.title as "Tenancy",
coalesce(c.title, 'root') as "Compartment",
b.region as "Region"
from
oci_mysql_backup as b
left join oci_identity_compartment as c on b.compartment_id = c.id
left join oci_identity_tenancy as t on b.tenant_id = t.id
where
b.lifecycle_state <> 'DELETED'
order by
b.time_created,
b.display_name;

Dashboards

The query is used in the dashboards: