turbot/guardrails_insights

Query: accounts_count

Usage

powerpipe query guardrails_insights.query.accounts_count

Steampipe Tables

SQL

select
sum((output -> 'accounts' -> 'metadata' -> 'stats' ->> 'total')::int) as "Accounts"
from
guardrails_query
where
query = '{
accounts: resources(
filter: "resourceTypeId:tmod:@turbot/turbot#/resource/interfaces/accountable level:self"
) {
metadata {
stats {
total
}
}
}
}';

Dashboards

The query is used in the dashboards: