Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.BM.Data.Aggregated
Documentation
data Aggregated Source #
Constructors
AggregatedStats !Stats | |
AggregatedEWMA !EWMA |
Instances
Constructors
Stats | |
Fields
|
Instances
Eq Stats Source # | |
Show Stats Source # | |
Generic Stats Source # | |
ToJSON Stats Source # | |
FromJSON Stats Source # | |
type Rep Stats Source # | |
Defined in Cardano.BM.Data.Aggregated type Rep Stats = D1 ('MetaData "Stats" "Cardano.BM.Data.Aggregated" "iohk-monitoring-0.1.10.1-HMLUOmHf3Jc3X1FUafI45e" 'False) (C1 ('MetaCons "Stats" 'PrefixI 'True) ((S1 ('MetaSel ('Just "flast") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measurable) :*: S1 ('MetaSel ('Just "fold") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measurable)) :*: (S1 ('MetaSel ('Just "fbasic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BaseStats) :*: (S1 ('MetaSel ('Just "fdelta") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BaseStats) :*: S1 ('MetaSel ('Just "ftimed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BaseStats))))) |
Constructors
BaseStats | |
Fields
|
Instances
Eq BaseStats Source # | |
Show BaseStats Source # | |
Generic BaseStats Source # | |
ToJSON BaseStats Source # | |
FromJSON BaseStats Source # | |
type Rep BaseStats Source # | |
Defined in Cardano.BM.Data.Aggregated type Rep BaseStats = D1 ('MetaData "BaseStats" "Cardano.BM.Data.Aggregated" "iohk-monitoring-0.1.10.1-HMLUOmHf3Jc3X1FUafI45e" 'False) (C1 ('MetaCons "BaseStats" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fmin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measurable) :*: S1 ('MetaSel ('Just "fmax") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measurable)) :*: (S1 ('MetaSel ('Just "fcount") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "fsum_A") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "fsum_B") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double))))) |
Instances
Eq EWMA Source # | |
Show EWMA Source # | |
Generic EWMA Source # | |
ToJSON EWMA Source # | |
FromJSON EWMA Source # | |
type Rep EWMA Source # | |
Defined in Cardano.BM.Data.Aggregated type Rep EWMA = D1 ('MetaData "EWMA" "Cardano.BM.Data.Aggregated" "iohk-monitoring-0.1.10.1-HMLUOmHf3Jc3X1FUafI45e" 'False) (C1 ('MetaCons "EmptyEWMA" 'PrefixI 'True) (S1 ('MetaSel ('Just "alpha") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "EWMA" 'PrefixI 'True) (S1 ('MetaSel ('Just "alpha") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "avg") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measurable))) |
data Measurable Source #
Constructors
Microseconds !Word64 | |
Nanoseconds !Word64 | |
Seconds !Word64 | |
Bytes !Word64 | |
PureD !Double | |
PureI !Integer | |
Severity Severity |
Instances
showSI :: Measurable -> String Source #
showUnits :: Measurable -> String Source #
getInteger :: Measurable -> Integer Source #
getDouble :: Measurable -> Double Source #
subtractMeasurable :: Measurable -> Measurable -> Measurable Source #
meanOfStats :: BaseStats -> Double Source #
stdevOfStats :: BaseStats -> Double Source #
stats2Text :: Stats -> Text Source #
updateAggregation :: Measurable -> Aggregated -> Word64 -> Either Text Aggregated Source #