Table of Contents

Class KeyRotationBatchResult

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

Represents the result of a batch key rotation check operation.

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

Properties

AllSucceeded

Gets a value indicating whether all due rotations succeeded.

public bool AllSucceeded { get; }

Property Value

bool

CompletedAt

Gets the timestamp when the batch operation completed.

public DateTimeOffset CompletedAt { get; init; }

Property Value

DateTimeOffset

Duration

Gets the duration of the batch operation.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Errors

Gets the errors encountered during the batch operation.

public IReadOnlyList<KeyRotationError> Errors { get; init; }

Property Value

IReadOnlyList<KeyRotationError>

KeysChecked

Gets the total number of keys checked.

public int KeysChecked { get; init; }

Property Value

int

KeysDueForRotation

Gets the number of keys that were due for rotation.

public int KeysDueForRotation { get; init; }

Property Value

int

KeysFailed

Gets the number of keys that failed to rotate.

public int KeysFailed { get; init; }

Property Value

int

KeysRotated

Gets the number of keys successfully rotated.

public int KeysRotated { get; init; }

Property Value

int

Results

Gets the individual rotation results for keys that were rotated or attempted.

public IReadOnlyList<KeyRotationResult> Results { get; init; }

Property Value

IReadOnlyList<KeyRotationResult>

StartedAt

Gets the timestamp when the batch operation started.

public DateTimeOffset StartedAt { get; init; }

Property Value

DateTimeOffset

Methods

Empty()

Creates an empty result for when no keys were found.

public static KeyRotationBatchResult Empty()

Returns

KeyRotationBatchResult