rules

package
v0.0.0-...-03fcf09 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReqGetRules

func ReqGetRules(w http.ResponseWriter, r *http.Request)

Types

type Rule

type Rule struct {
	Name      string   `json:"name"`
	Namespace []string `json:"namespace"`
	Container []string `json:"container"`
	Metric    string   `json:"metric"`
	Condition []string `json:"condition"`
}

func ReadRules

func ReadRules(dir string) ([]Rule, error)

Jump to

Keyboard shortcuts

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