The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
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.
 
 
 
 
 
 
grafana/pkg/schema/testdata/trimapplydefaults/basicStruct.txtar

35 lines
561 B

Verifies common usecases for trimdefault/applydefault functions:
* Basic cases
* Real dashboard
-- CUE --
{
id?: number
uid: string
gnetId?: string
style: *"light" | "dark"
timezone?: *"browser" | "utc"
editable: bool | *true
schemaVersion: number | *25
version?: number
graphTooltip: >=0 & <=2 | *0
}
-- Full --
{
"editable": true,
"graphTooltip": 0,
"id": 42,
"schemaVersion": 27,
"style": "light",
"uid": "emal8gQMz",
"version": 2
}
-- Trimmed --
{
"id": 42,
"schemaVersion": 27,
"uid": "emal8gQMz",
"version": 2
}