Documentation ¶
Index ¶
- Constants
- type Absolute
- type Event
- type FAbsolute
- type FGauge
- type FGaugeDelta
- func (e FGaugeDelta) Key() string
- func (e FGaugeDelta) Payload() interface{}
- func (e *FGaugeDelta) SetKey(key string)
- func (e FGaugeDelta) Stats() []string
- func (e FGaugeDelta) String() string
- func (e FGaugeDelta) Type() int
- func (e FGaugeDelta) TypeString() string
- func (e *FGaugeDelta) Update(e2 Event) error
- type Gauge
- type GaugeDelta
- func (e GaugeDelta) Key() string
- func (e GaugeDelta) Payload() interface{}
- func (e *GaugeDelta) SetKey(key string)
- func (e GaugeDelta) Stats() []string
- func (e GaugeDelta) String() string
- func (e GaugeDelta) Type() int
- func (e GaugeDelta) TypeString() string
- func (e *GaugeDelta) Update(e2 Event) error
- type Increment
- type PrecisionTiming
- func (e PrecisionTiming) Key() string
- func (e PrecisionTiming) Payload() interface{}
- func (e *PrecisionTiming) SetKey(key string)
- func (e PrecisionTiming) Stats() []string
- func (e PrecisionTiming) String() string
- func (e PrecisionTiming) Type() int
- func (e PrecisionTiming) TypeString() string
- func (e *PrecisionTiming) Update(e2 Event) error
- type Timing
- type Total
Constants ¶
const ( EventIncr = iota EventTiming EventAbsolute EventTotal EventGauge EventGaugeDelta EventFGauge EventFGaugeDelta EventFAbsolute EventPrecisionTiming )
constant event type identifiers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Absolute ¶
Absolute is a metric that is not averaged/aggregated. We keep each value distinct and then we flush them all individually.
func (Absolute) Payload ¶
func (e Absolute) Payload() interface{}
Payload returns the aggregated value for this event
func (Absolute) TypeString ¶
TypeString returns a name for this type of metric
type Event ¶
type Event interface { Stats() []string Type() int TypeString() string Payload() interface{} Update(e2 Event) error String() string Key() string SetKey(string) }
Event is an interface to a generic StatsD event, used by the buffered client collator
type FAbsolute ¶
FAbsolute is a metric that is not averaged/aggregated. We keep each value distinct and then we flush them all individually.
func (FAbsolute) Payload ¶
func (e FAbsolute) Payload() interface{}
Payload returns the aggregated value for this event
func (FAbsolute) TypeString ¶
TypeString returns a name for this type of metric
type FGauge ¶
FGauge - Gauges are a constant data type. They are not subject to averaging, and they don’t change unless you change them. That is, once you set a gauge value, it will be a flat line on the graph until you change it again
func (FGauge) Payload ¶
func (e FGauge) Payload() interface{}
Payload returns the aggregated value for this event
func (FGauge) TypeString ¶
TypeString returns a name for this type of metric
type FGaugeDelta ¶
FGaugeDelta - Gauges are a constant data type. They are not subject to averaging, and they don’t change unless you change them. That is, once you set a gauge value, it will be a flat line on the graph until you change it again
func (FGaugeDelta) Payload ¶
func (e FGaugeDelta) Payload() interface{}
Payload returns the aggregated value for this event
func (*FGaugeDelta) SetKey ¶
func (e *FGaugeDelta) SetKey(key string)
SetKey sets the name of this metric
func (FGaugeDelta) Stats ¶
func (e FGaugeDelta) Stats() []string
Stats returns an array of StatsD events as they travel over UDP
func (FGaugeDelta) String ¶
func (e FGaugeDelta) String() string
String returns a debug-friendly representation of this metric
func (FGaugeDelta) Type ¶
func (e FGaugeDelta) Type() int
Type returns an integer identifier for this type of metric
func (FGaugeDelta) TypeString ¶
func (e FGaugeDelta) TypeString() string
TypeString returns a name for this type of metric
func (*FGaugeDelta) Update ¶
func (e *FGaugeDelta) Update(e2 Event) error
Update the event with metrics coming from a new one of the same type and with the same key
type Gauge ¶
Gauge - Gauges are a constant data type. They are not subject to averaging, and they don’t change unless you change them. That is, once you set a gauge value, it will be a flat line on the graph until you change it again
func (Gauge) Payload ¶
func (e Gauge) Payload() interface{}
Payload returns the aggregated value for this event
func (Gauge) TypeString ¶
TypeString returns a name for this type of metric
type GaugeDelta ¶
GaugeDelta - Gauges are a constant data type. They are not subject to averaging, and they don’t change unless you change them. That is, once you set a gauge value, it will be a flat line on the graph until you change it again
func (GaugeDelta) Payload ¶
func (e GaugeDelta) Payload() interface{}
Payload returns the aggregated value for this event
func (*GaugeDelta) SetKey ¶
func (e *GaugeDelta) SetKey(key string)
SetKey sets the name of this metric
func (GaugeDelta) Stats ¶
func (e GaugeDelta) Stats() []string
Stats returns an array of StatsD events as they travel over UDP
func (GaugeDelta) String ¶
func (e GaugeDelta) String() string
String returns a debug-friendly representation of this metric
func (GaugeDelta) Type ¶
func (e GaugeDelta) Type() int
Type returns an integer identifier for this type of metric
func (GaugeDelta) TypeString ¶
func (e GaugeDelta) TypeString() string
TypeString returns a name for this type of metric
func (*GaugeDelta) Update ¶
func (e *GaugeDelta) Update(e2 Event) error
Update the event with metrics coming from a new one of the same type and with the same key
type Increment ¶
Increment represents a metric whose value is averaged over a minute
func (Increment) Payload ¶
func (e Increment) Payload() interface{}
Payload returns the aggregated value for this event
func (Increment) TypeString ¶
TypeString returns a name for this type of metric
type PrecisionTiming ¶
type PrecisionTiming struct { Name string Min time.Duration Max time.Duration Value time.Duration Count int64 }
PrecisionTiming keeps min/max/avg information about a timer over a certain interval
func NewPrecisionTiming ¶
func NewPrecisionTiming(k string, delta time.Duration) *PrecisionTiming
NewPrecisionTiming is a factory for a Timing event, setting the Count to 1 to prevent div_by_0 errors
func (PrecisionTiming) Key ¶
func (e PrecisionTiming) Key() string
Key returns the name of this metric
func (PrecisionTiming) Payload ¶
func (e PrecisionTiming) Payload() interface{}
Payload returns the aggregated value for this event
func (*PrecisionTiming) SetKey ¶
func (e *PrecisionTiming) SetKey(key string)
SetKey sets the name of this metric
func (PrecisionTiming) Stats ¶
func (e PrecisionTiming) Stats() []string
Stats returns an array of StatsD events as they travel over UDP
func (PrecisionTiming) String ¶
func (e PrecisionTiming) String() string
String returns a debug-friendly representation of this metric
func (PrecisionTiming) Type ¶
func (e PrecisionTiming) Type() int
Type returns an integer identifier for this type of metric
func (PrecisionTiming) TypeString ¶
func (e PrecisionTiming) TypeString() string
TypeString returns a name for this type of metric
func (*PrecisionTiming) Update ¶
func (e *PrecisionTiming) Update(e2 Event) error
Update the event with metrics coming from a new one of the same type and with the same key
type Timing ¶
Timing keeps min/max/avg information about a timer over a certain interval
func NewTiming ¶
NewTiming is a factory for a Timing event, setting the Count to 1 to prevent div_by_0 errors
func (Timing) Payload ¶
func (e Timing) Payload() interface{}
Payload returns the aggregated value for this event
func (Timing) TypeString ¶
TypeString returns a name for this type of metric
type Total ¶
Total represents a metric that is continously increasing, e.g. read operations since boot
func (Total) Payload ¶
func (e Total) Payload() interface{}
Payload returns the aggregated value for this event
func (Total) TypeString ¶
TypeString returns a name for this type of metric