mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
3d33de1751
Lead all top-level properties that we do not intend to export with an underscore. In 2.2.0, only definitions starting with a capital letter were exported. As well, properties with a leading underscore were not visible to an entire package - just within the same file. 3.0.0 still considers them hidden, however, they are now visible to an entire package.
19 lines
446 B
CUE
19 lines
446 B
CUE
package variables
|
|
|
|
// Data source variables allow you to quickly change the data source for an
|
|
// entire dashboard.
|
|
#Datasource: _variable & {
|
|
// Data source type.
|
|
query: string
|
|
// Query value.
|
|
queryValue: string | *""
|
|
// Refresh.
|
|
refresh: int | *1
|
|
// Regex filter for which data source instances to choose
|
|
// from in the variable value dropdown. Leave empty for
|
|
// all.
|
|
regex: string
|
|
// Variable type.
|
|
type: string | *"datasource"
|
|
}
|