AggregationExprBuilder
Constructor
func NewAggregationExprBuilder() *AggregationExprBuilder
Methods
Build
Builds the object.
func (builder *AggregationExprBuilder) Build() (Expr, error)
By
By drops labels that are not listed in the by clause.
func (builder *AggregationExprBuilder) By(by []string) *AggregationExprBuilder
Expr
func (builder *AggregationExprBuilder) Expr(expr cog.Builder[promql.Expr]) *AggregationExprBuilder
Op
func (builder *AggregationExprBuilder) Op(op promql.AggregationOp) *AggregationExprBuilder
Param
func (builder *AggregationExprBuilder) Param(param cog.Builder[promql.Expr]) *AggregationExprBuilder
Without
List of labels to remove from the result vector, while all other labels are preserved in the output.
func (builder *AggregationExprBuilder) Without(without []string) *AggregationExprBuilder
See also