Skip to main content

vw_smart_groups

Creates, updates, deletes, gets or lists a vw_smart_groups resource.

Overview

Namevw_smart_groups
TypeView
Idazure.alerts_management.vw_smart_groups

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.alertsCount') as "alerts_count",
JSON_EXTRACT(properties, '$.smartGroupState') as "smart_group_state",
JSON_EXTRACT(properties, '$.severity') as "severity",
JSON_EXTRACT(properties, '$.startDateTime') as "start_date_time",
JSON_EXTRACT(properties, '$.lastModifiedDateTime') as "last_modified_date_time",
JSON_EXTRACT(properties, '$.lastModifiedUserName') as "last_modified_user_name",
JSON_EXTRACT(properties, '$.resources') as "resources",
JSON_EXTRACT(properties, '$.resourceTypes') as "resource_types",
JSON_EXTRACT(properties, '$.resourceGroups') as "resource_groups",
JSON_EXTRACT(properties, '$.monitorServices') as "monitor_services",
JSON_EXTRACT(properties, '$.monitorConditions') as "monitor_conditions",
JSON_EXTRACT(properties, '$.alertStates') as "alert_states",
JSON_EXTRACT(properties, '$.alertSeverities') as "alert_severities",
JSON_EXTRACT(properties, '$.nextLink') as "next_link",
subscriptionId,
smartGroupId
FROM azure.alerts_management.smart_groups
WHERE subscriptionId = 'replace-me';