Language

AgentInsightMonitors.CreateAsync Method

Definition

Overloads

Name Description
CreateAsync(AgentInsightMonitorCreate, CancellationToken)

Create an Agent Insights monitor for an agent.

CreateAsync(BinaryContent, RequestOptions)

[Protocol Method] Create an Agent Insights monitor for an agent.

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

CreateAsync(AgentInsightMonitorCreate, CancellationToken)

Source:
AgentInsightMonitors.cs

Create an Agent Insights monitor for an agent.

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

Parameters

monitor
AgentInsightMonitorCreate

The monitor to create.

cancellationToken
CancellationToken

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

Returns

Exceptions

monitor is null.

Service returned a non-success status code.

Applies to

CreateAsync(BinaryContent, RequestOptions)

Source:
AgentInsightMonitors.cs

[Protocol Method] Create an Agent Insights monitor for an agent.

  • 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> CreateAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.CreateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function CreateAsync (content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

content
BinaryContent

The content to send as the body of the request.

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

content is null.

Service returned a non-success status code.

Applies to