Skip to main content

alerts

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

Overview

Namealerts
TypeResource
Idazure_extras.storsimple_8000_series.alerts

Fields

The following fields are returned by SELECT queries:

The collection of alerts.

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe name of the object.
kindstringThe Kind of the object. Currently only Series8000 is supported
propertiesobjectThe properties of the alert.
typestringThe hierarchical type of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_managerselectsubscriptionId, resourceGroupName, managerName$filterRetrieves all the alerts in a manager.
clearexecsubscriptionId, resourceGroupName, managerName, alertsClear the alerts.
send_test_emailexecdeviceName, subscriptionId, resourceGroupName, managerName, emailListSends a test alert email.

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
deviceNamestringThe device name
managerNamestringThe manager name
resourceGroupNamestringThe resource group name
subscriptionIdstringThe subscription id
$filterstringOData Filter options

SELECT examples

Retrieves all the alerts in a manager.

SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.alerts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND managerName = '{{ managerName }}' -- required
AND $filter = '{{ $filter }}'
;

Lifecycle Methods

Clear the alerts.

EXEC azure_extras.storsimple_8000_series.alerts.clear 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@managerName='{{ managerName }}' --required
@@json=
'{
"resolutionMessage": "{{ resolutionMessage }}",
"alerts": "{{ alerts }}"
}'
;