expr

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnginePromQL    = "promql"
	EngineMetricsQL = "metricsql"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Analyze(query string) (modelAPIV1.Set[string], modelAPIV1.Set[string], error)
}

Analyzer is the interface for parsing query expressions and extracting metric names

func NewAnalyzer

func NewAnalyzer(engine string) (Analyzer, error)

NewAnalyzer returns a fresh analyzer implementation for the requested engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL