stackdriver

package
v0.0.0-...-77f69b2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomMetric

func CreateCustomMetric(s *monitoring.Service, projectID, serviceName string, unit string) error

createCustomMetric creates a custom metric specified by the metric type.

func GetCustomMetric

func GetCustomMetric(s *monitoring.Service, projectID, serviceName string) (*monitoring.ListMetricDescriptorsResponse, error)

getCustomMetric reads the custom metric created.

func MetricType

func MetricType(serviceName string) string

func WriteTimeSeriesValue

func WriteTimeSeriesValue(s *monitoring.Service, projectID, serviceName string, value float64) error

writeTimeSeriesValue writes a value for the custom metric created

Types

This section is empty.

Jump to

Keyboard shortcuts

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