Skip to main content

services_alerts

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

Overview

Nameservices_alerts
TypeResource
Idazure.ad_hybrid_health_service.services_alerts

Fields

The following fields are returned by SELECT queries:

The list of alerts.

NameDatatypeDescription
activeAlertPropertiesarrayThe active alert properties.
additionalInformationarrayAdditional information related to the alert.
alertIdstring (uuid)The alert Id.
createdDatestring (date-time)The date and time,in UTC,when the alert was created.
descriptionstringThe alert description.
displayNamestringThe display name for the alert.
lastUpdatedstring (date-time)The date and time, in UTC, when the alert was last updated.
levelstringThe alert level which indicates the severity of the alert.
monitorRoleTypestringThe monitoring role type for which the alert was raised.
relatedLinksarrayThe help links to get more information related to the alert.
remediationstringThe alert remediation.
resolvedAlertPropertiesarrayThe resolved alert properties.
resolvedDatestring (date-time)The date and time, in UTC, when the alert was resolved.
scopestringThe scope of the alert. Indicates if it is a service or a server related alert.
serviceIdstring (uuid)The service Id.
serviceMemberIdstring (uuid)The server Id.
shortNamestringThe alert short name.
statestringThe alert state which can be either active or resolved with multiple resolution types.
tenantIdstring (uuid)The tenant Id.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectserviceName$filter, state, from, toGets the alerts for a given service.

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
serviceNamestringThe name of the service.
$filterstringThe alert property filter to apply.
fromstring (date-time)The start date to query for.
statestringThe alert state to query for.
tostring (date-time)The end date till when to query for.

SELECT examples

Gets the alerts for a given service.

SELECT
activeAlertProperties,
additionalInformation,
alertId,
createdDate,
description,
displayName,
lastUpdated,
level,
monitorRoleType,
relatedLinks,
remediation,
resolvedAlertProperties,
resolvedDate,
scope,
serviceId,
serviceMemberId,
shortName,
state,
tenantId
FROM azure.ad_hybrid_health_service.services_alerts
WHERE serviceName = '{{ serviceName }}' -- required
AND $filter = '{{ $filter }}'
AND state = '{{ state }}'
AND from = '{{ from }}'
AND to = '{{ to }}'
;