ekg-core 0.1.0.4 → 0.1.1.0
raw patch · 5 files changed
+27/−12 lines, 5 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- System.Metrics.Distribution: instance Show Stats
+ System.Metrics: instance Eq Value
+ System.Metrics.Distribution.Internal: Stats :: !Double -> !Double -> !Int64 -> !Double -> !Double -> !Double -> Stats
+ System.Metrics.Distribution.Internal: count :: Stats -> !Int64
+ System.Metrics.Distribution.Internal: data Stats
+ System.Metrics.Distribution.Internal: instance Eq Stats
+ System.Metrics.Distribution.Internal: instance Show Stats
+ System.Metrics.Distribution.Internal: max :: Stats -> !Double
+ System.Metrics.Distribution.Internal: mean :: Stats -> !Double
+ System.Metrics.Distribution.Internal: min :: Stats -> !Double
+ System.Metrics.Distribution.Internal: sum :: Stats -> !Double
+ System.Metrics.Distribution.Internal: variance :: Stats -> !Double
Files
- CHANGES.md +4/−0
- System/Metrics.hs +1/−1
- System/Metrics/Distribution.hsc +1/−10
- System/Metrics/Distribution/Internal.hs +19/−0
- ekg-core.cabal +2/−1
CHANGES.md view
@@ -1,3 +1,7 @@+## 0.1.1.0 (2015-07-31)++ * Expose internals for use in ekg-json.+ ## 0.1.0.4 (2015-04-12) * GHC 7.10 support.
System/Metrics.hs view
@@ -517,7 +517,7 @@ | Gauge {-# UNPACK #-} !Int64 | Label {-# UNPACK #-} !T.Text | Distribution !Distribution.Stats- deriving Show+ deriving (Eq, Show) sampleOne :: MetricSampler -> IO Value sampleOne (CounterS m) = Counter <$> m
System/Metrics/Distribution.hsc view
@@ -37,6 +37,7 @@ import Prelude hiding (max, min, read, sum) import Data.Array+import System.Metrics.Distribution.Internal (Stats(..)) import System.Metrics.ThreadId -- | An metric for tracking events.@@ -162,13 +163,3 @@ , min = cMin , max = cMax }---- | Distribution statistics-data Stats = Stats- { mean :: !Double -- ^ Sample mean- , variance :: !Double -- ^ Biased sample variance- , count :: !Int64 -- ^ Event count- , sum :: !Double -- ^ Sum of values- , min :: !Double -- ^ Min value seen- , max :: !Double -- ^ Max value seen- } deriving Show
+ System/Metrics/Distribution/Internal.hs view
@@ -0,0 +1,19 @@+{-# OPTIONS_GHC -funbox-strict-fields #-}++-- | Internal module used to share implementation details between the+-- family of ekg packages. DO NOT DEPEND ON THIS MODULE.+module System.Metrics.Distribution.Internal+ ( Stats(..)+ ) where++import Data.Int (Int64)++-- | Distribution statistics+data Stats = Stats+ { mean :: !Double -- ^ Sample mean+ , variance :: !Double -- ^ Biased sample variance+ , count :: !Int64 -- ^ Event count+ , sum :: !Double -- ^ Sum of values+ , min :: !Double -- ^ Min value seen+ , max :: !Double -- ^ Max value seen+ } deriving (Eq, Show)
ekg-core.cabal view
@@ -1,5 +1,5 @@ name: ekg-core-version: 0.1.0.4+version: 0.1.1.0 synopsis: Tracking of system metrics description: This library lets you defined and track system metrics.@@ -19,6 +19,7 @@ System.Metrics System.Metrics.Counter System.Metrics.Distribution+ System.Metrics.Distribution.Internal System.Metrics.Gauge System.Metrics.Label