primergyconf

package
v0.0.0-...-f7150f6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.4"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Level int    `toml:"level"`
	Id    string `toml:"id"`
	Batch string `toml:"batch"`
	Text  string `toml:"text"`
}

func NewMetric

func NewMetric(level int, id string, batch string, text string) *Metric

type Metrics

type Metrics struct {
	Metrics []*Metric
}

type Primergy

type Primergy struct {
	Url      string `toml:"url"`
	User     string `toml:"user"`
	Password string `toml:"password"`
	Insecure bool   `toml:"insecure"`
	Server   string `toml:"server"`

	Metrics []*Metric `toml:"metrics"`
	// contains filtered or unexported fields
}

func (*Primergy) Config

func (e *Primergy) Config() string

func (*Primergy) Label

func (e *Primergy) Label() string

func (*Primergy) Run

func (e *Primergy) Run(ctx context.Context, env *cfg.RunEnv) error

Jump to

Keyboard shortcuts

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