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

Struct Expr

src/go/pkg/metrix/selector/expr.go:8–11  ·  view source on GitHub ↗

Expr is a selector expression with allow/deny selector lists.

Source from the content-addressed store, hash-verified

6
7// Expr is a selector expression with allow/deny selector lists.
8type Expr struct {
9 Allow []string `yaml:"allow,omitempty" json:"allow"`
10 Deny []string `yaml:"deny,omitempty" json:"deny"`
11}
12
13func (e Expr) Empty() bool {
14 return len(e.Allow) == 0 && len(e.Deny) == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected