common

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterOptions

type FilterOptions struct {
	NamePass       []string            `toml:"namepass,omitempty"`
	NameDrop       []string            `toml:"namedrop,omitempty"`
	FieldPassOld   []string            `toml:"pass,omitempty"`
	FieldPass      []string            `toml:"fieldpass,omitempty"`
	FieldInclude   []string            `toml:"fieldinclude,omitempty"`
	FieldDropOld   []string            `toml:"drop,omitempty"`
	FieldDrop      []string            `toml:"fielddrop,omitempty"`
	FieldExclude   []string            `toml:"fieldexclude,omitempty"`
	TagPassFilters map[string][]string `toml:"tagpass,omitempty"`
	TagDropFilters map[string][]string `toml:"tagdrop,omitempty"`
	TagExclude     []string            `toml:"tagexclude,omitempty"`
	TagInclude     []string            `toml:"taginclude,omitempty"`
	MetricPass     string              `toml:"metricpass,omitempty"`
}

type InputOptions

type InputOptions struct {
	// General options
	Interval         string            `toml:"interval,omitempty"`
	Precision        string            `toml:"precision,omitempty"`
	CollectionJitter string            `toml:"collection_jitter,omitempty"`
	CollectionOffset string            `toml:"collection_offset,omitempty"`
	NamePrefix       string            `toml:"name_prefix,omitempty"`
	NameSuffix       string            `toml:"name_suffix,omitempty"`
	NameOverride     string            `toml:"name_override,omitempty"`
	Alias            string            `toml:"alias,omitempty"`
	Tags             map[string]string `toml:"tags,omitempty"`

	// Filter options
	NamePass       []string            `toml:"namepass,omitempty"`
	NameDrop       []string            `toml:"namedrop,omitempty"`
	FieldPassOld   []string            `toml:"pass,omitempty"`
	FieldPass      []string            `toml:"fieldpass,omitempty"`
	FieldInclude   []string            `toml:"fieldinclude,omitempty"`
	FieldDropOld   []string            `toml:"drop,omitempty"`
	FieldDrop      []string            `toml:"fielddrop,omitempty"`
	FieldExclude   []string            `toml:"fieldexclude,omitempty"`
	TagPassFilters map[string][]string `toml:"tagpass,omitempty"`
	TagDropFilters map[string][]string `toml:"tagdrop,omitempty"`
	TagExclude     []string            `toml:"tagexclude,omitempty"`
	TagInclude     []string            `toml:"taginclude,omitempty"`
	MetricPass     string              `toml:"metricpass,omitempty"`
}

func (*InputOptions) Migrate added in v1.29.0

func (io *InputOptions) Migrate()

type OutputOptions added in v1.29.0

type OutputOptions struct {
	// General options
	Alias string `toml:"alias,omitempty"`

	// Filter options
	NamePass       []string            `toml:"namepass,omitempty"`
	NameDrop       []string            `toml:"namedrop,omitempty"`
	FieldPassOld   []string            `toml:"pass,omitempty"`
	FieldPass      []string            `toml:"fieldpass,omitempty"`
	FieldInclude   []string            `toml:"fieldinclude,omitempty"`
	FieldDropOld   []string            `toml:"drop,omitempty"`
	FieldDrop      []string            `toml:"fielddrop,omitempty"`
	FieldExclude   []string            `toml:"fieldexclude,omitempty"`
	TagPassFilters map[string][]string `toml:"tagpass,omitempty"`
	TagDropFilters map[string][]string `toml:"tagdrop,omitempty"`
	TagExclude     []string            `toml:"tagexclude,omitempty"`
	TagInclude     []string            `toml:"taginclude,omitempty"`
	MetricPass     string              `toml:"metricpass,omitempty"`
}

func (*OutputOptions) Migrate added in v1.29.0

func (oo *OutputOptions) Migrate()

Jump to

Keyboard shortcuts

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