Skip to main content

alerts

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

Overview

Namealerts
TypeResource
Idazure_stack.infrastructure_insights_admin.alerts

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
alertNametextfield from the properties object
alert_idtextfield from the properties object
alert_propertiestextfield from the properties object
closed_by_user_aliastextfield from the properties object
closed_timestamptextfield from the properties object
created_timestamptextfield from the properties object
fault_idtextfield from the properties object
fault_type_idtextfield from the properties object
has_valid_remediation_actiontextfield from the properties object
impacted_resource_display_nametextfield from the properties object
impacted_resource_idtextfield from the properties object
last_updated_timestamptextfield from the properties object
locationtextThe Azure Region where the resource lives
remediationtextfield from the properties object
resourceGroupNametextfield from the properties object
resource_provider_registration_idtextfield from the properties object
resource_registration_idtextfield from the properties object
severitytextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
titletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertName, location, resourceGroupName, subscriptionIdReturns the requested an alert.
listSELECTlocation, resourceGroupName, subscriptionIdReturns the list of all alerts in a given region.
closeEXECalertName, location, resourceGroupName, subscriptionId, userCloses the given alert.
repairEXECalertName, location, resourceGroupName, subscriptionIdRepairs an alert.

SELECT examples

Returns the list of all alerts in a given region.

SELECT
description,
alertName,
alert_id,
alert_properties,
closed_by_user_alias,
closed_timestamp,
created_timestamp,
fault_id,
fault_type_id,
has_valid_remediation_action,
impacted_resource_display_name,
impacted_resource_id,
last_updated_timestamp,
location,
remediation,
resourceGroupName,
resource_provider_registration_id,
resource_registration_id,
severity,
state,
subscriptionId,
tags,
title
FROM azure_stack.infrastructure_insights_admin.vw_alerts
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';