turbot/oci_insights

Query: nosql_table_age_report

Usage

powerpipe query oci_insights.query.nosql_table_age_report

SQL

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

Dashboards

The query is used in the dashboards: