AlertConfigurations interface
Interface representing a AlertConfigurations.
Methods
| get(string, string, Alert |
Get the specified alert configuration. |
| list |
Gets alert configurations for a resource scope. |
| update(string, string, Alert |
Update an alert configuration. |
Method Details
get(string, string, AlertConfigurationsGetOptionalParams)
Get the specified alert configuration.
function get(scope: string, alertId: string, options?: AlertConfigurationsGetOptionalParams): Promise<AlertConfiguration>
Parameters
- scope
-
string
The scope of the alert configuration. The scope can be any REST resource instance. For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- alertId
-
string
The name of the alert configuration to get.
The options parameters.
Returns
Promise<AlertConfiguration>
listForScope(string, AlertConfigurationsListForScopeOptionalParams)
Gets alert configurations for a resource scope.
function listForScope(scope: string, options?: AlertConfigurationsListForScopeOptionalParams): PagedAsyncIterableIterator<AlertConfiguration, AlertConfiguration[], PageSettings>
Parameters
- scope
-
string
The scope of the alert configuration.
The options parameters.
Returns
update(string, string, AlertConfiguration, AlertConfigurationsUpdateOptionalParams)
Update an alert configuration.
function update(scope: string, alertId: string, parameters: AlertConfiguration, options?: AlertConfigurationsUpdateOptionalParams): Promise<void>
Parameters
- scope
-
string
The scope of the alert configuration.
- alertId
-
string
The name of the alert configuration to update.
- parameters
- AlertConfiguration
Parameters for the alert configuration.
The options parameters.
Returns
Promise<void>