rtcreporter

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rtcreporter implements a reporting mechanism for RTC targets. The RtcReportOptions configures how a cloudprober instance should populate an RtcTargetInfo protobuf to report to a set of RTC configurations. For more information, see cloudprober/targets/rtc to see how target listing works for RTC configs.

When reporting attributes such as public/private ip, the sysVars map will be used. For more info see cloudprober/util.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

Reporter provides the means and configuration for a cloudprober instance to report its sysVars to a set of RTC configs.

func New

func New(pb *rpb.RtcReportOptions, sysVars map[string]string, l *logger.Logger) (*Reporter, error)

New returns a Reporter from a provided configuration. An error will be returned if any of the report_variables are not defined in sysVars.

func (*Reporter) Start

func (r *Reporter) Start(ctx context.Context)

Start calls report for every RTC config each tick of the clock.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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