gcm

package
v0.16.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CreateGCMSink added in v0.11.0

func CreateGCMSink(_ string, _ map[string][]string) ([]sink_api.ExternalSink, error)

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

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