reporter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCPStatsReporterModule = fx.Provide(NewGCPStatsReporter)

GCPStatsReporterModule exports the GCPStatsReporter module

Functions

This section is empty.

Types

type GCPConfiguration

type GCPConfiguration struct {
	ProjectID  string `yaml:"project_id"`
	MetricType string `yaml:"metric_type"`
}

GCPConfiguration is a configuration for a GCP Stats reporter

type GCPStatsReporterIn

type GCPStatsReporterIn struct {
	fx.In

	GCPConfiguration *GCPConfiguration
	Logger           *zap.SugaredLogger
}

GCPStatsReporterIn defines input dependency of this module

type GCPStatsReporterOut

type GCPStatsReporterOut struct {
	fx.Out

	GCPStatsReporter tally.StatsReporter `name:"gcp_monitoring"`
}

GCPStatsReporterOut defines output structure of this module

func NewGCPStatsReporter

func NewGCPStatsReporter(deps GCPStatsReporterIn) (GCPStatsReporterOut, error)

NewGCPStatsReporter constructs GCP StatsReporter

Jump to

Keyboard shortcuts

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