stackdriver

package
v0.0.0-...-b28dce8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package stackdriver is a generated protocol buffer package.

It is generated from these files:

github.com/google/cloudprober/surfacers/stackdriver/config.proto

It has these top-level messages:

SurfacerConf

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

View Source
const Default_SurfacerConf_Batch bool = true
View Source
const Default_SurfacerConf_BatchSize uint64 = 200
View Source
const Default_SurfacerConf_BatchTimerSec uint64 = 10
View Source
const Default_SurfacerConf_MonitoringUrl string = "custom.googleapis.com/"

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 *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.

type SurfacerConf

type SurfacerConf struct {
	Batch            *bool   `protobuf:"varint,1,opt,name=batch,def=1" json:"batch,omitempty"`
	BatchSize        *uint64 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,def=200" json:"batch_size,omitempty"`
	BatchTimerSec    *uint64 `protobuf:"varint,3,opt,name=batch_timer_sec,json=batchTimerSec,def=10" json:"batch_timer_sec,omitempty"`
	MonitoringUrl    *string `protobuf:"bytes,5,opt,name=monitoring_url,json=monitoringUrl,def=custom.googleapis.com/" json:"monitoring_url,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*SurfacerConf) Descriptor

func (*SurfacerConf) Descriptor() ([]byte, []int)

func (*SurfacerConf) GetBatch

func (m *SurfacerConf) GetBatch() bool

func (*SurfacerConf) GetBatchSize

func (m *SurfacerConf) GetBatchSize() uint64

func (*SurfacerConf) GetBatchTimerSec

func (m *SurfacerConf) GetBatchTimerSec() uint64

func (*SurfacerConf) GetMonitoringUrl

func (m *SurfacerConf) GetMonitoringUrl() string

func (*SurfacerConf) ProtoMessage

func (*SurfacerConf) ProtoMessage()

func (*SurfacerConf) Reset

func (m *SurfacerConf) Reset()

func (*SurfacerConf) String

func (m *SurfacerConf) String() string

Jump to

Keyboard shortcuts

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