hydra-node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Node.Stats

Description

Compact measurements of current state. Sampling these instead of counting transitions keeps gauges correct after replay, side-loading and rollbacks.

Documentation

data NodeStats Source #

Instances

Instances details
ToJSON NodeStats Source # 
Instance details

Defined in Hydra.Node.Stats

Methods

toJSON :: NodeStats -> Value

toEncoding :: NodeStats -> Encoding

toJSONList :: [NodeStats] -> Value

toEncodingList :: [NodeStats] -> Encoding

omitField :: NodeStats -> Bool

Generic NodeStats Source # 
Instance details

Defined in Hydra.Node.Stats

Associated Types

type Rep NodeStats :: Type -> Type Source #

Show NodeStats Source # 
Instance details

Defined in Hydra.Node.Stats

Eq NodeStats Source # 
Instance details

Defined in Hydra.Node.Stats

type Rep NodeStats Source # 
Instance details

Defined in Hydra.Node.Stats

type Rep NodeStats = D1 ('MetaData "NodeStats" "Hydra.Node.Stats" "hydra-node-2.4.2-8ODiAiIGhh35oU1ZRIYYwN" 'False) (C1 ('MetaCons "NodeStats" 'PrefixI 'True) (((S1 ('MetaSel ('Just "synchronized") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "phase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "queuedInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))) :*: ((S1 ('MetaSel ('Just "parkedInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "confirmedNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "snapshotPending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "missingSignatures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))) :*: ((S1 ('MetaSel ('Just "pendingTransactions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "inactiveDeposits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "activeDeposits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "expiredDeposits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "decommitState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "fanoutRemainingOutputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "fanoutMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

nodeStats :: IsTx tx => Natural -> Int -> NodeState tx -> NodeStats Source #