Aracılığıyla paylaş


ActionsClient Interface

public interface ActionsClient

An instance of this class provides access to all the operations defined in ActionsClient.

Method Summary

Modifier and Type Method and Description
abstract ActionResponseInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action)

Creates or updates the action of alert rule.

abstract Response<ActionResponseInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action, Context context)

Creates or updates the action of alert rule.

abstract void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId)

Delete the action of alert rule.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context)

Delete the action of alert rule.

abstract ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId)

Gets the action of alert rule.

abstract Response<ActionResponseInner> getWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context)

Gets the action of alert rule.

abstract PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId)

Gets all actions of alert rule.

abstract PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId, Context context)

Gets all actions of alert rule.

Method Details

createOrUpdate

public abstract ActionResponseInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action)

Creates or updates the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.
action - The action.

Returns:

action for alert rule.

createOrUpdateWithResponse

public abstract Response<ActionResponseInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action, Context context)

Creates or updates the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.
action - The action.
context - The context to associate with this operation.

Returns:

action for alert rule along with Response<T>.

delete

public abstract void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId)

Delete the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context)

Delete the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.
context - The context to associate with this operation.

Returns:

get

public abstract ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId)

Gets the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.

Returns:

the action of alert rule.

getWithResponse

public abstract Response<ActionResponseInner> getWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context)

Gets the action of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
actionId - Action ID.
context - The context to associate with this operation.

Returns:

the action of alert rule along with Response<T>.

listByAlertRule

public abstract PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId)

Gets all actions of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.

Returns:

all actions of alert rule as paginated response with PagedIterable<T>.

listByAlertRule

public abstract PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId, Context context)

Gets all actions of alert rule.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - The name of the workspace.
ruleId - Alert rule ID.
context - The context to associate with this operation.

Returns:

all actions of alert rule as paginated response with PagedIterable<T>.

Applies to