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
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user