gcp

package
v0.40.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	ClientTimeout:         15 * time.Second,
	RequestInterval:       5 * time.Minute,
	RequestOffset:         0,
	IngestDelay:           false,
	DropDelegatedProjects: false,
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ProjectIDs            []string      `river:"project_ids,attr"`
	MetricPrefixes        []string      `river:"metrics_prefixes,attr"`
	ExtraFilters          []string      `river:"extra_filters,attr,optional"`
	RequestInterval       time.Duration `river:"request_interval,attr,optional"`
	RequestOffset         time.Duration `river:"request_offset,attr,optional"`
	IngestDelay           bool          `river:"ingest_delay,attr,optional"`
	DropDelegatedProjects bool          `river:"drop_delegated_projects,attr,optional"`
	ClientTimeout         time.Duration `river:"gcp_client_timeout,attr,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *gcp_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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