Sprog

AzureAIProjectsModelFactory.AgentInsightMonitor Method

Definition

A per-agent Agent Insights monitor that owns configuration, runs, and discovered insights.

public static Azure.AI.Projects.AgentInsightMonitor AgentInsightMonitor(string id = default, string agentName = default, bool enabled = false, double runIntervalHours = 0, string modelDeploymentName = default, DateTimeOffset? nextScheduledRunOn = default, Azure.AI.Projects.AgentInsightEstimatedCost estimatedCost = default, Azure.AI.Projects.AgentInsightSuspension suspension = default, Azure.AI.Projects.AgentInsightsOverview overview = default, DateTimeOffset updatedOn = default);
static member AgentInsightMonitor : string * string * bool * double * string * Nullable<DateTimeOffset> * Azure.AI.Projects.AgentInsightEstimatedCost * Azure.AI.Projects.AgentInsightSuspension * Azure.AI.Projects.AgentInsightsOverview * DateTimeOffset -> Azure.AI.Projects.AgentInsightMonitor
Public Shared Function AgentInsightMonitor (Optional id As String = Nothing, Optional agentName As String = Nothing, Optional enabled As Boolean = false, Optional runIntervalHours As Double = 0, Optional modelDeploymentName As String = Nothing, Optional nextScheduledRunOn As Nullable(Of DateTimeOffset) = Nothing, Optional estimatedCost As AgentInsightEstimatedCost = Nothing, Optional suspension As AgentInsightSuspension = Nothing, Optional overview As AgentInsightsOverview = Nothing, Optional updatedOn As DateTimeOffset = Nothing) As AgentInsightMonitor

Parameters

id
String

The monitor identifier.

agentName
String

The agent this monitor analyzes. There can be only one monitor per agent.

enabled
Boolean

Whether scheduled insight generation is armed for the monitor.

runIntervalHours
Double

Interval between scheduled insight runs, in hours.

modelDeploymentName
String

The model deployment to use for analyzing traces. Accepts either the deployment name alone or with the connection name as '{connectionName}/modelDeploymentName'.

nextScheduledRunOn
Nullable<DateTimeOffset>

The next time a scheduled agent insight run will start. Omitted when scheduled generation is disabled.

estimatedCost
AgentInsightEstimatedCost

Estimated cost accumulated by Agent Insights for this monitor.

suspension
AgentInsightSuspension

Why the system suspended scheduled generation. Null when the monitor is not suspended.

overview
AgentInsightsOverview

The effective overview, or null before an overview is available.

updatedOn
DateTimeOffset

The time when this monitor was last updated.

Returns

A new AgentInsightMonitor instance for mocking.

Applies to