Skip to main content

notification_rules

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

Overview

Namenotification_rules
TypeResource
Idazure.developer_loadtesting.notification_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionGroupIdsarrayThe action groups to notify. Required.
createdBystringThe user that created.
createdDateTimestring (date-time)The creation datetime(RFC 3339 literal format).
displayNamestringThe name of the notification rule. Required.
lastModifiedBystringThe user that last modified.
lastModifiedDateTimestring (date-time)The last Modified datetime(RFC 3339 literal format).
notificationRuleIdstringThe unique identifier of the notification rule. Required.
scopestringThe scope of the notification rule. Required. "Tests"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notification_ruleselectnotification_rule_id, endpointResource read operation template.
list_notification_rulesselectendpointtestIds, scopes, lastModifiedStartTime, lastModifiedEndTime, maxpagesizeResource list operation template.
create_or_update_notification_ruleinsertnotification_rule_id, endpoint, displayName, actionGroupIds, scopeCreate or update operation template.
create_or_update_notification_rulereplacenotification_rule_id, endpoint, displayName, actionGroupIds, scopeCreate or update operation template.
delete_notification_ruledeletenotification_rule_id, endpointResource delete operation template.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
notification_rule_idstringThe unique identifier of the notification rule. Required.
lastModifiedEndTimestring (date-time)End DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. Default value is None.
lastModifiedStartTimestring (date-time)Start DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. Default value is None.
maxpagesizeinteger
scopesstringSearch based on notification rules for the provided scopes. Default value is None.
testIdsstringSearch based on notification rules associated with the provided test ids. Default value is None.

SELECT examples

Resource read operation template.

SELECT
actionGroupIds,
createdBy,
createdDateTime,
displayName,
lastModifiedBy,
lastModifiedDateTime,
notificationRuleId,
scope
FROM azure.developer_loadtesting.notification_rules
WHERE notification_rule_id = '{{ notification_rule_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create or update operation template.

INSERT INTO azure.developer_loadtesting.notification_rules (
displayName,
actionGroupIds,
scope,
notification_rule_id,
endpoint
)
SELECT
'{{ displayName }}' /* required */,
'{{ actionGroupIds }}' /* required */,
'{{ scope }}' /* required */,
'{{ notification_rule_id }}',
'{{ endpoint }}'
RETURNING
actionGroupIds,
createdBy,
createdDateTime,
displayName,
lastModifiedBy,
lastModifiedDateTime,
notificationRuleId,
scope
;

REPLACE examples

Create or update operation template.

REPLACE azure.developer_loadtesting.notification_rules
SET
displayName = '{{ displayName }}',
actionGroupIds = '{{ actionGroupIds }}',
scope = '{{ scope }}'
WHERE
notification_rule_id = '{{ notification_rule_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND displayName = '{{ displayName }}' --required
AND actionGroupIds = '{{ actionGroupIds }}' --required
AND scope = '{{ scope }}' --required
RETURNING
actionGroupIds,
createdBy,
createdDateTime,
displayName,
lastModifiedBy,
lastModifiedDateTime,
notificationRuleId,
scope;

DELETE examples

Resource delete operation template.

DELETE FROM azure.developer_loadtesting.notification_rules
WHERE notification_rule_id = '{{ notification_rule_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;