Control: Turbot > Mod > Health
Description
Workspaces Mod health summary.
Usage
Run the control in your terminal:
powerpipe control run guardrails_insights.control.mod_healthSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run guardrails_insights.control.mod_health --shareSQL
This control uses a named query:
select  split_part(resource_trunk_title, '>', 2) as resource,  case     when state in ('tbd', 'invalid') then 'info'    else state  end as status,  case    when state = 'ok' then split_part(resource_trunk_title, '>', 2) || ' is healthy.'    else split_part(resource_trunk_title, '>', 2) || ' ' || reason || '.'  end as reason  , split_part(workspace, '//', 2) as workspacefrom  guardrails_controlwhere  control_type_uri = 'tmod:@turbot/turbot#/control/types/modHealth'group by  workspace, id, state, resource_trunk_title, reasonorder by  workspace;