GuardrailFinding Constructor
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.
Initializes a new instance of the GuardrailFinding class.
public GuardrailFinding(string riskCategory, string riskSeverity, string? policyDecisionType = default, string? policyId = default, string? policyName = default, string? policyVersion = default, double? riskScore = default, string[]? riskMetadata = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailFinding : string * string * string * string * string * string * Nullable<double> * string[] -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailFinding
Public Sub New (riskCategory As String, riskSeverity As String, Optional policyDecisionType As String = Nothing, Optional policyId As String = Nothing, Optional policyName As String = Nothing, Optional policyVersion As String = Nothing, Optional riskScore As Nullable(Of Double) = Nothing, Optional riskMetadata As String() = Nothing)
Parameters
- riskCategory
- String
The category of security risk detected (required).
- riskSeverity
- String
The severity level of the detected risk (required).
- policyDecisionType
- String
The decision type for this specific policy finding.
- policyId
- String
Identifier of the policy that triggered the finding.
- policyName
- String
Human-readable name of the triggered policy.
- policyVersion
- String
Version of the policy.
- riskMetadata
- String[]
Non-content metadata about the detected risk (MUST NOT contain PII).