Hoppa till huvudinnehåll

Den här webbläsaren stöds inte längre.

Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.

Ladda ned Microsoft Edge Mer information om Internet Explorer och Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

Agent Insight Monitors

createRun

POST /agent_insight_monitors/{monitor_id}/runs

Start an Agent Insights run for a monitor.

Rubrikparametrar

Operation-Id string

Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally.

Sökvägsparametrar

monitor_id string krävs

The identifier of the monitor.

Frågeparametrar

api-version string krävs

The API version to use for this operation.

Begärandetext

Content-Type: application/json
lookback_hours number

Optional finite positive number of hours of trace history to analyze, up to 2,160. Defaults to 168.

Svar

The request has succeeded and a new resource has been created as a result.

Sidhuvuden

Operation-Location string krävs

URL to poll for the job status.

Location string krävs

URL of the created job resource.

Brödtext

Content-Type: application/json
id string krävs

Server-assigned unique identifier.

inputs AgentInsightRunInputs

Inputs recorded for an Agent Insights run.

lookback_hours number

Optional finite positive number of hours of trace history to analyze, up to 2,160. Defaults to 168.

result AgentInsightRunResult

Result statistics produced when an agent insight run succeeds.

traces_in_window integer krävs

The number of traces in the analyzed time window.

traces_analyzed integer krävs

The number of traces analyzed by the run.

insights_created integer krävs

The number of insights created by the run.

insights_updated integer krävs

The number of insights updated by the run.

insights_reopened integer krävs

The number of insights reopened by the run.

token_usage AgentInsightTokenUsage krävs

Token usage for an Agent Insights run.

input_tokens integer krävs

The number of input tokens used by the run.

output_tokens integer krävs

The number of output tokens used by the run.

cached_tokens integer

The number of input tokens served from cache.

total_tokens integer krävs

The total number of tokens used by the run.

status string | enum krävs

Extensible status values shared by Foundry jobs.

Något av följande:
string
enum
queuedin_progresssucceededfailedcancelledskipped
error OpenAI.Error
code string | null krävs
message string krävs
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Något av följande:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string krävs

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

monitor_id string krävs

The Agent Insights monitor this run belongs to.

agent_name string krävs

The agent whose traces are analyzed by this run.

trigger string | enum krävs

The trigger that started an agent insight run.

Något av följande:
string
enum
on_demandscheduled
created_at integer krävs
updated_at integer krävs
window_start integer krävs
window_end integer krävs
started_at integer
completed_at integer
model_deployment_name string krävs

The model deployment used to analyze traces for this run.

Client error

Brödtext

Content-Type: application/json
error OpenAI.Error krävs
code string | null krävs
message string krävs
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Något av följande:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string krävs

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Server error

Brödtext

Content-Type: application/json
error OpenAI.Error krävs
code string | null krävs
message string krävs
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Något av följande:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string krävs

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Förfrågan

POST /agent_insight_monitors/{monitor_id}/runs HTTP/1.1

Response

Status: 201
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
sv-se
Dina sekretessalternativ
  • Ansvarsfriskrivning för AI
  • Tidigare versioner
  • Blogg
  • Bidra
  • Sekretess
  • Konsumenthälsans integritet
  • Användningsvillkor
  • Varumärken
  • © Microsoft 2026