AgentInsightMonitors.CreateRunAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateRunAsync(Boolean, String, AgentInsightRunCreate, String, CancellationToken) |
Start an Agent Insights run for a monitor. |
| CreateRunAsync(Boolean, String, BinaryContent, String, RequestOptions) |
Start an Agent Insights run for a monitor. |
CreateRunAsync(Boolean, String, AgentInsightRunCreate, String, CancellationToken)
- Source:
- AgentInsightMonitors.cs
Start an Agent Insights run for a monitor.
public virtual System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult> CreateRunAsync(bool waitUntilCompleted, string monitorId, Azure.AI.Projects.AgentInsightRunCreate run, string operationId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRunAsync : bool * string * Azure.AI.Projects.AgentInsightRunCreate * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult>
override this.CreateRunAsync : bool * string * Azure.AI.Projects.AgentInsightRunCreate * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult>
Public Overridable Function CreateRunAsync (waitUntilCompleted As Boolean, monitorId As String, run As AgentInsightRunCreate, Optional operationId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OperationResult)
Parameters
- waitUntilCompleted
- Boolean
Whether the method should wait until the long-running operation has completed on the service.
- monitorId
- String
The identifier of the monitor.
Run inputs. Send an empty object to use the default 168-hour lookback window.
- operationId
- String
Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
monitorId or run is null.
monitorId is an empty string, and was expected to be non-empty.
Applies to
CreateRunAsync(Boolean, String, BinaryContent, String, RequestOptions)
- Source:
- AgentInsightMonitors.cs
Start an Agent Insights run for a monitor.
public virtual System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult> CreateRunAsync(bool waitUntilCompleted, string monitorId, System.ClientModel.BinaryContent content, string operationId = default, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateRunAsync : bool * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult>
override this.CreateRunAsync : bool * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.Primitives.OperationResult>
Public Overridable Function CreateRunAsync (waitUntilCompleted As Boolean, monitorId As String, content As BinaryContent, Optional operationId As String = Nothing, Optional options As RequestOptions = Nothing) As Task(Of OperationResult)
Parameters
- waitUntilCompleted
- Boolean
Whether the method should wait until the long-running operation has completed on the service.
- monitorId
- String
The identifier of the monitor.
- content
- BinaryContent
The content to send as the body of the request.
- operationId
- String
Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally.
- 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 content is null.
monitorId is an empty string, and was expected to be non-empty.