Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data KESMetricsData
- newtype MaxKESEvolutions = MaxKESEvolutions Word64
- newtype OperationalCertStartKESPeriod = OperationalCertStartKESPeriod Period
- class HasKESMetricsData blk where
- getKESMetricsData ∷ Proxy blk → ForgeStateInfo blk → KESMetricsData
- class HasKESInfo blk where
- getKESInfo ∷ Proxy blk → ForgeStateUpdateError blk → Maybe KESInfo
- data ForgingStats = ForgingStats {
- fsTxsProcessedNum ∷ !(IORef Int)
- fsState ∷ !(TVar (Map ThreadId (TVar ForgeThreadStats)))
- fsBlocksUncoupled ∷ !(TVar Int64)
- data ForgeThreadStats = ForgeThreadStats {}
- mapForgingCurrentThreadStats ∷ ForgingStats → (ForgeThreadStats → (ForgeThreadStats, a)) → IO a
- mapForgingCurrentThreadStats_ ∷ ForgingStats → (ForgeThreadStats → ForgeThreadStats) → IO ()
- mapForgingStatsTxsProcessed ∷ ForgingStats → (Int → Int) → IO Int
- mkForgingStats ∷ IO ForgingStats
- threadStatsProjection ∷ ForgingStats → (ForgeThreadStats → a) → IO [a]
Documentation
data KESMetricsData Source #
KES-related data to be traced as metrics.
NoKESMetricsData | The current protocol does not support KES. |
TOptimumKESMetricsData | |
|
newtype MaxKESEvolutions Source #
The maximum number of evolutions that a KES key can undergo before it is considered expired.
newtype OperationalCertStartKESPeriod Source #
The start KES period of the configured operational certificate.
class HasKESMetricsData blk where Source #
Nothing
getKESMetricsData ∷ Proxy blk → ForgeStateInfo blk → KESMetricsData Source #
Instances
HasKESMetricsData ColeBlock Source # | |
Defined in Bcc.Tracing.Metrics getKESMetricsData ∷ Proxy ColeBlock → ForgeStateInfo ColeBlock → KESMetricsData Source # | |
All HasKESMetricsData xs ⇒ HasKESMetricsData (HardForkBlock xs) Source # | |
Defined in Bcc.Tracing.Metrics getKESMetricsData ∷ Proxy (HardForkBlock xs) → ForgeStateInfo (HardForkBlock xs) → KESMetricsData Source # | |
HasKESMetricsData (SophieBlock c) Source # | |
Defined in Bcc.Tracing.Metrics getKESMetricsData ∷ Proxy (SophieBlock c) → ForgeStateInfo (SophieBlock c) → KESMetricsData Source # |
class HasKESInfo blk where Source #
Nothing
getKESInfo ∷ Proxy blk → ForgeStateUpdateError blk → Maybe KESInfo Source #
Instances
HasKESInfo ColeBlock Source # | |
Defined in Bcc.Tracing.Metrics getKESInfo ∷ Proxy ColeBlock → ForgeStateUpdateError ColeBlock → Maybe KESInfo Source # | |
All HasKESInfo xs ⇒ HasKESInfo (HardForkBlock xs) Source # | |
Defined in Bcc.Tracing.Metrics getKESInfo ∷ Proxy (HardForkBlock xs) → ForgeStateUpdateError (HardForkBlock xs) → Maybe KESInfo Source # | |
HasKESInfo (SophieBlock era) Source # | |
Defined in Bcc.Tracing.Metrics getKESInfo ∷ Proxy (SophieBlock era) → ForgeStateUpdateError (SophieBlock era) → Maybe KESInfo Source # |
data ForgingStats Source #
This structure stores counters of blockchain-related events, per individual forge thread. These counters are driven by traces.
ForgingStats | |
|
data ForgeThreadStats Source #
Per-forging-thread statistics.
ForgeThreadStats | |
|
mapForgingCurrentThreadStats ∷ ForgingStats → (ForgeThreadStats → (ForgeThreadStats, a)) → IO a Source #
mapForgingCurrentThreadStats_ ∷ ForgingStats → (ForgeThreadStats → ForgeThreadStats) → IO () Source #
mapForgingStatsTxsProcessed ∷ ForgingStats → (Int → Int) → IO Int Source #
threadStatsProjection ∷ ForgingStats → (ForgeThreadStats → a) → IO [a] Source #