| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.RTView.GUI.Elements
Contents
Synopsis
- data HTMLClass
- = ActiveTab
- | BarValueUnit
- | CardanoLogo
- | CommitLink
- | DensityPercent
- | ErrorsTabContainer
- | GridNodeNameLabel
- | GridRowCell
- | HSpacer
- | InfoMark
- | InfoMarkImg
- | MetricsArea
- | NodeContainer
- | NodeBar
- | NodeInfoValues
- | NodeInfoVSpacer
- | NodeMetricsValues
- | NodeMetricsVSpacer
- | NodeMenuIcon
- | NodeName
- | NodeNameArea
- | OutdatedValue
- | PercentsSlashHSpacer
- | PercentsSlashHRSpacer
- | ProgressBar
- | ProgressBarOutdated
- | ProgressBarBox
- | ProgressBarBoxOutdated
- | ReleaseName
- | ResourcesIcon
- | SelectMetricCheck
- | SelectMetricCheckArea
- | SelectNodeCheck
- | SelectNodeCheckArea
- | ServiceName
- | ShowHideIcon
- | TabContainer
- | TopBar
- | ValueUnit
- | ValueUnitPercent
- | CPUUsageChart
- | MemoryUsageChart
- | DiskUsageChart
- | NetworkUsageChart
- | GridCPUUsageChart
- | GridMemoryUsageChart
- | GridDiskUsageChart
- | GridNetworkUsageChart
- | WarningMessage
- | ErrorMessage
- | CriticalMessage
- | AlertMessage
- | EmergencyMessage
- data HTMLW3Class
- = W3Bar
- | W3BarBlock
- | W3BarItem
- | W3Border
- | W3Bordered
- | W3BorderBottom
- | W3BorderTop
- | W3Button
- | W3Card4
- | W3Check
- | W3Col
- | W3Container
- | W3Disabled
- | W3DropdownContent
- | W3DropdownHover
- | W3Half
- | W3HideMedium
- | W3HideSmall
- | W3Large
- | W3Margin
- | W3Mobile
- | W3Responsive
- | W3Rest
- | W3Right
- | W3RightAlign
- | W3Row
- | W3Sidebar
- | W3Table
- | W3Theme
- | W3Third
- | W3TwoThird
- | W3Quarter
- | W3L6
- | W3M12
- | W3S12
- data HTMLId
- = SelectMetricButton
- | HideAllMetricsButton
- | ShowAllMetricsButton
- | HideAllNodesButton
- | ShowAllNodesButton
- | ViewModeButton
- | CPUUsageChartId
- | DiskUsageChartId
- | MemoryUsageChartId
- | NetworkUsageChartId
- | GridCPUUsageChartId
- | GridDiskUsageChartId
- | GridMemoryUsageChartId
- | GridNetworkUsageChartId
- | GridNodeTH
- type NodesStateElements = [(Text, NodeStateElements, [PeerInfoItem])]
- type NodeStateElements = Map ElementName Element
- data ElementName
- = ElNodeProtocol
- | ElNodeVersion
- | ElNodePlatform
- | ElNodeCommitHref
- | ElActiveNode
- | ElUptime
- | ElEpoch
- | ElSlot
- | ElBlocksNumber
- | ElBlocksForgedNumber
- | ElNodeCannotForge
- | ElChainDensity
- | ElNodeIsLeaderNumber
- | ElSlotsMissedNumber
- | ElTxsProcessed
- | ElPeersNumber
- | ElTraceAcceptorHost
- | ElTraceAcceptorPort
- | ElTraceAcceptorEndpoint
- | ElOpCertStartKESPeriod
- | ElCurrentKESPeriod
- | ElRemainingKESPeriods
- | ElNodeErrors
- | ElNodeErrorsTab
- | ElMempoolTxsNumber
- | ElMempoolTxsPercent
- | ElMempoolBytes
- | ElMempoolBytesPercent
- | ElMempoolMaxTxs
- | ElMempoolMaxBytes
- | ElMemory
- | ElMemoryMax
- | ElMemoryMaxTotal
- | ElMemoryPercent
- | ElCPUPercent
- | ElCPULast
- | ElCPUNs
- | ElDiskUsageR
- | ElDiskUsageRMax
- | ElDiskUsageRMaxTotal
- | ElDiskUsageRPercent
- | ElDiskUsageW
- | ElDiskUsageWMax
- | ElDiskUsageWMaxTotal
- | ElDiskUsageWPercent
- | ElNetworkUsageIn
- | ElNetworkUsageInMaxTotal
- | ElNetworkUsageOut
- | ElNetworkUsageOutMaxTotal
- | ElRTSMemoryAllocated
- | ElRTSMemoryUsed
- | ElRTSMemoryUsedPercent
- | ElRTSGcCpu
- | ElRTSGcElapsed
- | ElRTSGcNum
- | ElRTSGcMajorNum
- | ElMempoolBytesProgress
- | ElMempoolBytesProgressBox
- | ElMempoolTxsProgress
- | ElMempoolTxsProgressBox
- | ElRTSMemoryProgress
- | ElRTSMemoryProgressBox
- | ElMemoryUsageChart
- | ElCPUUsageChart
- | ElDiskUsageChart
- | ElNetworkUsageChart
- data ElementValue
- data PeerInfoItem = PeerInfoItem {
- piItem :: !Element
- piItemElems :: !PeerInfoElements
- data PeerInfoElements = PeerInfoElements {
- pieEndpoint :: !Element
- pieBytesInF :: !Element
- pieReqsInF :: !Element
- pieBlocksInF :: !Element
- pieSlotNumber :: !Element
- pieStatus :: !Element
- (<+>) :: [HTMLW3Class] -> [HTMLClass] -> String
- (##) :: UI Element -> String -> UI Element
- showIt :: UI Element -> UI Element
- hideIt :: UI Element -> UI Element
- showRow :: UI Element -> UI Element
- showCell :: UI Element -> UI Element
Documentation
HTML elements identifiers, we use them in HTML, CSS and JS FFI.
Constructors
data HTMLW3Class Source #
Constructors
Instances
| Show HTMLW3Class Source # | We have to provide explicit Show-instance, because all these classes are taken from W3C-library. |
Defined in Cardano.RTView.GUI.Elements Methods showsPrec :: Int -> HTMLW3Class -> ShowS # show :: HTMLW3Class -> String # showList :: [HTMLW3Class] -> ShowS # | |
type NodesStateElements = [(Text, NodeStateElements, [PeerInfoItem])] Source #
GUI elements for all nodes, tuples from nodeName, its elements and prepared peers items.
type NodeStateElements = Map ElementName Element Source #
GUI elements containing current node state (info, metrics). These elements are continuously updating using |LogObject|s received by |TraceAcceptor|s.
data ElementName Source #
Constructors
Instances
| Eq ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements | |
| Ord ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements Methods compare :: ElementName -> ElementName -> Ordering # (<) :: ElementName -> ElementName -> Bool # (<=) :: ElementName -> ElementName -> Bool # (>) :: ElementName -> ElementName -> Bool # (>=) :: ElementName -> ElementName -> Bool # max :: ElementName -> ElementName -> ElementName # min :: ElementName -> ElementName -> ElementName # | |
| Show ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements Methods showsPrec :: Int -> ElementName -> ShowS # show :: ElementName -> String # showList :: [ElementName] -> ShowS # | |
| Generic ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements Associated Types type Rep ElementName :: Type -> Type # | |
| NFData ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements Methods rnf :: ElementName -> () # | |
| type Rep ElementName Source # | |
Defined in Cardano.RTView.GUI.Elements type Rep ElementName = D1 ('MetaData "ElementName" "Cardano.RTView.GUI.Elements" "cardano-rt-view-0.1.0-2dTcUgWcrqcJLsPJljvoZp" 'False) ((((((C1 ('MetaCons "ElNodeProtocol" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNodeVersion" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElNodePlatform" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNodeCommitHref" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElActiveNode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElUptime" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElEpoch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElSlot" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ElBlocksNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElBlocksForgedNumber" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElNodeCannotForge" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElChainDensity" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElNodeIsLeaderNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElSlotsMissedNumber" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElTxsProcessed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElPeersNumber" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: ((((C1 ('MetaCons "ElTraceAcceptorHost" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElTraceAcceptorPort" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElTraceAcceptorEndpoint" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElOpCertStartKESPeriod" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElCurrentKESPeriod" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElRemainingKESPeriods" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElNodeErrors" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNodeErrorsTab" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ElMempoolTxsNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMempoolTxsPercent" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElMempoolBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMempoolBytesPercent" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElMempoolMaxTxs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMempoolMaxBytes" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ElMemoryMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMemoryMaxTotal" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "ElMemoryPercent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElCPUPercent" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElCPULast" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElCPUNs" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElDiskUsageR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElDiskUsageRMax" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElDiskUsageRMaxTotal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElDiskUsageRPercent" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ElDiskUsageW" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElDiskUsageWMax" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElDiskUsageWMaxTotal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElDiskUsageWPercent" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElNetworkUsageIn" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNetworkUsageInMaxTotal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElNetworkUsageOut" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNetworkUsageOutMaxTotal" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: ((((C1 ('MetaCons "ElRTSMemoryAllocated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElRTSMemoryUsed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElRTSMemoryUsedPercent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElRTSGcCpu" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElRTSGcElapsed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElRTSGcNum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElRTSGcMajorNum" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMempoolBytesProgress" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ElMempoolBytesProgressBox" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMempoolTxsProgress" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElMempoolTxsProgressBox" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElRTSMemoryProgress" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ElRTSMemoryProgressBox" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElMemoryUsageChart" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ElCPUUsageChart" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ElDiskUsageChart" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ElNetworkUsageChart" 'PrefixI 'False) (U1 :: Type -> Type)))))))) | |
data ElementValue Source #
Constructors
| ElementInt !Int | |
| ElementInteger !Integer | |
| ElementWord64 !Word64 | |
| ElementDouble !Double | |
| ElementString !String |
Instances
data PeerInfoItem Source #
An item for each connected peer, contains a parent element and list of child elements.
Constructors
| PeerInfoItem | |
Fields
| |
Instances
| Generic PeerInfoItem Source # | |
Defined in Cardano.RTView.GUI.Elements Associated Types type Rep PeerInfoItem :: Type -> Type # | |
| NFData PeerInfoItem Source # | |
Defined in Cardano.RTView.GUI.Elements Methods rnf :: PeerInfoItem -> () # | |
| type Rep PeerInfoItem Source # | |
Defined in Cardano.RTView.GUI.Elements type Rep PeerInfoItem = D1 ('MetaData "PeerInfoItem" "Cardano.RTView.GUI.Elements" "cardano-rt-view-0.1.0-2dTcUgWcrqcJLsPJljvoZp" 'False) (C1 ('MetaCons "PeerInfoItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "piItem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Element) :*: S1 ('MetaSel ('Just "piItemElems") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PeerInfoElements))) | |
data PeerInfoElements Source #
Constructors
| PeerInfoElements | |
Fields
| |
Instances
(<+>) :: [HTMLW3Class] -> [HTMLClass] -> String Source #
Operator for class names concatenation. Please note that w3-classes should be the first, because our own classes override some of them.