cardano-node-8.7.2: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Node.Tracing.StateRep

Synopsis

Documentation

data InitChainSelection Source #

Instances

Instances details
FromJSON InitChainSelection Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

ToJSON InitChainSelection Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Generic InitChainSelection Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Associated Types

type Rep InitChainSelection :: Type -> Type Source #

NFData InitChainSelection Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

rnf :: InitChainSelection -> () Source #

type Rep InitChainSelection Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

type Rep InitChainSelection = D1 ('MetaData "InitChainSelection" "Cardano.Node.Tracing.StateRep" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) (C1 ('MetaCons "InitChainStartedSelection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InitChainSelected" 'PrefixI 'False) (U1 :: Type -> Type))

data NodeState Source #

The representation of the current state of node. All node states prior to tracing system going online are effectively invisible.

Instances

Instances details
FromJSON NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

parseJSON :: Value -> Parser NodeState

parseJSONList :: Value -> Parser [NodeState]

omittedField :: Maybe NodeState

ToJSON NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

toJSON :: NodeState -> Value #

toEncoding :: NodeState -> Encoding

toJSONList :: [NodeState] -> Value

toEncodingList :: [NodeState] -> Encoding

omitField :: NodeState -> Bool

Generic NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Associated Types

type Rep NodeState :: Type -> Type Source #

NFData NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

rnf :: NodeState -> () Source #

LogFormatting NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

forMachine :: DetailLevel -> NodeState -> Object

forHuman :: NodeState -> Text

asMetrics :: NodeState -> [Metric]

MetaTrace NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

namespaceFor :: NodeState -> Namespace NodeState

severityFor :: Namespace NodeState -> Maybe NodeState -> Maybe SeverityS

privacyFor :: Namespace NodeState -> Maybe NodeState -> Maybe Privacy

detailsFor :: Namespace NodeState -> Maybe NodeState -> Maybe DetailLevel

documentFor :: Namespace NodeState -> Maybe Text

metricsDocFor :: Namespace NodeState -> [(Text, Text)]

allNamespaces :: [Namespace NodeState]

type Rep NodeState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

data OpeningDbs Source #

Instances

Instances details
FromJSON OpeningDbs Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

parseJSON :: Value -> Parser OpeningDbs

parseJSONList :: Value -> Parser [OpeningDbs]

omittedField :: Maybe OpeningDbs

ToJSON OpeningDbs Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

toJSON :: OpeningDbs -> Value #

toEncoding :: OpeningDbs -> Encoding

toJSONList :: [OpeningDbs] -> Value

toEncodingList :: [OpeningDbs] -> Encoding

omitField :: OpeningDbs -> Bool

Generic OpeningDbs Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Associated Types

type Rep OpeningDbs :: Type -> Type Source #

NFData OpeningDbs Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

rnf :: OpeningDbs -> () Source #

type Rep OpeningDbs Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

type Rep OpeningDbs = D1 ('MetaData "OpeningDbs" "Cardano.Node.Tracing.StateRep" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) ((C1 ('MetaCons "StartedOpeningImmutableDB" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OpenedImmutableDB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChunkNo)) :+: C1 ('MetaCons "StartedOpeningVolatileDB" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "OpenedVolatileDB" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StartedOpeningLgrDB" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpenedLgrDB" 'PrefixI 'False) (U1 :: Type -> Type))))

data Replays Source #

Constructors

ReplayFromGenesis (WithOrigin SlotNo) 
ReplayFromSnapshot SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo) 
ReplayedBlock SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo) 

Instances

Instances details
FromJSON Replays Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

parseJSON :: Value -> Parser Replays

parseJSONList :: Value -> Parser [Replays]

omittedField :: Maybe Replays

ToJSON Replays Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

toJSON :: Replays -> Value #

toEncoding :: Replays -> Encoding

toJSONList :: [Replays] -> Value

toEncodingList :: [Replays] -> Encoding

omitField :: Replays -> Bool

Generic Replays Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Associated Types

type Rep Replays :: Type -> Type Source #

NFData Replays Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

rnf :: Replays -> () Source #

type Rep Replays Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

type Rep Replays = D1 ('MetaData "Replays" "Cardano.Node.Tracing.StateRep" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) (C1 ('MetaCons "ReplayFromGenesis" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo))) :+: (C1 ('MetaCons "ReplayFromSnapshot" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo)))) :+: C1 ('MetaCons "ReplayedBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithOrigin SlotNo))))))

data StartupState Source #

Instances

Instances details
FromJSON StartupState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

parseJSON :: Value -> Parser StartupState

parseJSONList :: Value -> Parser [StartupState]

omittedField :: Maybe StartupState

ToJSON StartupState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

toJSON :: StartupState -> Value #

toEncoding :: StartupState -> Encoding

toJSONList :: [StartupState] -> Value

toEncodingList :: [StartupState] -> Encoding

omitField :: StartupState -> Bool

Generic StartupState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Associated Types

type Rep StartupState :: Type -> Type Source #

NFData StartupState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

Methods

rnf :: StartupState -> () Source #

type Rep StartupState Source # 
Instance details

Defined in Cardano.Node.Tracing.StateRep

type Rep StartupState = D1 ('MetaData "StartupState" "Cardano.Node.Tracing.StateRep" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) ((C1 ('MetaCons "StartupSocketConfigError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "StartupDBValidation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NetworkConfigUpdate" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NetworkConfigUpdateError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "P2PWarning" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "WarningDevelopmentNodeToNodeVersions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NodeToNodeVersion])) :+: C1 ('MetaCons "WarningDevelopmentNodeToClientVersions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NodeToClientVersion])))))

traceNodeStateChainDB :: SomeConsensusProtocol -> Trace IO NodeState -> TraceEvent blk -> IO () Source #

Orphan instances

FromJSON ChunkNo Source # 
Instance details

Methods

parseJSON :: Value -> Parser ChunkNo

parseJSONList :: Value -> Parser [ChunkNo]

omittedField :: Maybe ChunkNo

ToJSON ChunkNo Source # 
Instance details

Methods

toJSON :: ChunkNo -> Value #

toEncoding :: ChunkNo -> Encoding

toJSONList :: [ChunkNo] -> Value

toEncodingList :: [ChunkNo] -> Encoding

omitField :: ChunkNo -> Bool

Generic NodeToClientVersion Source # 
Instance details

Associated Types

type Rep NodeToClientVersion :: Type -> Type Source #

Methods

from :: NodeToClientVersion -> Rep NodeToClientVersion x Source #

to :: Rep NodeToClientVersion x -> NodeToClientVersion Source #

Generic NodeToNodeVersion Source # 
Instance details

Associated Types

type Rep NodeToNodeVersion :: Type -> Type Source #

Methods

from :: NodeToNodeVersion -> Rep NodeToNodeVersion x Source #

to :: Rep NodeToNodeVersion x -> NodeToNodeVersion Source #

NFData ChunkNo Source # 
Instance details

Methods

rnf :: ChunkNo -> () Source #

NFData NodeToClientVersion Source # 
Instance details

Methods

rnf :: NodeToClientVersion -> () Source #

NFData NodeToNodeVersion Source # 
Instance details

Methods

rnf :: NodeToNodeVersion -> () Source #