turbot/oci_insights

Query: mysql_backup_storage_by_tenancy

Usage

powerpipe query oci_insights.query.mysql_backup_storage_by_tenancy

SQL

select
t.title as "Tenancy",
sum(backup_size_in_gbs) as "GB"
from
oci_mysql_backup as b,
oci_identity_tenancy as t
where
t.id = b.tenant_id and lifecycle_state <> 'DELETED'
group by
t.title
order by
t.title;

Dashboards

The query is used in the dashboards: