Skip to main content

smart_groups

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

Overview

Namesmart_groups
TypeResource
Idazure.alerts_management.smart_groups

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name
alert_severitiestextfield from the properties object
alert_statestextfield from the properties object
alerts_counttextfield from the properties object
last_modified_date_timetextfield from the properties object
last_modified_user_nametextfield from the properties object
monitor_conditionstextfield from the properties object
monitor_servicestextfield from the properties object
next_linktextfield from the properties object
resource_groupstextfield from the properties object
resource_typestextfield from the properties object
resourcestextfield from the properties object
severitytextfield from the properties object
smartGroupIdtextfield from the properties object
smart_group_statetextfield from the properties object
start_date_timetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextAzure resource type

Methods

NameAccessible byRequired ParamsDescription
get_allSELECTsubscriptionIdList all the Smart Groups within a specified subscription.
get_by_idSELECTsmartGroupId, subscriptionIdGet information related to a specific Smart Group.
change_stateEXECnewState, smartGroupId, subscriptionIdChange the state of a Smart Group.

SELECT examples

List all the Smart Groups within a specified subscription.

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 }}';