collectrule

package
v0.0.0-...-afc17b4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectRule

type CollectRule struct {
	Name        string   `json:"name"`
	Expr        string   `json:"expr"`
	DurationStr string   `json:"for"`
	Names       []string `json:"names"`
	Matches     []string `json:"matches"`
	Duration    time.Duration
}

type EvaluatedRule

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

type Evaluator

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

func New

func New(cfg forwarder.Config) (*Evaluator, error)

func (*Evaluator) Reconfigure

func (e *Evaluator) Reconfigure(cfg forwarder.Config) error

func (*Evaluator) Run

func (e *Evaluator) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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