file

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{
	RefreshInterval: 5 * time.Minute,
}

Functions

func New

func New(opts component.Options, args Arguments) (*discovery.Component, error)

Types

type Arguments

type Arguments struct {
	Files           []string      `river:"files,attr"`
	RefreshInterval time.Duration `river:"refresh_interval,attr,optional"`
}

func (*Arguments) Convert added in v0.35.0

func (a *Arguments) Convert() *prom_discovery.SDConfig

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

Jump to

Keyboard shortcuts

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