Language

AgentInsightMonitors.CancelRunAsync Method

Definition

Overloads

Name Description
CancelRunAsync(String, String, RequestOptions)

[Protocol Method] Cancel an Agent Insights run.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
CancelRunAsync(String, String, CancellationToken)

Cancel an Agent Insights run.

CancelRunAsync(String, String, RequestOptions)

Source:
AgentInsightMonitors.cs

[Protocol Method] Cancel an Agent Insights run.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> CancelRunAsync(string monitorId, string runId, System.ClientModel.Primitives.RequestOptions options);
abstract member CancelRunAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.CancelRunAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function CancelRunAsync (monitorId As String, runId As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

monitorId
String

The identifier of the monitor.

runId
String

The identifier of the run.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

monitorId or runId is null.

monitorId or runId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

CancelRunAsync(String, String, CancellationToken)

Source:
AgentInsightMonitors.cs

Cancel an Agent Insights run.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AgentInsightRun>> CancelRunAsync(string monitorId, string runId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelRunAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AgentInsightRun>>
override this.CancelRunAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AgentInsightRun>>
Public Overridable Function CancelRunAsync (monitorId As String, runId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of AgentInsightRun))

Parameters

monitorId
String

The identifier of the monitor.

runId
String

The identifier of the run.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

monitorId or runId is null.

monitorId or runId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to