docs: fix generic placeholder definitions for int and duration types (#20485)
Signed-off-by: J Stickler <julie.stickler@grafana.com> Co-authored-by: J Stickler <julie.stickler@grafana.com>
This commit is contained in:
@@ -67,8 +67,8 @@ Pass the `-config.expand-env` flag at the command line to enable this way of set
|
||||
### Generic placeholders
|
||||
|
||||
- `<boolean>` : a boolean that can take the values `true` or `false`
|
||||
- `<int>` : any integer matching the regular expression `[1-9]+[0-9]*`
|
||||
- `<duration>` : a duration matching the regular expression `[0-9]+(ns|us|µs|ms|[smh])`
|
||||
- `<int>` : A plain integer (for example, `0`, `1024`, `5000`) or a size in bytes with optional unit suffix (for example, `1024`, `256KB`, `64MB`, `4GB`). Supported units: `B`, `KB`, `MB`, `GB`, `TB`, `PB`, `EB`.
|
||||
- `<duration>` : a duration with required unit suffix. Supported units: `ms`, `s`, `m`, `h`, `d`, `w`, `y `(for example, `30s`, `5m`, `1h`, `1d`, `1w`). Note: `0` is allowed without a unit. Some fields using Go's native duration type may also support `ns` and `us`/`µs` but not `d`, `w`, `y`.
|
||||
- `<labelname>` : a string matching the regular expression `[a-zA-Z_][a-zA-Z0-9_]*`
|
||||
- `<labelvalue>` : a string of unicode characters
|
||||
- `<filename>` : a valid path relative to current working directory or an absolute path.
|
||||
|
||||
+2
-2
@@ -67,8 +67,8 @@ Pass the `-config.expand-env` flag at the command line to enable this way of set
|
||||
### Generic placeholders
|
||||
|
||||
- `<boolean>` : a boolean that can take the values `true` or `false`
|
||||
- `<int>` : any integer matching the regular expression `[1-9]+[0-9]*`
|
||||
- `<duration>` : a duration matching the regular expression `[0-9]+(ns|us|µs|ms|[smh])`
|
||||
- `<int>` : A plain integer (for example, `0`, `1024`, `5000`) or a size in bytes with optional unit suffix (for example, `1024`, `256KB`, `64MB`, `4GB`). Supported units: `B`, `KB`, `MB`, `GB`, `TB`, `PB`, `EB`.
|
||||
- `<duration>` : a duration with required unit suffix. Supported units: `ms`, `s`, `m`, `h`, `d`, `w`, `y `(for example, `30s`, `5m`, `1h`, `1d`, `1w`). Note: `0` is allowed without a unit. Some fields using Go's native duration type may also support `ns` and `us`/`µs` but not `d`, `w`, `y`.
|
||||
- `<labelname>` : a string matching the regular expression `[a-zA-Z_][a-zA-Z0-9_]*`
|
||||
- `<labelvalue>` : a string of unicode characters
|
||||
- `<filename>` : a valid path relative to current working directory or an absolute path.
|
||||
|
||||
Reference in New Issue
Block a user