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.