From dff3c88ca75059792155b4b5cfd02b3a4d3d568c Mon Sep 17 00:00:00 2001 From: dej611 Date: Tue, 26 Mar 2024 10:02:06 +0100 Subject: [PATCH] :pencil2: Update with one more example --- packages/kbn-lens-formula-docs/src/operations/time_range.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/kbn-lens-formula-docs/src/operations/time_range.ts b/packages/kbn-lens-formula-docs/src/operations/time_range.ts index 58107cbee1587..d1b86b729b23a 100644 --- a/packages/kbn-lens-formula-docs/src/operations/time_range.ts +++ b/packages/kbn-lens-formula-docs/src/operations/time_range.ts @@ -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\` `, }), });