mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: Add new format id (#66793)
This commit is contained in:
@@ -771,6 +771,7 @@ export enum VariableFormatID {
|
|||||||
SQLString = 'sqlstring',
|
SQLString = 'sqlstring',
|
||||||
SingleQuote = 'singlequote',
|
SingleQuote = 'singlequote',
|
||||||
Text = 'text',
|
Text = 'text',
|
||||||
|
UriEncode = 'uriencode',
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DataSourceRef {
|
export interface DataSourceRef {
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ VariableFormatID:
|
|||||||
"json" |
|
"json" |
|
||||||
// Percent encode
|
// Percent encode
|
||||||
"percentencode" |
|
"percentencode" |
|
||||||
|
// Uri encode
|
||||||
|
"uriencode" |
|
||||||
// Single quote
|
// Single quote
|
||||||
"singlequote" |
|
"singlequote" |
|
||||||
// Double quote
|
// Double quote
|
||||||
@@ -34,4 +36,4 @@ VariableFormatID:
|
|||||||
// Format variables in their text representation. Example in multi-variable scenario A + B + C.
|
// Format variables in their text representation. Example in multi-variable scenario A + B + C.
|
||||||
"text" |
|
"text" |
|
||||||
// Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.
|
// Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.
|
||||||
"queryparam" @cuetsy(kind="enum",memberNames="Lucene|Raw|Regex|Pipe|Distributed|CSV|HTML|JSON|PercentEncode|SingleQuote|DoubleQuote|SQLString|Date|Glob|Text|QueryParam")
|
"queryparam" @cuetsy(kind="enum",memberNames="Lucene|Raw|Regex|Pipe|Distributed|CSV|HTML|JSON|PercentEncode|UriEncode|SingleQuote|DoubleQuote|SQLString|Date|Glob|Text|QueryParam")
|
||||||
|
|||||||
Reference in New Issue
Block a user