Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AndType uses values from left hand side for which there is a value in right hand side with exactly matching label sets. // Other elements are replaced by NaNs. The metric name and values are carried over from the left-hand side. AndType = "and" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndNode ¶
type AndNode struct {
// contains filtered or unexported fields
}
AndNode is a node for And operation
type BaseNode ¶
type BaseNode struct {
// contains filtered or unexported fields
}
BaseNode is an execution node
type BaseOp ¶
type BaseOp struct {
OperatorType string
LNode parser.NodeID
RNode parser.NodeID
Matching *VectorMatching
ReturnBool bool
ProcessorFn MakeProcessor
}
BaseOp stores required properties for logical operations
type MakeProcessor ¶
type MakeProcessor func(op BaseOp, controller *transform.Controller) Processor
MakeProcessor is a way to create a logical transform
type Processor ¶
Processor is implemented by each logical transform
func NewAndNode ¶
func NewAndNode(op BaseOp, controller *transform.Controller) Processor
NewAndNode creates a new AndNode
type VectorMatchCardinality ¶
type VectorMatchCardinality int
VectorMatchCardinality describes the cardinality relationship of two Vectors in a binary operation.
const ( // CardOneToOne is used for one-one relationship CardOneToOne VectorMatchCardinality = iota // CardManyToOne is used for many-one relationship CardManyToOne // CardOneToMany is used for one-many relationship CardOneToMany // CardManyToMany is used for many-many relationship CardManyToMany )
type VectorMatching ¶
type VectorMatching struct {
// The cardinality of the two Vectors.
Card VectorMatchCardinality
// MatchingLabels contains the labels which define equality of a pair of
// elements from the Vectors.
MatchingLabels []string
// On includes the given label names from matching,
// rather than excluding them.
On bool
// Include contains additional labels that should be included in
// the result from the side with the lower cardinality.
Include []string
}
VectorMatching describes how elements from two Vectors in a binary operation are supposed to be matched.
Click to show internal directories.
Click to hide internal directories.