Table of Contents

Class KeyRotationFailureAlert

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents an alert for a key rotation failure.

public sealed record KeyRotationFailureAlert : IEquatable<KeyRotationFailureAlert>
Inheritance
KeyRotationFailureAlert
Implements
Inherited Members

Constructors

KeyRotationFailureAlert(string, string, string, DateTimeOffset, int)

Represents an alert for a key rotation failure.

public KeyRotationFailureAlert(string KeyId, string Provider, string ErrorMessage, DateTimeOffset FailedAt, int ConsecutiveFailures)

Parameters

KeyId string

The identifier of the key that failed to rotate.

Provider string

The KMS provider name.

ErrorMessage string

The error message describing the failure.

FailedAt DateTimeOffset

When the failure occurred.

ConsecutiveFailures int

Number of consecutive failures for this key.

Properties

ConsecutiveFailures

Number of consecutive failures for this key.

public int ConsecutiveFailures { get; init; }

Property Value

int

ErrorMessage

The error message describing the failure.

public string ErrorMessage { get; init; }

Property Value

string

FailedAt

When the failure occurred.

public DateTimeOffset FailedAt { get; init; }

Property Value

DateTimeOffset

KeyId

The identifier of the key that failed to rotate.

public string KeyId { get; init; }

Property Value

string

Provider

The KMS provider name.

public string Provider { get; init; }

Property Value

string

Severity

Gets the severity based on consecutive failures.

public AlertSeverity Severity { get; }

Property Value

AlertSeverity