Přeskočit na hlavní obsah

Tento prohlížeč se už nepodporuje.

Upgradujte na Microsoft Edge, abyste mohli využívat nejnovější funkce, aktualizace zabezpečení a technickou podporu.

Stáhnout Microsoft Edge Další informace o Internet Exploreru a Microsoft Edgi
microsoft-foundry.rest.security.o-auth2-auth

Evaluation Rules

Create or update an evaluation rule

PUT /evaluationrules/{id}

Creates a new evaluation rule, or replaces the existing rule when the identifier matches.

Parametry dotazů

api-version string vyžadováno

The API version to use for this operation.

Parametry cesty

id string vyžadováno

Unique identifier for the evaluation rule.

Parametry záhlaví

Foundry-Features enum

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

Evaluations=V1Preview

Text požadavku

Evaluation rule resource

Content-Type: application/json
id string vyžadováno

Unique identifier for the evaluation rule.

displayName string

Display Name for the evaluation rule.

description string

Description for the evaluation rule.

action continuousEvaluation | humanEvaluationPreview vyžadováno

Evaluation action model.

Jeden z následujících:
continuousEvaluation ContinuousEvaluationRuleAction

Evaluation rule action for continuous evaluation.

type enum vyžadováno
continuousEvaluation
evalId string vyžadováno

Eval Id to add continuous evaluation runs to.

maxHourlyRuns integer

Maximum number of evaluation runs allowed per hour.

samplingRate number

Percentage (0-100] chance that a matching event triggers an evaluation. When omitted, the service-default is to evaluate every event, which is equivalent to setting a sampling rate of 100.

humanEvaluationPreview HumanEvaluationPreviewRuleAction

Evaluation rule action for human evaluation.

type enum vyžadováno
humanEvaluationPreview
templateId string vyžadováno

Identifier of a saved asset.

filter EvaluationRuleFilter

Evaluation filter model.

agentName string vyžadováno

Filter by agent name.

eventType string | enum vyžadováno

Type of the evaluation rule event.

Některá z následujících možností:
string
enum
responseCompletedmanual
enabled boolean vyžadováno

Indicates whether the evaluation rule is enabled. Default is true.

systemData object vyžadováno

System metadata for the evaluation rule.

[key: string] string

Odpovědi

The request has succeeded.

Text

Content-Type: application/json
id string vyžadováno

Unique identifier for the evaluation rule.

displayName string

Display Name for the evaluation rule.

description string

Description for the evaluation rule.

action continuousEvaluation | humanEvaluationPreview vyžadováno

Evaluation action model.

Jeden z následujících:
continuousEvaluation ContinuousEvaluationRuleAction

Evaluation rule action for continuous evaluation.

type enum vyžadováno
continuousEvaluation
evalId string vyžadováno

Eval Id to add continuous evaluation runs to.

maxHourlyRuns integer

Maximum number of evaluation runs allowed per hour.

samplingRate number

Percentage (0-100] chance that a matching event triggers an evaluation. When omitted, the service-default is to evaluate every event, which is equivalent to setting a sampling rate of 100.

humanEvaluationPreview HumanEvaluationPreviewRuleAction

Evaluation rule action for human evaluation.

type enum vyžadováno
humanEvaluationPreview
templateId string vyžadováno

Identifier of a saved asset.

filter EvaluationRuleFilter

Evaluation filter model.

agentName string vyžadováno

Filter by agent name.

eventType string | enum vyžadováno

Type of the evaluation rule event.

Některá z následujících možností:
string
enum
responseCompletedmanual
enabled boolean vyžadováno

Indicates whether the evaluation rule is enabled. Default is true.

systemData object vyžadováno

System metadata for the evaluation rule.

[key: string] string

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

Text

Content-Type: application/json
id string vyžadováno

Unique identifier for the evaluation rule.

displayName string

Display Name for the evaluation rule.

description string

Description for the evaluation rule.

action continuousEvaluation | humanEvaluationPreview vyžadováno

Evaluation action model.

Jeden z následujících:
continuousEvaluation ContinuousEvaluationRuleAction

Evaluation rule action for continuous evaluation.

type enum vyžadováno
continuousEvaluation
evalId string vyžadováno

Eval Id to add continuous evaluation runs to.

maxHourlyRuns integer

Maximum number of evaluation runs allowed per hour.

samplingRate number

Percentage (0-100] chance that a matching event triggers an evaluation. When omitted, the service-default is to evaluate every event, which is equivalent to setting a sampling rate of 100.

humanEvaluationPreview HumanEvaluationPreviewRuleAction

Evaluation rule action for human evaluation.

type enum vyžadováno
humanEvaluationPreview
templateId string vyžadováno

Identifier of a saved asset.

filter EvaluationRuleFilter

Evaluation filter model.

agentName string vyžadováno

Filter by agent name.

eventType string | enum vyžadováno

Type of the evaluation rule event.

Některá z následujících možností:
string
enum
responseCompletedmanual
enabled boolean vyžadováno

Indicates whether the evaluation rule is enabled. Default is true.

systemData object vyžadováno

System metadata for the evaluation rule.

[key: string] string

Client error

Hlavičky

x-ms-error-code string

String error code indicating what went wrong.

Text

Content-Type: application/json
error Azure.Core.Foundations.Error vyžadováno

The error object.

code string vyžadováno

One of a server-defined set of error codes.

message string vyžadováno

A human-readable representation of the error.

target string

The target of the error.

details Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.

code string

One of a server-defined set of error codes.

innererror Azure.Core.Foundations.InnerError

Server error

Hlavičky

x-ms-error-code string

String error code indicating what went wrong.

Text

Content-Type: application/json
error Azure.Core.Foundations.Error vyžadováno

The error object.

code string vyžadováno

One of a server-defined set of error codes.

message string vyžadováno

A human-readable representation of the error.

target string

The target of the error.

details Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.

code string

One of a server-defined set of error codes.

innererror Azure.Core.Foundations.InnerError

Žádost

PUT /evaluationrules/{id} HTTP/1.1

Response

Status: 200
Content-Type: application/json
Status: 201
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
cs-cz
Vaše volby ochrany osobních údajů
  • Právní omezení AI
  • Předchozí verze
  • Blog
  • Přispět
  • Ochrana osobních údajů
  • Ochrana osobních zdravotních údajů spotřebitelů
  • Podmínky použití
  • Ochranné známky
  • © Microsoft 2026