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
Click to show internal directories.
Click to hide internal directories.