stackdriver

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Overview

Package stackdriver implements the Stackdriver version of the Surfacer object. This package allows users to create an initialized Stack Driver Surfacer and use it to write custom metrics data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDSurfacer

type SDSurfacer struct {
	// contains filtered or unexported fields
}

SDSurfacer structure for StackDriver, which includes an authenticated client for making StackDriver API calls, and a registered which is in charge of keeping track of what metrics have already been registereded

func New

func New(config *configpb.SurfacerConf, l *logger.Logger) (*SDSurfacer, error)

New initializes a SDSurfacer for Stack Driver with all its necessary internal variables for call references (project and instances variables) as well as provisioning it with clients for making the necessary API calls. New requires you to pass in a valid stackdriver surfacer configuration.

func (*SDSurfacer) Write

func (s *SDSurfacer) Write(ctxIn context.Context, em *metrics.EventMetrics)

Write queues a message to be written to stackdriver.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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