metrics

package
v0.0.0-...-91471a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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 Metric

type Metric interface {
	Send(sender Sender) error
	Name() string
	GetLabels() map[string]string
}

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
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL