Language

AgentInsightMonitors.GetAsync Method

Definition

Overloads

Name Description
GetAsync(String, CancellationToken)

Get an Agent Insights monitor.

GetAsync(String, RequestOptions)

[Protocol Method] Get an Agent Insights monitor.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GetAsync(String, CancellationToken)

Source:
AgentInsightMonitors.cs

Get an Agent Insights monitor.

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

Parameters

monitorId
String

The identifier of the monitor.

cancellationToken
CancellationToken

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

Returns

Exceptions

monitorId is null.

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

Service returned a non-success status code.

Applies to

GetAsync(String, RequestOptions)

Source:
AgentInsightMonitors.cs

[Protocol Method] Get an Agent Insights monitor.

  • 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> GetAsync(string monitorId, System.ClientModel.Primitives.RequestOptions options);
abstract member GetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetAsync (monitorId As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

monitorId
String

The identifier of the monitor.

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 is null.

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

Service returned a non-success status code.

Applies to