Skip to content

NumberLiteralExpr🔗

Represents a number literal expression.

See https://prometheus.io/docs/prometheus/latest/querying/basics/#float-literals-and-time-durations

Definition🔗

type NumberLiteralExpr struct {
    Type string `json:"type"`
    Value float64 `json:"value"`
}

Methods🔗

Validate🔗

Validate checks all the validation constraints that may be defined on NumberLiteralExpr fields for violations and returns them.

func (numberLiteralExpr *NumberLiteralExpr) Validate() error