stackdriver

package
v0.0.0-...-38f08bd Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoData = errors.New("No data supplied for metric")
)
View Source
var Sink = &sink{
	projectId:     config.Default().MustGet("GOOGLE_CLOUD_PROJECT"),
	windowSeconds: defaultWindowSeconds,
}

NB: will panic if config is unset

Functions

func CreateCounter

func CreateCounter(ctx context.Context, name string) error

func CreateTimeSeries

func CreateTimeSeries(ctx context.Context, name string) error

func IncrementCounter

func IncrementCounter(ctx context.Context, name string, incr ...int) error

func WriteTimeSeries

func WriteTimeSeries(ctx context.Context, name string, durationsMs ...int) error

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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