MCPcopy
hub / github.com/netdata/netdata / Expr

Struct Expr

src/go/pkg/prometheus/selector/expr.go:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import "github.com/netdata/netdata/go/plugins/pkg/selectorcore"
6
7type Expr struct {
8 Allow []string `yaml:"allow,omitempty" json:"allow"`
9 Deny []string `yaml:"deny,omitempty" json:"deny"`
10}
11
12func (e Expr) Empty() bool {
13 return len(e.Allow) == 0 && len(e.Deny) == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected