mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
46 lines
784 B
Plaintext
46 lines
784 B
Plaintext
|
Verifies common usecases for trimdefault/applydefault functions:
|
||
|
* Nested struct
|
||
|
* Simple array
|
||
|
|
||
|
-- CUE --
|
||
|
{
|
||
|
annotations?: list: [...{
|
||
|
builtIn: number | *0
|
||
|
datasource: string
|
||
|
enable?: bool | *true
|
||
|
hide?: bool | *false
|
||
|
iconColor?: string
|
||
|
name?: string
|
||
|
type: string | *"dashboard"
|
||
|
rawQuery?: string
|
||
|
showIn: number | *0
|
||
|
}]
|
||
|
}
|
||
|
|
||
|
-- Full --
|
||
|
{
|
||
|
"annotations": {
|
||
|
"list": [
|
||
|
{
|
||
|
"builtIn": 1,
|
||
|
"datasource": "-- Grafana --",
|
||
|
"name": "Annotations & Alerts",
|
||
|
"type": "dashboard",
|
||
|
"showIn": 0
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
-- Trimed --
|
||
|
{
|
||
|
"annotations": {
|
||
|
"list": [
|
||
|
{
|
||
|
"builtIn": 1,
|
||
|
"datasource": "-- Grafana --",
|
||
|
"name": "Annotations & Alerts"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|