forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
638 B
41 lines
638 B
Verifies common usecases for trimdefault/applydefault functions:
|
|
* Basic cases
|
|
* Real dashboard
|
|
|
|
-- CUE --
|
|
{
|
|
timepicker?: {
|
|
collapse: bool | *false
|
|
enable: bool | *true
|
|
hidden: bool | *false
|
|
refresh_intervals: [...string] | *["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
|
|
}
|
|
}
|
|
|
|
-- Full --
|
|
{
|
|
"timepicker": {
|
|
"collapse": true,
|
|
"enable":true,
|
|
"hidden":false,
|
|
"refresh_intervals":[
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
]
|
|
}
|
|
}
|
|
|
|
-- Trimmed --
|
|
{
|
|
"timepicker": {
|
|
"collapse": true
|
|
}
|
|
}
|