gcm

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(keyFilePath string) (*cloudmonitoring.Service, error)

Authenticate authenticates with the given JSON credentials file (or the default client if the file is not provided). If successful, it returns a service object that can be used in GCM API calls.

func GetMetric

func GetMetric(name, project string) (*cloudmonitoring.MetricDescriptor, error)

GetMetric gets the custom metric descriptor with the given name and project.

func GetSortedMetricNames

func GetSortedMetricNames() []string

GetSortedMetricNames gets the sorted metric names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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