[release-12.3.1] Azure: Improved column handling in logs query builder (#114841)

Azure: Improved column handling in logs query builder (#114667)

* Add parameter type field

* Use parameterType to filter columns for aggregation funcs

* Add tests for aggregate components

(cherry picked from commit ff4228bd58)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-12-04 14:01:19 +00:00
committed by GitHub
co-authored by Andreas Christou
parent 6ec45f9d00
commit aaf91dc82c
9 changed files with 556 additions and 13 deletions
@@ -223,6 +223,8 @@ func NewBuilderQueryEditorPropertyExpression() *BuilderQueryEditorPropertyExpres
type BuilderQueryEditorProperty struct {
Type BuilderQueryEditorPropertyType `json:"type"`
Name string `json:"name"`
// Optional parameter type for function properties
ParameterType *BuilderQueryEditorReduceParameterTypes `json:"parameterType,omitempty"`
}
// NewBuilderQueryEditorProperty creates a new BuilderQueryEditorProperty object.
@@ -242,6 +244,13 @@ const (
BuilderQueryEditorPropertyTypeInterval BuilderQueryEditorPropertyType = "interval"
)
type BuilderQueryEditorReduceParameterTypes string
const (
BuilderQueryEditorReduceParameterTypesGeneric BuilderQueryEditorReduceParameterTypes = "generic"
BuilderQueryEditorReduceParameterTypesNumeric BuilderQueryEditorReduceParameterTypes = "numeric"
)
type BuilderQueryEditorExpressionType string
const (