gcm

package
v0.0.0-...-6152d30 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package gcm provides the basic APIs to communicate with Google cloud monitoring

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCloudMonitorService

func BuildCloudMonitorService(serviceEmail string, key []byte) (*monitor.Service, error)

BuildCloudMonitorService builds the singlton service for CloudMonitor

Types

type Manager

type Manager struct {
	*monitor.Service `inject:""`
}

Manager is for low level communication with Google CloudMonitor.

func (*Manager) GetAvgCPUUtilization

func (m *Manager) GetAvgCPUUtilization(projectID, instanceName string) (float64, error)

GetAvgCPUUtilization gets average CPU utilization of recent 3 minutes

Jump to

Keyboard shortcuts

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