Documentation ¶
Index ¶
- Constants
- func CreateMetric(client *http.Client, project string, m *Metric) error
- func DeleteMetric(client *http.Client, project, name string) error
- func GoogleCloudMonitoring(r metrics.Registry, d time.Duration, client *http.Client, project string)
- func IsCustom(desc *cm.MetricDescriptor) bool
- func ListMetrics(client *http.Client, project string) ([]*cm.MetricDescriptor, error)
- func NameInDomain(name string) string
- func WriteTimeseries(client *http.Client, project string, timeseries []*Timeseries) error
- type Metric
- type Timeseries
Constants ¶
View Source
const ( Int = "int64" Double = "double" )
Variables ¶
This section is empty.
Functions ¶
func GoogleCloudMonitoring ¶
func IsCustom ¶
func IsCustom(desc *cm.MetricDescriptor) bool
func ListMetrics ¶
func NameInDomain ¶
ensures names are prefixed with the cloud monitoring domain. name would normally be hierarchically structured, separated with /.
func WriteTimeseries ¶
func WriteTimeseries(client *http.Client, project string, timeseries []*Timeseries) error
Types ¶
Click to show internal directories.
Click to hide internal directories.