Documentation ¶
Index ¶
- func CreateCustomMetric(s *monitoring.Service, projectID, serviceName string, unit string) error
- func GetCustomMetric(s *monitoring.Service, projectID, serviceName string) (*monitoring.ListMetricDescriptorsResponse, error)
- func MetricType(serviceName string) string
- func WriteTimeSeriesValue(s *monitoring.Service, projectID, serviceName string, value float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCustomMetric ¶
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 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.
Click to show internal directories.
Click to hide internal directories.