mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Lens] Update time_range() function with an additional example (#179408)
## Summary Closes #164952 Apparently part of the task was already done via #173770 but the issue hasn't been updated. I've now added one more example just to show a practical usage of `time_range()` but the other 2 constant functions have already meaningful examples in place. ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
This commit is contained in:
parent
a64642b58c
commit
7a9ccbb6b2
1 changed files with 4 additions and 1 deletions
|
@ -21,8 +21,11 @@ export const timeRange = buildContextVariableDocumentationDefinition({
|
|||
defaultMessage: `
|
||||
The specified time range, in milliseconds (ms).
|
||||
|
||||
Example: How long is the current time range?
|
||||
Example: How long is the current time range in (ms)?
|
||||
\`time_range()\`
|
||||
|
||||
Example: A static average per minute computed with the current time range:
|
||||
\`(sum(bytes) / time_range()) * 1000 * 60\`
|
||||
`,
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue