Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Group       string
	Path        string
	Measurement string
}

func (Filter) ParseMany added in v0.2.0

func (f Filter) ParseMany(serviceName string, metrics []SimpleMetrics) []FilteredMetrics

func (Filter) ParseSingle added in v0.2.0

func (f Filter) ParseSingle(metrics SimpleMetrics) []FilteredMetrics

type FilteredMetrics

type FilteredMetrics struct {
	Measurement string
	Tags        map[string]string
	Fields      map[string]interface{}
}

func NewFilteredMetric

func NewFilteredMetric() FilteredMetrics

func (FilteredMetrics) String added in v0.2.0

func (fm FilteredMetrics) String() string

type GrouppedMetrics

type GrouppedMetrics map[string][]SimpleMetrics

type PandoraGauge

type PandoraGauge struct {
	Value json.RawMessage
}

func (PandoraGauge) Parse added in v0.2.0

func (pg PandoraGauge) Parse() float64

func (PandoraGauge) String

func (pg PandoraGauge) String() string

type PandoraMeter

type PandoraMeter struct {
	Count  uint64
	M1Rate float64 `json:"m1_rate"`
}

func (PandoraMeter) String added in v0.2.0

func (pm PandoraMeter) String() string

type PandoraMetrics

type PandoraMetrics struct {
	Gauges map[string]PandoraGauge
	Meters map[string]PandoraMeter
	// Histrograms string
	// Counters string
	Timers map[string]PandoraTimer
}

type PandoraTimer

type PandoraTimer struct {
	Count  uint64
	P50    float64
	P99    float64
	M1Rate float64 `json:"m1_rate"`
}

func (PandoraTimer) String added in v0.2.0

func (pt PandoraTimer) String() string

type ServiceInfo

type ServiceInfo struct {
	Name string
	ID   string
	Host string
	Port int64
}

func (ServiceInfo) GetAddress

func (s ServiceInfo) GetAddress() string

type SimpleMetrics

type SimpleMetrics struct {
	Service ServiceInfo
	Metrics PandoraMetrics
}

Jump to

Keyboard shortcuts

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