Snapshot

public struct Snapshot: Codable

A snapshot of the current statistics.

  • Initialize a snapshot of the current statistics.

    Declaration

    Swift

    public init(name: String, group: String? = nil, stats: Stats, state: State)

    Parameters

    name

    CircuitBreaker instance name.

    group

    CircuitBreaker group name.

    stats

    The CircuitBreaker statistics.

    state

    The state of the circuit.