unmarshaler

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupsWithComment added in v2.13.0

type GroupsWithComment struct {
	Groups []RuleGroupWithComment
	// contains filtered or unexported fields
}

func (*GroupsWithComment) DisabledValidators added in v2.13.0

func (g *GroupsWithComment) DisabledValidators(commentPrefix string) []string

func (*GroupsWithComment) UnmarshalYAML added in v2.13.0

func (g *GroupsWithComment) UnmarshalYAML(value *yaml.Node) error

type RuleGroup

type RuleGroup struct {
	Name                    string            `yaml:"name"`
	Interval                model.Duration    `yaml:"interval,omitempty"`
	PartialResponseStrategy string            `yaml:"partial_response_strategy,omitempty"`
	SourceTenants           []string          `yaml:"source_tenants,omitempty"`
	Rules                   []RuleWithComment `yaml:"rules"`
	Limit                   int               `yaml:"limit,omitempty"`
}

type RuleGroupWithComment added in v2.13.0

type RuleGroupWithComment struct {
	RuleGroup
	// contains filtered or unexported fields
}

func (*RuleGroupWithComment) DisabledValidators added in v2.13.0

func (r *RuleGroupWithComment) DisabledValidators(commentPrefix string) []string

func (*RuleGroupWithComment) UnmarshalYAML added in v2.13.0

func (r *RuleGroupWithComment) UnmarshalYAML(value *yaml.Node) error

type RuleWithComment added in v2.9.0

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

func (*RuleWithComment) DisabledValidators added in v2.9.0

func (r *RuleWithComment) DisabledValidators(commentPrefix string) []string

func (*RuleWithComment) OriginalRule added in v2.9.0

func (r *RuleWithComment) OriginalRule() rulefmt.Rule

func (*RuleWithComment) UnmarshalYAML added in v2.9.0

func (r *RuleWithComment) UnmarshalYAML(value *yaml.Node) error

type RulesFile

type RulesFile struct {
	Groups GroupsWithComment `yaml:"groups"`
	// contains filtered or unexported fields
}

type RulesFileWithComment added in v2.13.0

type RulesFileWithComment struct {
	RulesFile
	// contains filtered or unexported fields
}

func (*RulesFileWithComment) DisabledValidators added in v2.13.0

func (r *RulesFileWithComment) DisabledValidators(commentPrefix string) []string

func (*RulesFileWithComment) UnmarshalYAML added in v2.13.0

func (r *RulesFileWithComment) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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