From 9b283e650d88e872a9321878292abd69f7f1e0b7 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:37:12 +0300 Subject: [PATCH] [v11.1.x] Document Unix ms format for time type parsing (#89417) Co-authored-by: Jack Baldry Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com> Co-authored-by: Oleg Zaytsev --- .../query-transform-data/transform-data/index.md | 3 +++ public/app/features/transformers/docs/content.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md b/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md index 799215e8af0..6fea002628b 100644 --- a/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md +++ b/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md @@ -298,6 +298,9 @@ This transformation has the following options: - **Numeric** - attempts to make the values numbers - **String** - will make the values strings - **Time** - attempts to parse the values as time + - The input will be parsed according to the [Moment.js parsing format](https://momentjs.com/docs/#/parsing/) + - It will parse the numeric input as a Unix epoch timestamp in milliseconds. + You must multiply your input by 1000 if it's in seconds. - Will show an option to specify a DateFormat as input by a string like yyyy-mm-dd or DD MM YYYY hh:mm:ss - **Boolean** - will make the values booleans - **Enum** - will make the values enums diff --git a/public/app/features/transformers/docs/content.ts b/public/app/features/transformers/docs/content.ts index c5b76007973..582c92d4723 100644 --- a/public/app/features/transformers/docs/content.ts +++ b/public/app/features/transformers/docs/content.ts @@ -196,6 +196,9 @@ This transformation has the following options: - **Numeric** - attempts to make the values numbers - **String** - will make the values strings - **Time** - attempts to parse the values as time + - The input will be parsed according to the [Moment.js parsing format](https://momentjs.com/docs/#/parsing/) + - It will parse the numeric input as a Unix epoch timestamp in milliseconds. + You must multiply your input by 1000 if it's in seconds. - Will show an option to specify a DateFormat as input by a string like yyyy-mm-dd or DD MM YYYY hh:mm:ss - **Boolean** - will make the values booleans - **Enum** - will make the values enums