gcm

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const GCMAuthScope = "https://www.googleapis.com/auth/monitoring"

Variables

This section is empty.

Functions

func CreateGCMSink added in v0.11.0

func CreateGCMSink(uri *url.URL, _ extpoints.HeapsterConf) ([]sink_api.ExternalSink, error)

func FullLabelName added in v0.17.0

func FullLabelName(name string) string

func FullMetricName added in v0.16.0

func FullMetricName(name string) string

Types

type GcmCore added in v0.16.0

type GcmCore struct {
	// contains filtered or unexported fields
}

func NewCore added in v0.16.0

func NewCore() (*GcmCore, error)

Returns a thread-compatible implementation of GCM interactions.

func (*GcmCore) GetEquivalentRateMetric added in v0.16.0

func (self *GcmCore) GetEquivalentRateMetric(metric *sink_api.Point) (*Timeseries, error)

func (*GcmCore) GetMetric added in v0.16.0

func (self *GcmCore) GetMetric(metric *sink_api.Point) (*Timeseries, error)

func (*GcmCore) Register added in v0.16.0

func (self *GcmCore) Register(name, description, metricType, valueType string, labels []sink_api.LabelDescriptor) error

func (*GcmCore) StoreTimeseries added in v0.16.0

func (self *GcmCore) StoreTimeseries(metrics map[string][]Timeseries) error

func (*GcmCore) Unregister added in v0.17.0

func (self *GcmCore) Unregister(name string) error

type Timeseries added in v0.16.0

type Timeseries struct {
	TimeseriesDescriptor timeseriesDescriptor `json:"timeseriesDesc,omitempty"`
	Point                point                `json:"point,omitempty"`
}

Jump to

Keyboard shortcuts

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