turbot/gitlab_insights

Query: group_expiring_member_24_hours_count

Usage

powerpipe query gitlab_insights.query.group_expiring_member_24_hours_count

SQL

select
'< 24 Hours' as label,
count(m.*) as value
from
gitlab_group g
join gitlab_group_member m on g.id = m.group_id
where
m.state = 'active'
and (
m.expires_at is not null and
m.expires_at < now() + '1 days'::interval
);

Dashboards

The query is used in the dashboards: