Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- createInstrumentPool :: ConnectInfo -> IO Connection
- type Samplers = Map (MetricName, Dimensions) Sampler
- type Counters = Map (MetricName, Dimensions) Counter
- data Instrument = I {}
- data InstrumentConfig = ICfg {}
- data SubmissionPacket = SP {
- spTimeStamp :: !Double
- spName :: !MetricName
- spPayload :: !Payload
- spDimensions :: !Dimensions
- newtype MetricName = MetricName {
- metricName :: String
- newtype DimensionName = DimensionName {}
- newtype DimensionValue = DimensionValue {}
- type Dimensions = Map DimensionName DimensionValue
- data Payload
- data Aggregated = Aggregated {}
- data AggPayload
- data Stats = Stats {}
- hostDimension :: DimensionName
- data HostDimensionPolicy
- newtype Quantile = Q {}
Documentation
type Samplers = Map (MetricName, Dimensions) Sampler Source #
type Counters = Map (MetricName, Dimensions) Counter Source #
data Instrument Source #
Instances
Monad m => HasInstrument (ReaderT Instrument m) Source # | |
Defined in Instrument.ClientClass |
data InstrumentConfig Source #
Instances
Default InstrumentConfig Source # | |
Defined in Instrument.Types def :: InstrumentConfig # |
data SubmissionPacket Source #
SP | |
|
Instances
newtype MetricName Source #
Instances
newtype DimensionName Source #
Instances
newtype DimensionValue Source #
Instances
type Dimensions = Map DimensionName DimensionValue Source #
Instances
Generic Payload Source # | |
Show Payload Source # | |
Serialize Payload Source # | |
Eq Payload Source # | |
Migrate Payload Source # | |
SafeCopy Payload Source # | |
type Rep Payload Source # | |
Defined in Instrument.Types type Rep Payload = D1 ('MetaData "Payload" "Instrument.Types" "instrument-0.6.1.0-6Lbe4kLcaNb1isRA7npnNm" 'False) (C1 ('MetaCons "Samples" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSamples") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Double])) :+: C1 ('MetaCons "Counter" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCounter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) | |
type MigrateFrom Payload Source # | |
Defined in Instrument.Types |
data Aggregated Source #
Aggregated | |
|
Instances
data AggPayload Source #
Instances
Instances
hostDimension :: DimensionName Source #
Convention for the dimension of the hostname. Used in the client to inject hostname into the parameters map
data HostDimensionPolicy Source #
Should we automatically pull the host and add it as a
dimension. Used at the call site of the various metrics (timeI
,
sampleI
, etc). Hosts are basically grandfathered in as a
dimension and the functionality of automatically injecting them is
useful, but it is not relevant to some metrics and actually makes
some metrics difficult to use depending on the backend, so we made
them opt-in.
Instances
Show HostDimensionPolicy Source # | |
Defined in Instrument.Types showsPrec :: Int -> HostDimensionPolicy -> ShowS # show :: HostDimensionPolicy -> String # showList :: [HostDimensionPolicy] -> ShowS # | |
Eq HostDimensionPolicy Source # | |
Defined in Instrument.Types (==) :: HostDimensionPolicy -> HostDimensionPolicy -> Bool # (/=) :: HostDimensionPolicy -> HostDimensionPolicy -> Bool # |