Future-proofing query and data source model in Dashboard Schema v2 (#104194)
--------- Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com> Co-authored-by: alexandra vargas <alexa1866@gmail.com> Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com> Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Igor Suleymanov <igor.suleymanov@grafana.com> Co-authored-by: spinillos <selenepinillos@gmail.com>
This commit is contained in:
@@ -211,6 +211,12 @@ func NewQueryEditorProperty() *QueryEditorProperty {
|
||||
}
|
||||
}
|
||||
|
||||
type QueryEditorPropertyType string
|
||||
|
||||
const (
|
||||
QueryEditorPropertyTypeString QueryEditorPropertyType = "string"
|
||||
)
|
||||
|
||||
type QueryEditorArrayExpression struct {
|
||||
Type QueryEditorArrayExpressionType `json:"type"`
|
||||
Expressions ArrayOfQueryEditorExpressionOrArrayOfQueryEditorArrayExpression `json:"expressions"`
|
||||
@@ -279,12 +285,6 @@ func NewQueryEditorOperatorValueType() *QueryEditorOperatorValueType {
|
||||
return NewStringOrBoolOrInt64OrArrayOfQueryEditorOperatorType()
|
||||
}
|
||||
|
||||
type QueryEditorPropertyType string
|
||||
|
||||
const (
|
||||
QueryEditorPropertyTypeString QueryEditorPropertyType = "string"
|
||||
)
|
||||
|
||||
type LogsQueryLanguage string
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user