tool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabelMatchers

func GetLabelMatchers(flags []string) (map[string]string, error)

Types

type AlertRuleFile

type AlertRuleFile struct {
	// Namespace field only exists for setting namespace in namespace body instead of file name
	Filepath string              `yaml:"-"`
	Groups   []rulefmt.RuleGroup `yaml:"groups"`
}

type Checker

type Checker interface {
	Transform(arg string, matchers *map[string]string) (string, error)
	Validate(data []byte) (*rulefmt.RuleGroups, error)
}

type LogQL

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

func (*LogQL) Transform

func (p *LogQL) Transform(arg string, matchers *map[string]string) (string, error)

func (*LogQL) Validate

func (p *LogQL) Validate(data []byte) (*rulefmt.RuleGroups, error)

type PromQL

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

func (*PromQL) Transform

func (p *PromQL) Transform(arg string, matchers *map[string]string) (string, error)

func (*PromQL) Validate

func (p *PromQL) Validate(data []byte) (*rulefmt.RuleGroups, error)

Jump to

Keyboard shortcuts

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