mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
Docs: update raw format for data source variable (#75488)
* Update index.md Please see this PR for the breaking change to raw. https://github.com/grafana/grafana/pull/69259 * Update docs/sources/dashboards/variables/variable-syntax/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed linting error --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
This commit is contained in:
parent
5604305271
commit
3d84956215
@ -135,12 +135,12 @@ Interpolation result: 'test1.|test2'
|
||||
|
||||
### Raw
|
||||
|
||||
Turns off data source-specific formatting, such as single quotes in an SQL query.
|
||||
The raw format for a data source variable returns the UID (unique identifier) of the data source, rather than its name.
|
||||
|
||||
```bash
|
||||
servers = ['test.1', 'test2']
|
||||
String to interpolate: '${var_name:raw}'
|
||||
Interpolation result: 'test.1,test2'
|
||||
datasourceVariable = 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3'
|
||||
String to interpolate: '${datasourceVariable:raw}'
|
||||
Interpolation result: 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3'
|
||||
```
|
||||
|
||||
### Regex
|
||||
|
Loading…
Reference in New Issue
Block a user