Skip to main content

alerts

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

Overview

Namealerts
TypeResource
Idazure.data_box_edge.alerts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
alertTypestringAlert type.
appearedAtDateTimestring (date-time)UTC time when the alert appeared.
detailedInformationobjectAlert details.
errorDetailsobjectError details of the alert.
recommendationstringAlert recommendation.
severitystringSeverity of the alert. Known values are: "Informational", "Warning", and "Critical". (Informational, Warning, Critical)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringAlert title.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_name, name, resource_group_name, subscription_idGets an alert by name. Gets an alert by name.
list_by_data_box_edge_deviceselectdevice_name, resource_group_name, subscription_idGets all the alerts for a Data Box Edge/Data Box Gateway device.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
device_namestringThe device name. Required.
namestringThe alert name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an alert by name. Gets an alert by name.

SELECT
id,
name,
alertType,
appearedAtDateTime,
detailedInformation,
errorDetails,
recommendation,
severity,
systemData,
title,
type
FROM azure.data_box_edge.alerts
WHERE device_name = '{{ device_name }}' -- required
AND name = '{{ name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;