Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterMetric ¶
type CounterMetric struct { App string CellId string GUID string Instance string Job string Metric string Organisation string Space string Metadata map[string]string Value int64 }
func (CounterMetric) GetLabels ¶
func (m CounterMetric) GetLabels() map[string]string
func (CounterMetric) Name ¶
func (m CounterMetric) Name() string
func (CounterMetric) Send ¶
func (m CounterMetric) Send(sender Sender) error
type GaugeMetric ¶
type GaugeMetric struct { App string CellId string GUID string Instance string Job string Metric string Organisation string Space string Metadata map[string]string Value int64 Unit string }
func (GaugeMetric) GetLabels ¶
func (m GaugeMetric) GetLabels() map[string]string
func (GaugeMetric) Name ¶
func (m GaugeMetric) Name() string
func (GaugeMetric) Send ¶
func (m GaugeMetric) Send(sender Sender) error
type PrecisionTimingMetric ¶
type PrecisionTimingMetric struct { App string CellId string GUID string Instance string Job string Metric string Organisation string Space string Metadata map[string]string Value time.Duration Start int64 Stop int64 }
func (PrecisionTimingMetric) GetLabels ¶
func (m PrecisionTimingMetric) GetLabels() map[string]string
func (PrecisionTimingMetric) Name ¶
func (m PrecisionTimingMetric) Name() string
func (PrecisionTimingMetric) Send ¶
func (m PrecisionTimingMetric) Send(sender Sender) error
type Sender ¶
type Sender interface { Gauge(metric GaugeMetric) error Incr(metric CounterMetric) error PrecisionTiming(metric PrecisionTimingMetric) error AppInstanceCreated(guidInstance string) error AppInstanceDeleted(guidInstance string) error }
Click to show internal directories.
Click to hide internal directories.