rule

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(groups []*rulefmt.RuleGroups, maxRule int, maxGroup int) (*rulefmt.RuleGroups, error)

Types

type GroupOutput

type GroupOutput struct {
	Name     string         `yaml:"name"`
	Interval model.Duration `yaml:"interval,omitempty"`
	Rules    []rulefmt.Rule `yaml:"rules"`
}

type GroupsOutput

type GroupsOutput struct {
	Groups []GroupOutput `yaml:"groups"`
}

func Format

func Format(groups *rulefmt.RuleGroups) *GroupsOutput

Jump to

Keyboard shortcuts

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