Class DlpFailurePolicyContext
- Namespace
- AsiBackbone.Core.Classification
- Assembly
- AsiBackbone.Core.dll
Represents provider-neutral context for resolving DLP or classification failure behavior.
public sealed class DlpFailurePolicyContext
- Inheritance
-
DlpFailurePolicyContext
- Inherited Members
Properties
CorrelationId
Gets the correlation identifier associated with the governed flow, when supplied.
public string? CorrelationId { get; }
Property Value
Environment
Gets the host-defined environment, when supplied.
public string? Environment { get; }
Property Value
FailureKind
Gets the provider-neutral DLP or classification failure kind.
public DlpClassificationFailureKind FailureKind { get; }
Property Value
HasMetadata
Gets a value indicating whether metadata is present.
public bool HasMetadata { get; }
Property Value
HasTimeout
Gets a value indicating whether timeout context is present.
public bool HasTimeout { get; }
Property Value
IntentCategory
Gets the host-defined intent category, when supplied.
public string? IntentCategory { get; }
Property Value
Metadata
Gets provider-neutral host metadata associated with the failure.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
PolicyHash
Gets the policy hash associated with the governed flow, when supplied.
public string? PolicyHash { get; }
Property Value
PolicyVersion
Gets the policy version associated with the governed flow, when supplied.
public string? PolicyVersion { get; }
Property Value
RiskLevel
Gets the host-assigned risk level for the intent.
public DlpIntentRiskLevel RiskLevel { get; }
Property Value
Timeout
Gets the timeout value associated with the failure, when applicable.
public TimeSpan? Timeout { get; }
Property Value
TraceId
Gets the trace identifier associated with the governed flow, when supplied.
public string? TraceId { get; }
Property Value
Methods
Create(DlpClassificationFailureKind, DlpIntentRiskLevel, string?, string?, string?, string?, string?, string?, TimeSpan?, IReadOnlyDictionary<string, string>?)
Creates a provider-neutral DLP or classification failure policy context.
public static DlpFailurePolicyContext Create(DlpClassificationFailureKind failureKind, DlpIntentRiskLevel riskLevel, string? intentCategory = null, string? environment = null, string? correlationId = null, string? traceId = null, string? policyVersion = null, string? policyHash = null, TimeSpan? timeout = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
failureKindDlpClassificationFailureKindriskLevelDlpIntentRiskLevelintentCategorystringenvironmentstringcorrelationIdstringtraceIdstringpolicyVersionstringpolicyHashstringtimeoutTimeSpan?metadataIReadOnlyDictionary<string, string>
Returns
TimeoutFailure(DlpIntentRiskLevel, TimeSpan?, string?, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?)
Creates timeout-specific failure policy context.
public static DlpFailurePolicyContext TimeoutFailure(DlpIntentRiskLevel riskLevel, TimeSpan? timeout = null, string? intentCategory = null, string? environment = null, string? correlationId = null, string? traceId = null, string? policyVersion = null, string? policyHash = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
riskLevelDlpIntentRiskLeveltimeoutTimeSpan?intentCategorystringenvironmentstringcorrelationIdstringtraceIdstringpolicyVersionstringpolicyHashstringmetadataIReadOnlyDictionary<string, string>