smart_groups
Creates, updates, deletes, gets or lists a smart_groups
resource.
Overview
Name | smart_groups |
Type | Resource |
Id | azure.alerts_management.smart_groups |
Fields
- vw_smart_groups
- smart_groups
Name | Datatype | Description |
---|---|---|
id | text | Azure resource Id |
name | text | Azure resource name |
alert_severities | text | field from the properties object |
alert_states | text | field from the properties object |
alerts_count | text | field from the properties object |
last_modified_date_time | text | field from the properties object |
last_modified_user_name | text | field from the properties object |
monitor_conditions | text | field from the properties object |
monitor_services | text | field from the properties object |
next_link | text | field from the properties object |
resource_groups | text | field from the properties object |
resource_types | text | field from the properties object |
resources | text | field from the properties object |
severity | text | field from the properties object |
smartGroupId | text | field from the properties object |
smart_group_state | text | field from the properties object |
start_date_time | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Azure resource type |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource Id |
name | string | Azure resource name |
properties | object | Properties of smart group. |
type | string | Azure resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_all | SELECT | subscriptionId | List all the Smart Groups within a specified subscription. |
get_by_id | SELECT | smartGroupId, subscriptionId | Get information related to a specific Smart Group. |
change_state | EXEC | newState, smartGroupId, subscriptionId | Change the state of a Smart Group. |
SELECT
examples
List all the Smart Groups within a specified subscription.
- vw_smart_groups
- smart_groups
SELECT
id,
name,
alert_severities,
alert_states,
alerts_count,
last_modified_date_time,
last_modified_user_name,
monitor_conditions,
monitor_services,
next_link,
resource_groups,
resource_types,
resources,
severity,
smartGroupId,
smart_group_state,
start_date_time,
subscriptionId,
type
FROM azure.alerts_management.vw_smart_groups
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.alerts_management.smart_groups
WHERE subscriptionId = '{{ subscriptionId }}';