Freigeben über


AzureAIProjectsModelFactory.EvaluationRule Method

Definition

Evaluation rule model.

public static Azure.AI.Projects.EvaluationRule EvaluationRule(string id = default, string displayName = default, string description = default, Azure.AI.Projects.EvaluationRuleAction action = default, Azure.AI.Projects.EvaluationRuleFilter filter = default, Azure.AI.Projects.EvaluationRuleEventType eventType = default, bool enabled = false, System.Collections.Generic.IReadOnlyDictionary<string,string> systemData = default);
static member EvaluationRule : string * string * string * Azure.AI.Projects.EvaluationRuleAction * Azure.AI.Projects.EvaluationRuleFilter * Azure.AI.Projects.EvaluationRuleEventType * bool * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.Projects.EvaluationRule
Public Shared Function EvaluationRule (Optional id As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional action As EvaluationRuleAction = Nothing, Optional filter As EvaluationRuleFilter = Nothing, Optional eventType As EvaluationRuleEventType = Nothing, Optional enabled As Boolean = false, Optional systemData As IReadOnlyDictionary(Of String, String) = Nothing) As EvaluationRule

Parameters

id
String

Unique identifier for the evaluation rule.

displayName
String

Display Name for the evaluation rule.

description
String

Description for the evaluation rule.

action
EvaluationRuleAction

Definition of the evaluation rule action.

filter
EvaluationRuleFilter

Filter condition of the evaluation rule.

eventType
EvaluationRuleEventType

Event type that the evaluation rule applies to.

enabled
Boolean

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

systemData
IReadOnlyDictionary<String,String>

System metadata for the evaluation rule.

Returns

A new EvaluationRule instance for mocking.

Applies to