gcp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 6 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      `alloy:"project_ids,attr"`
	MetricPrefixes        []string      `alloy:"metrics_prefixes,attr"`
	ExtraFilters          []string      `alloy:"extra_filters,attr,optional"`
	RequestInterval       time.Duration `alloy:"request_interval,attr,optional"`
	RequestOffset         time.Duration `alloy:"request_offset,attr,optional"`
	IngestDelay           bool          `alloy:"ingest_delay,attr,optional"`
	DropDelegatedProjects bool          `alloy:"drop_delegated_projects,attr,optional"`
	ClientTimeout         time.Duration `alloy:"gcp_client_timeout,attr,optional"`
}

func (*Arguments) Convert

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

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements syntax.Validator.

Jump to

Keyboard shortcuts

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