Actions interface

Interface representing a Actions.

Methods

createOrUpdate(string, string, string, string, ActionRequest, ActionsCreateOrUpdateOptionalParams)

Creates or updates the action of alert rule.

delete(string, string, string, string, ActionsDeleteOptionalParams)

Delete the action of alert rule.

get(string, string, string, string, ActionsGetOptionalParams)

Gets the action of alert rule.

listByAlertRule(string, string, string, ActionsListByAlertRuleOptionalParams)

Gets all actions of alert rule.

Method Details

createOrUpdate(string, string, string, string, ActionRequest, ActionsCreateOrUpdateOptionalParams)

Creates or updates the action of alert rule.

function createOrUpdate(resourceGroupName: string, workspaceName: string, ruleId: string, actionId: string, action: ActionRequest, options?: ActionsCreateOrUpdateOptionalParams): Promise<ActionResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

ruleId

string

Alert rule ID

actionId

string

Action ID

action
ActionRequest

The action

options
ActionsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<ActionResponse>

delete(string, string, string, string, ActionsDeleteOptionalParams)

Delete the action of alert rule.

function delete(resourceGroupName: string, workspaceName: string, ruleId: string, actionId: string, options?: ActionsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

ruleId

string

Alert rule ID

actionId

string

Action ID

options
ActionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, ActionsGetOptionalParams)

Gets the action of alert rule.

function get(resourceGroupName: string, workspaceName: string, ruleId: string, actionId: string, options?: ActionsGetOptionalParams): Promise<ActionResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

ruleId

string

Alert rule ID

actionId

string

Action ID

options
ActionsGetOptionalParams

The options parameters.

Returns

Promise<ActionResponse>

listByAlertRule(string, string, string, ActionsListByAlertRuleOptionalParams)

Gets all actions of alert rule.

function listByAlertRule(resourceGroupName: string, workspaceName: string, ruleId: string, options?: ActionsListByAlertRuleOptionalParams): PagedAsyncIterableIterator<ActionResponse, ActionResponse[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

ruleId

string

Alert rule ID

options
ActionsListByAlertRuleOptionalParams

The options parameters.

Returns