template

package
v2.0.0-...-27a1933 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Query    string   `yaml:"query"`
	Counters []string `yaml:"counters"`
	Metrics  []Metric
}

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

type Model

type Model struct {
	Name          string      `yaml:"name"`
	Query         string      `yaml:"query"`
	Object        string      `yaml:"object"`
	Ignore        string      `yaml:"ignore"`
	ExportData    string      `yaml:"export_data"`
	Endpoints     []*Endpoint `yaml:"endpoints"`
	ExportOptions struct {
		InstanceKeys     []string `yaml:"instance_keys"`
		InstanceLabels   []string `yaml:"instance_labels"`
		IncludeAllLabels bool     `yaml:"include_all_labels"`
	} `yaml:"export_options"`
	Override map[string]string `yaml:"override"`

	PluginMetrics     []plugin.DerivedMetric
	MultiplierMetrics []plugin.DerivedMetric
	// contains filtered or unexported fields
}

func ReadTemplate

func ReadTemplate(path string) (Model, error)

Jump to

Keyboard shortcuts

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