Documentation ¶
Index ¶
- Constants
- func CreateGCMSink(_ string, _ map[string][]string) ([]sink_api.ExternalSink, error)
- func FullMetricName(name string) string
- type GcmCore
- func (self *GcmCore) GetEquivalentRateMetric(metric *sink_api.Point) (*Timeseries, error)
- func (self *GcmCore) GetMetric(metric *sink_api.Point) (*Timeseries, error)
- func (self *GcmCore) Register(name, description, metricType, valueType string, ...) error
- func (self *GcmCore) StoreTimeseries(metrics map[string][]Timeseries) error
- type Timeseries
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 FullMetricName ¶ added in v0.16.0
Types ¶
type GcmCore ¶ added in v0.16.0
type GcmCore struct {
// contains filtered or unexported fields
}
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"` }
Click to show internal directories.
Click to hide internal directories.