AlertsSuppressionRules interface
Interface representing a AlertsSuppressionRules.
Methods
delete(string, Alerts |
Delete dismiss alert rule for this subscription. |
get(string, Alerts |
Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription |
list(Alerts |
List of all the dismiss rules for the given subscription |
update(string, Alerts |
Update existing rule or create new rule if it doesn't exist |
Method Details
delete(string, AlertsSuppressionRulesDeleteOptionalParams)
Delete dismiss alert rule for this subscription.
function delete(alertsSuppressionRuleName: string, options?: AlertsSuppressionRulesDeleteOptionalParams): Promise<void>
Parameters
- alertsSuppressionRuleName
-
string
The unique name of the suppression alert rule
The options parameters.
Returns
Promise<void>
get(string, AlertsSuppressionRulesGetOptionalParams)
Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription
function get(alertsSuppressionRuleName: string, options?: AlertsSuppressionRulesGetOptionalParams): Promise<AlertsSuppressionRule>
Parameters
- alertsSuppressionRuleName
-
string
The unique name of the suppression alert rule
The options parameters.
Returns
Promise<AlertsSuppressionRule>
list(AlertsSuppressionRulesListOptionalParams)
List of all the dismiss rules for the given subscription
function list(options?: AlertsSuppressionRulesListOptionalParams): PagedAsyncIterableIterator<AlertsSuppressionRule, AlertsSuppressionRule[], PageSettings>
Parameters
The options parameters.
Returns
update(string, AlertsSuppressionRule, AlertsSuppressionRulesUpdateOptionalParams)
Update existing rule or create new rule if it doesn't exist
function update(alertsSuppressionRuleName: string, alertsSuppressionRule: AlertsSuppressionRule, options?: AlertsSuppressionRulesUpdateOptionalParams): Promise<AlertsSuppressionRule>
Parameters
- alertsSuppressionRuleName
-
string
The unique name of the suppression alert rule
- alertsSuppressionRule
- AlertsSuppressionRule
Suppression rule object
The options parameters.
Returns
Promise<AlertsSuppressionRule>