From 6515a794134982a488148dd4d9b9e2a2988560e9 Mon Sep 17 00:00:00 2001 From: Daniel Moran Date: Tue, 16 Feb 2021 12:37:56 -0500 Subject: [PATCH] fix: update doc links to point at new site (#20754) --- CHANGELOG.md | 1 + README.md | 4 +- cmd/influx/config.go | 18 +- cmd/influx/template.go | 22 +- pkg/csv2lp/README.md | 4 +- pkg/csv2lp/data_conversion.go | 2 +- scripts/post-install.sh | 4 +- .../components/builder/HelpButton.tsx | 2 +- ui/src/buckets/components/BucketExplainer.tsx | 2 +- .../lineProtocol/LineProtocolHelperText.tsx | 2 +- ui/src/checks/components/CheckMessageCard.tsx | 2 +- ui/src/checks/components/ChecksColumn.tsx | 2 +- .../components/RateLimitAlertContent.tsx | 4 +- .../VariablesControlBar.tsx | 2 +- .../select/SelectCollectorsStep.tsx | 4 +- ui/src/me/components/Docs.tsx | 11 +- ui/src/me/components/Support.tsx | 5 +- .../endpoints/components/EndpointsColumn.tsx | 2 +- .../rules/components/RulesColumn.tsx | 2 +- ui/src/shared/constants/fluxFunctions.ts | 558 +++++++++--------- ui/src/shared/utils/fromFlux.newline.csv | 2 +- .../components/TelegrafExplainer.tsx | 2 +- ui/src/utils/lineWriter.ts | 2 +- .../telegrafPlugins/influxdb_v2_listener.md | 2 +- 24 files changed, 334 insertions(+), 327 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 565f149ae14..afb76adcac9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ 1. [20705](https://github.com/influxdata/influxdb/pull/20705): Repair swagger to match implementation of DBRPs type. 1. [19936](https://github.com/influxdata/influxdb/pull/19936): Fix use-after-free bug in series ID iterator. Thanks @foobar! 1. [20585](https://github.com/influxdata/influxdb/pull/20585): Fix TSM WAL segement size check. Thanks @foobar! +1. [20754](https://github.com/influxdata/influxdb/pull/20754): Update references to docs site to use current URLs. ## v2.0.4 [2021-02-08] diff --git a/README.md b/README.md index 8854cbac256..a3c10ff72b8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ InfluxDB is an open source time series platform. This includes APIs for storing and querying data, processing it in the background for ETL or monitoring and alerting purposes, user dashboards, and visualizing and exploring the data and more. The master branch on this repo now represents the latest InfluxDB, which now includes functionality for Kapacitor (background processing) and Chronograf (the UI) all in a single binary. -The list of InfluxDB Client Libraries that are compatible with the latest version can be found in [our documentation](https://v2.docs.influxdata.com/v2.0/reference/api/client-libraries/). +The list of InfluxDB Client Libraries that are compatible with the latest version can be found in [our documentation](https://docs.influxdata.com/influxdb/latest/tools/client-libraries/). If you are looking for the 1.x line of releases, there are branches for each minor version as well as a `master-1.x` branch that will contain the code for the next 1.x release. The master-1.x [working branch is here](https://github.com/influxdata/influxdb/tree/master-1.x). The [InfluxDB 1.x Go Client can be found here](https://github.com/influxdata/influxdb1-client). @@ -15,7 +15,7 @@ If you are interested in building from source, see the [building from source](CO ## Getting Started -For a complete getting started guide, please see our full [online documentation site](https://docs.influxdata.com/influxdb/v2.0/). +For a complete getting started guide, please see our full [online documentation site](https://docs.influxdata.com/influxdb/latest/). To write and query data or use the API in any way, you'll need to first create a user, credentials, organization and bucket. Everything in InfluxDB is organized under a concept of an organization. The API is designed to be multi-tenant. diff --git a/cmd/influx/config.go b/cmd/influx/config.go index 6a74f3a6a2f..8466194ac25 100644 --- a/cmd/influx/config.go +++ b/cmd/influx/config.go @@ -61,7 +61,7 @@ func (b *cmdConfigBuilder) cmd() *cobra.Command { to manually enter a token to log into InfluxDB. For information about the config command, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/ ` b.registerFilepath(cmd) @@ -124,9 +124,9 @@ func (b *cmdConfigBuilder) cmdCreate() *cobra.Command { influx config create -n $CFG_NAME -u $HOST_URL -t $TOKEN -o $ORG_NAME For information about the config command, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/create` + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/create/` b.registerFilepath(cmd) b.registerPrintFlags(cmd) @@ -177,9 +177,9 @@ func (b *cmdConfigBuilder) cmdDelete() *cobra.Command { influx config rm $CFG_NAME_1 $CFG_NAME_2 For information about the config command, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/remove` + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/rm/` b.registerPrintFlags(cmd) cmd.Flags().StringVarP(&b.name, "name", "n", "", "The config name (required)") @@ -229,9 +229,9 @@ func (b *cmdConfigBuilder) cmdUpdate() *cobra.Command { influx config set -n $CFG_NAME -u $HOST_URL -t $TOKEN -o $ORG_NAME For information about the config command, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/set` + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/set/` b.registerPrintFlags(cmd) b.registerConfigSettingFlags(cmd) @@ -282,9 +282,9 @@ func (b *cmdConfigBuilder) cmdList() *cobra.Command { influx config list For information about the config command, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/list` + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/config/list/` b.registerPrintFlags(cmd) return cmd } diff --git a/cmd/influx/template.go b/cmd/influx/template.go index 3cda99a4e1c..68aaa01a0db 100644 --- a/cmd/influx/template.go +++ b/cmd/influx/template.go @@ -166,7 +166,7 @@ func (b *cmdTemplateBuilder) cmdApply() *cobra.Command { --filter resource=Dashboard:$DASHBOARD_TMPL_NAME For information about finding and using InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/apply/. + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/apply/. For more templates created by the community, see https://github.com/influxdata/community-templates. @@ -343,7 +343,7 @@ func (b *cmdTemplateBuilder) cmdExport() *cobra.Command { resource flag and then provide the IDs. For information about exporting InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/export/ + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/ ` cmd.AddCommand( b.cmdExportAll(), @@ -472,9 +472,9 @@ func (b *cmdTemplateBuilder) cmdExportAll() *cobra.Command { --filter=labelName=Foo For information about exporting InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/export + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/export/all + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/all/ ` cmd.Flags().StringVarP(&b.file, "file", "f", "", "output file for created template; defaults to std out if no file provided; the extension of provided file (.yml/.json) will dictate encoding") @@ -540,9 +540,9 @@ func (b *cmdTemplateBuilder) cmdExportStack() *cobra.Command { influx export stack $STACK_ID For information about exporting InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/export + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/export/stack/ + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/stack/ ` cmd.Args = cobra.ExactValidArgs(1) @@ -638,7 +638,7 @@ func (b *cmdTemplateBuilder) cmdStacks() *cobra.Command { influx stacks --stack-id=$STACK_ID --stack-name=$STACK_NAME For information about Stacks and how they integrate with InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/stacks + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/stacks/ ` cmd.AddCommand( @@ -667,9 +667,9 @@ func (b *cmdTemplateBuilder) cmdStackInit() *cobra.Command { influx stacks init -n $STACK_NAME -u $PATH_TO_TEMPLATE For information about how stacks work with InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/stacks/ + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/stacks/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/stacks/init/ + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/stacks/init/ ` cmd.Flags().StringVarP(&b.name, "stack-name", "n", "", "Name given to created stack") @@ -860,9 +860,9 @@ func (b *cmdTemplateBuilder) cmdStackUpdate() *cobra.Command { --export-file /path/to/file.yml For information about how stacks work with InfluxDB templates, see - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/stacks + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/stacks/ and - https://v2.docs.influxdata.com/v2.0/reference/cli/influx/stacks/update/ + https://docs.influxdata.com/influxdb/latest/reference/cli/influx/stacks/update/ ` cmd.Flags().StringVarP(&b.stackID, "stack-id", "i", "", "ID of stack") diff --git a/pkg/csv2lp/README.md b/pkg/csv2lp/README.md index 8249243ceda..b522e33e1e7 100644 --- a/pkg/csv2lp/README.md +++ b/pkg/csv2lp/README.md @@ -125,10 +125,10 @@ test available=false 4 test available=true 5 ``` ## CSV Data On Input -This library supports all the concepts of [flux result annotated CSV](https://v2.docs.influxdata.com/v2.0/reference/syntax/annotated-csv/#tables) and provides a few extensions that allow to process existing/custom CSV files. The conversion to line protocol is driven by contents of annotation rows and layout of the header row. +This library supports all the concepts of [flux result annotated CSV](https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/#tables) and provides a few extensions that allow to process existing/custom CSV files. The conversion to line protocol is driven by contents of annotation rows and layout of the header row. #### New data types -Existing [data types](https://v2.docs.influxdata.com/v2.0/reference/syntax/annotated-csv/#data-types) are supported. The CSV input can also contain the following data types that are used to associate a column value to a part of a protocol line +Existing [data types](https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/#data-types) are supported. The CSV input can also contain the following data types that are used to associate a column value to a part of a protocol line - `measurement` data type identifies a column that carries the measurement name - `tag` data type identifies a column with a tag value, column label (from the header row) is the tag name - `time` is an alias for existing `dateTime` type , there is at most one such column in a CSV row diff --git a/pkg/csv2lp/data_conversion.go b/pkg/csv2lp/data_conversion.go index 8544ae02267..b0041572e2f 100644 --- a/pkg/csv2lp/data_conversion.go +++ b/pkg/csv2lp/data_conversion.go @@ -14,7 +14,7 @@ import ( "golang.org/x/text/encoding/ianaindex" ) -// see https://v2.docs.influxdata.com/v2.0/reference/syntax/annotated-csv/#valid-data-types +// see https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/#data-types const ( stringDatatype = "string" doubleDatatype = "double" diff --git a/scripts/post-install.sh b/scripts/post-install.sh index c6b3480fc78..e78fddfd48e 100644 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -60,10 +60,10 @@ upgrade, execute the following: sudo /usr/share/influxdb/influxdb2-upgrade.sh Visit our website for complete details on the v1 to v2 upgrade process: -https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/ +https://docs.influxdata.com/influxdb/latest/upgrade/v1-to-v2/ For new or upgrade installations, please review the getting started guide: -https://docs.influxdata.com/influxdb/v2.0/get-started/ +https://docs.influxdata.com/influxdb/latest/get-started/ EOF } diff --git a/ui/src/alerting/components/builder/HelpButton.tsx b/ui/src/alerting/components/builder/HelpButton.tsx index 1d2643b3530..ec992f9da30 100644 --- a/ui/src/alerting/components/builder/HelpButton.tsx +++ b/ui/src/alerting/components/builder/HelpButton.tsx @@ -7,7 +7,7 @@ import {Button} from '@influxdata/clockface' const HelpButton: FunctionComponent = () => { const handleClick = () => { const newTab = window.open( - 'https://v2.docs.influxdata.com/v2.0/monitor-alert/checks/create/#configure-the-check' + 'https://docs.influxdata.com/influxdb/latest/monitor-alert/checks/create/#configure-the-check' ) newTab.focus() } diff --git a/ui/src/buckets/components/BucketExplainer.tsx b/ui/src/buckets/components/BucketExplainer.tsx index 29cfb3c21c5..0943743c9c7 100644 --- a/ui/src/buckets/components/BucketExplainer.tsx +++ b/ui/src/buckets/components/BucketExplainer.tsx @@ -18,7 +18,7 @@ const BucketExplainer: FunctionComponent = () => (
Here's{' '} how to write data diff --git a/ui/src/buckets/components/lineProtocol/LineProtocolHelperText.tsx b/ui/src/buckets/components/lineProtocol/LineProtocolHelperText.tsx index c4aaf462a1e..8edb273e4c3 100644 --- a/ui/src/buckets/components/lineProtocol/LineProtocolHelperText.tsx +++ b/ui/src/buckets/components/lineProtocol/LineProtocolHelperText.tsx @@ -6,7 +6,7 @@ const LineProtocolHelperText: FC<{}> = () => {

Need help writing InfluxDB Line Protocol?{' '} See Documentation diff --git a/ui/src/checks/components/CheckMessageCard.tsx b/ui/src/checks/components/CheckMessageCard.tsx index 0ce633d5577..8e88238f8b4 100644 --- a/ui/src/checks/components/CheckMessageCard.tsx +++ b/ui/src/checks/components/CheckMessageCard.tsx @@ -72,7 +72,7 @@ const CheckMessageCard: FC = ({

Need help? Check out the Status Message Template{' '} Documentation diff --git a/ui/src/checks/components/ChecksColumn.tsx b/ui/src/checks/components/ChecksColumn.tsx index 51d346595b1..d5c986f418b 100644 --- a/ui/src/checks/components/ChecksColumn.tsx +++ b/ui/src/checks/components/ChecksColumn.tsx @@ -62,7 +62,7 @@ const ChecksColumn: FunctionComponent = ({

Read Documentation diff --git a/ui/src/cloud/components/RateLimitAlertContent.tsx b/ui/src/cloud/components/RateLimitAlertContent.tsx index ad7b04f137d..970d1298a54 100644 --- a/ui/src/cloud/components/RateLimitAlertContent.tsx +++ b/ui/src/cloud/components/RateLimitAlertContent.tsx @@ -44,7 +44,7 @@ const RateLimitAlertContent: FC = ({showUpgrade, className}) => { You've reached the maximum{' '} series cardinality @@ -66,7 +66,7 @@ const RateLimitAlertContent: FC = ({showUpgrade, className}) => { You've reached the maximum{' '} series cardinality diff --git a/ui/src/dashboards/components/variablesControlBar/VariablesControlBar.tsx b/ui/src/dashboards/components/variablesControlBar/VariablesControlBar.tsx index 25a84ef2ecd..f15a7f910da 100644 --- a/ui/src/dashboards/components/variablesControlBar/VariablesControlBar.tsx +++ b/ui/src/dashboards/components/variablesControlBar/VariablesControlBar.tsx @@ -85,7 +85,7 @@ class VariablesControlBar extends PureComponent { This dashboard doesn't have any cells with defined variables.{' '} Learn How diff --git a/ui/src/dataLoaders/components/collectorsWizard/select/SelectCollectorsStep.tsx b/ui/src/dataLoaders/components/collectorsWizard/select/SelectCollectorsStep.tsx index 8502f5740a0..b1305b13bbc 100644 --- a/ui/src/dataLoaders/components/collectorsWizard/select/SelectCollectorsStep.tsx +++ b/ui/src/dataLoaders/components/collectorsWizard/select/SelectCollectorsStep.tsx @@ -61,14 +61,14 @@ export class SelectCollectorsStep extends PureComponent {

Looking for other things to monitor? Check out our 200+ other   Telegraf Plugins   and how to   Configure these Plugins diff --git a/ui/src/me/components/Docs.tsx b/ui/src/me/components/Docs.tsx index 562dcb9b438..152125ee5ee 100644 --- a/ui/src/me/components/Docs.tsx +++ b/ui/src/me/components/Docs.tsx @@ -6,19 +6,22 @@ import {Panel} from '@influxdata/clockface' const supportLinks = [ { - link: 'https://v2.docs.influxdata.com/v2.0/query-data/get-started/', + link: 'https://docs.influxdata.com/influxdb/latest/query-data/get-started/', title: 'Get Started with Flux', }, { - link: 'https://v2.docs.influxdata.com/v2.0/visualize-data/explore-metrics/', + link: + 'https://docs.influxdata.com/influxdb/latest/query-data/execute-queries/data-explorer/', title: 'Explore Metrics', }, { - link: 'https://v2.docs.influxdata.com/v2.0/visualize-data/dashboards/', + link: + 'https://docs.influxdata.com/influxdb/latest/visualize-data/dashboards/', title: 'Build a Dashboard', }, { - link: 'https://v2.docs.influxdata.com/v2.0/process-data/write-a-task/', + link: + 'https://docs.influxdata.com/influxdb/latest/process-data/get-started/', title: 'Write a Task', }, ] diff --git a/ui/src/me/components/Support.tsx b/ui/src/me/components/Support.tsx index cd5119d886e..5f5f2fe8ebb 100644 --- a/ui/src/me/components/Support.tsx +++ b/ui/src/me/components/Support.tsx @@ -2,7 +2,10 @@ import React, {PureComponent} from 'react' const supportLinks = [ - {link: 'https://v2.docs.influxdata.com/v2.0/', title: '📜 Documentation'}, + { + link: 'https://docs.influxdata.com/influxdb/latest/', + title: '📜 Documentation', + }, {link: 'https://community.influxdata.com', title: '💭 Community Forum'}, { link: diff --git a/ui/src/notifications/endpoints/components/EndpointsColumn.tsx b/ui/src/notifications/endpoints/components/EndpointsColumn.tsx index 6ed38cb3cb8..b3391254b0c 100644 --- a/ui/src/notifications/endpoints/components/EndpointsColumn.tsx +++ b/ui/src/notifications/endpoints/components/EndpointsColumn.tsx @@ -43,7 +43,7 @@ const EndpointsColumn: FC = ({history, match, endpoints, tabIndex}) => {

Read Documentation diff --git a/ui/src/notifications/rules/components/RulesColumn.tsx b/ui/src/notifications/rules/components/RulesColumn.tsx index c95cbb67297..dff615c11d0 100644 --- a/ui/src/notifications/rules/components/RulesColumn.tsx +++ b/ui/src/notifications/rules/components/RulesColumn.tsx @@ -59,7 +59,7 @@ const NotificationRulesColumn: FunctionComponent = ({

Read Documentation diff --git a/ui/src/shared/constants/fluxFunctions.ts b/ui/src/shared/constants/fluxFunctions.ts index 150e892b5d5..7ce3bec222a 100644 --- a/ui/src/shared/constants/fluxFunctions.ts +++ b/ui/src/shared/constants/fluxFunctions.ts @@ -44,7 +44,7 @@ export const FROM: FluxToolbarFunction = { example: 'from(bucket: "example-bucket")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/inputs/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/inputs/from/', } export const RANGE: FluxToolbarFunction = { @@ -67,7 +67,7 @@ export const RANGE: FluxToolbarFunction = { example: 'range(start: -15m, stop: now())', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/range/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/range/', } export const MEAN: FluxToolbarFunction = { @@ -84,7 +84,7 @@ export const MEAN: FluxToolbarFunction = { example: 'mean(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/mean/', } export const UNION: FluxToolbarFunction = { @@ -103,7 +103,7 @@ export const UNION: FluxToolbarFunction = { example: 'union(tables: [table1, table2])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/union/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/union/', } export const MATH_ABS: FluxToolbarFunction = { @@ -120,7 +120,7 @@ export const MATH_ABS: FluxToolbarFunction = { example: 'math.abs(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/abs/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/abs/', } export const MATH_FLOOR: FluxToolbarFunction = { @@ -137,7 +137,7 @@ export const MATH_FLOOR: FluxToolbarFunction = { example: 'math.floor(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/floor/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/floor/', } export const STRINGS_TITLE: FluxToolbarFunction = { @@ -154,7 +154,7 @@ export const STRINGS_TITLE: FluxToolbarFunction = { example: 'strings.title(v: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/title/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/title/', } export const STRINGS_TRIM: FluxToolbarFunction = { @@ -177,7 +177,7 @@ export const STRINGS_TRIM: FluxToolbarFunction = { example: 'strings.trim(v: r._value, cutset: "_")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trim/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trim/', } export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ @@ -206,7 +206,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'aggregate.rate(every: 1m, unit: 1s)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/aggregate/rate/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/aggregate/rate/', }, { name: 'aggregateWindow', @@ -250,7 +250,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'aggregateWindow(every: v.windowPeriod, fn: mean)', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/', }, { name: 'array.from', @@ -267,7 +267,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'array.from(rows: [{_time: 2020-01-01T00:00:00Z, _value: "foo"},{_time: 2020-01-02T00:00:00Z, _value: "bar"}])', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/array/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/array/from/', }, { name: 'bigtable.from', @@ -302,7 +302,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'bigtable.from(token: "mySuPeRseCretTokEn", project: "exampleProjectID", instance: "exampleInstanceID", table: "example-table")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/bigtable/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/bigtable/from/', }, { name: 'bool', @@ -318,7 +318,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'bool(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bool/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/bool/', }, { name: 'bottom', @@ -340,7 +340,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'bottom(n:10, columns: ["_value"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/bottom/', }, { name: 'buckets', @@ -350,7 +350,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'buckets()', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/inputs/buckets/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/inputs/buckets/', }, { name: 'bytes', @@ -366,7 +366,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'bytes(t: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bytes/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/bytes/', }, { name: 'chandeMomentumOscillator', @@ -388,7 +388,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'chandeMomentumOscillator(n: 10)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/chandemomentumoscillator/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/chandemomentumoscillator/', }, { name: 'columns', @@ -405,7 +405,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'columns(column: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/columns/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/columns/', }, { name: 'contains', @@ -426,7 +426,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'contains(value: 1, set: [1,2,3])', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/tests/contains/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/tests/contains/', }, { name: 'count', @@ -442,7 +442,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'count(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/count/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/count/', }, { name: 'cov', @@ -476,7 +476,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'cov(x: table1, y: table2, on: ["_time", "_field"], pearsonr: false)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/cov/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/cov/', }, { name: 'covariance', @@ -506,7 +506,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'covariance(columns: ["column_x", "column_y"], pearsonr: false, valueDst: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/covariance/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/covariance/', }, { name: 'csv.from', @@ -528,7 +528,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'csv.from(csv: csvData)', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/csv/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/csv/from/', }, { name: 'csv.from', @@ -544,7 +544,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'csv.from(url: "http://example.com/data.csv")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/csv/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/csv/from/', }, { name: 'cumulativeSum', @@ -562,7 +562,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'cumulativeSum(columns: ["_value"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/cumulativesum/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/cumulativesum/', }, { name: 'date.hour', @@ -578,7 +578,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.hour(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/hour/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/hour/', }, { name: 'date.microsecond', @@ -595,7 +595,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.microsecond(t: 2019-07-17T12:05:21.012934584Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/microsecond/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/microsecond/', }, { name: 'date.millisecond', @@ -612,7 +612,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.millisecond(t: 2019-07-17T12:05:21.012934584Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/millisecond/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/millisecond/', }, { name: 'date.minute', @@ -629,7 +629,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.minute(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/minute/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/minute/', }, { name: 'date.month', @@ -645,7 +645,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.month(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/month/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/month/', }, { name: 'date.monthDay', @@ -662,7 +662,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.monthDay(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/monthday/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/monthday/', }, { name: 'date.nanosecond', @@ -679,7 +679,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.nanosecond(t: 2019-07-17T12:05:21.012934584Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/nanosecond/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/nanosecond/', }, { name: 'date.quarter', @@ -696,7 +696,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.quarter(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/quarter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/quarter/', }, { name: 'date.second', @@ -713,7 +713,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.second(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/second/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/second/', }, { name: 'date.truncate', @@ -736,7 +736,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.truncate(t: 2019-07-17T12:05:21.012Z, unit: 1s)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/truncate/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/truncate/', }, { name: 'date.week', @@ -753,7 +753,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.week(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/week/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/week/', }, { name: 'date.weekDay', @@ -770,7 +770,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.weekDay(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/weekday/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/weekday/', }, { name: 'date.year', @@ -786,7 +786,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.year(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/year/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/year/', }, { name: 'date.yearDay', @@ -803,7 +803,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'date.yearDay(t: 2019-07-17T12:05:21.012Z)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/yearday/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/date/yearday/', }, { name: 'derivative', @@ -838,7 +838,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'derivative(unit: 1s, nonNegative: true, columns: ["_value"], timeColumn: "_time")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/derivative/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/derivative/', }, { name: 'difference', @@ -868,7 +868,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'difference(nonNegative: false, columns: ["_value"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/difference/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/difference/', }, { name: 'distinct', @@ -884,7 +884,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'distinct(column: "host")', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/distinct/', }, { name: 'doubleEMA', @@ -901,7 +901,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'doubleEMA(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/doubleema/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/doubleema/', }, { name: 'drop', @@ -925,7 +925,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'drop(columns: ["col1", "col2"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/drop/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/drop/', }, { name: 'duplicate', @@ -946,7 +946,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'duplicate(column: "column-name", as: "duplicate-name")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/duplicate/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/duplicate/', }, { name: 'duration', @@ -962,7 +962,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'duration(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/duration/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/duration/', }, { name: 'experimental.addDuration', @@ -984,7 +984,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.addDuration(d: 12h, to: now())', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/addduration/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/addduration/', }, { name: 'experimental.alignTime', @@ -1000,7 +1000,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.alignTime(alignTo: v.timeRangeStart)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/aligntime/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/aligntime/', }, { name: 'experimental.chain', @@ -1022,7 +1022,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.chain(first: query1, second: query2)', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/chain/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/chain/', }, { name: 'experimental.group', @@ -1046,7 +1046,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'experimental.group(columns: ["host", "_measurement"], mode: "extend")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/group/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/group/', }, { name: 'experimental.join', @@ -1075,7 +1075,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'experimental.join(left: left, right: right, fn: (left, right) => ({left with lv: left._value, rv: right._value }))', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/join/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/join/', }, { name: 'experimental.objectKeys', @@ -1091,7 +1091,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.objectKeys(o: {key1: "value1", key2: "value2"})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/objectkeys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/objectkeys/', }, { name: 'experimental.set', @@ -1107,7 +1107,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.set(o: {column1: "value1", column2: "value2"})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/set/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/set/', }, { name: 'experimental.subDuration', @@ -1129,7 +1129,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.subDuration(d: 12h, from: now())', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/subduration/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/subduration/', }, { name: 'experimental.to', @@ -1165,7 +1165,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'experimental.to(bucket: "example-bucket", org: "example-org")', category: 'Outputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/to/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/to/', }, { name: 'elapsed', @@ -1192,7 +1192,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'elapsed(unit: 1s)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/elapsed/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/elapsed/', }, { name: 'exponentialMovingAverage', @@ -1209,7 +1209,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'exponentialMovingAverage(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/', }, { name: 'fill', @@ -1238,7 +1238,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'fill(column: "_value", usePrevious: true)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/fill/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/fill/', }, { name: 'filter', @@ -1262,7 +1262,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'filter(fn: (r) => r._measurement == "cpu")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/filter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/filter/', }, { name: 'findColumn', @@ -1284,7 +1284,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'findColumn(fn: (key) => key.host == "host1", column: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/findcolumn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stream-table/findcolumn/', }, { name: 'findRecord', @@ -1306,7 +1306,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'findRecord(fn: (key) => key.host == "host1", idx: 0)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/findrecord/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stream-table/findrecord/', }, { name: 'first', @@ -1316,7 +1316,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'first()', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/first/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/first/', }, { name: 'float', @@ -1332,7 +1332,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'float(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/float/', }, FROM, { @@ -1355,7 +1355,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'geo.asTracks(groupBy: ["id","tid"], orderBy: ["_time"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/astracks/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/astracks/', }, { name: 'geo.filterRows', @@ -1400,7 +1400,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.filterRows(region: {lat: 37.7858229, lon: -122.4058124, radius: 20.0}, strict: true)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/filterrows/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/filterrows/', }, { name: 'geo.gridFilter', @@ -1440,7 +1440,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.gridFilter(region: {lat: 37.7858229, lon: -122.4058124, radius: 20.0})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/gridfilter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/gridfilter/', }, { name: 'geo.groupByArea', @@ -1468,7 +1468,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'geo.groupByArea(newColumn: "geoArea", level: 10)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/groupbyarea/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/groupbyarea/', }, { name: 'geo.s2CellIDToken', @@ -1496,7 +1496,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.s2CellIDToken(point: {lat: 37.7858229, lon: -122.4058124}, level: 10)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/s2cellidtoken/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/s2cellidtoken/', }, { name: 'geo.s2CellLatLon', @@ -1512,7 +1512,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'geo.s2CellLatLon(token: "89c284")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/s2celllatlon/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/s2celllatlon/', }, { name: 'geo.shapeData', @@ -1540,7 +1540,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.shapeData(latField: "latitude", lonField: "longitude", level: 10)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/shapedata/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/shapedata/', }, { name: 'geo.ST_Contains', @@ -1563,7 +1563,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.ST_Contains(region: {lat: 40.7, lon: -73.3, radius: 20.0}, geometry: {lon: 39.7515, lat: 15.08433})', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_contains/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_contains/', }, { name: 'geo.ST_Distance', @@ -1586,7 +1586,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.ST_Distance(region: {lat: 40.7, lon: -73.3, radius: 20.0}, geometry: {lon: 39.7515, lat: 15.08433})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_distance/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_distance/', }, { name: 'geo.ST_DWithin', @@ -1614,7 +1614,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.ST_DWithin(region: {lat: 40.7, lon: -73.3, radius: 20.0}, geometry: {lon: 39.7515, lat: 15.08433}, distance: 1000.0)', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_dwithin/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_dwithin/', }, { name: 'geo.ST_Intersects', @@ -1637,7 +1637,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.ST_Intersects(region: {lat: 40.7, lon: -73.3, radius: 20.0}, geometry: {linestring: "39.7515 14.01433, 38.3527 13.9228, 36.9978 15.08433"})', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_intersects/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_intersects/', }, { name: 'geo.ST_Length', @@ -1655,7 +1655,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.ST_Length(geometry: {linestring: "39.7515 14.01433, 38.3527 13.9228, 36.9978 15.08433"})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_length/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_length/', }, { name: 'geo.ST_LineString', @@ -1665,7 +1665,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'geo.ST_LineString()', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/st_linestring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/st_linestring/', }, { name: 'geo.strictFilter', @@ -1682,7 +1682,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'geo.strictFilter(region: {lat: 37.7858229, lon: -122.4058124, radius: 20.0})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/strictfilter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/strictfilter/', }, { name: 'geo.toRows', @@ -1693,7 +1693,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'geo.toRows(correlationKey: ["_time"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/torows/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/geo/torows/', }, { name: 'getColumn', @@ -1710,7 +1710,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'getColumn(column: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn/', }, { name: 'getRecord', @@ -1727,7 +1727,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'getRecord(idx: 0)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stream-table/getrecord/', }, { name: 'group', @@ -1751,7 +1751,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'group(columns: ["host", "_measurement"], mode:"by")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/group/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/group/', }, { name: 'highestAverage', @@ -1779,7 +1779,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'highestAverage(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/highestaverage/', }, { name: 'highestCurrent', @@ -1807,7 +1807,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'highestCurrent(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent/', }, { name: 'highestMax', @@ -1835,7 +1835,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'highestMax(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/highestmax/', }, { name: 'histogram', @@ -1878,7 +1878,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'histogram(column: "_value", upperBoundColumn: "le", countColumn: "_value", bins: [50.0, 75.0, 90.0], normalize: false)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/histogram/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/histogram/', }, { name: 'histogramQuantile', @@ -1921,7 +1921,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'histogramQuantile(quantile: 0.5, countColumn: "_value", upperBoundColumn: "le", valueColumn: "_value", minValue: 0.0)', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/histogramquantile/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/histogramquantile/', }, { name: 'holtWinters', @@ -1964,7 +1964,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'holtWinters(n: 10, interval: 1d)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/holtwinters/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/holtwinters/', }, { name: 'hourSelection', @@ -1993,7 +1993,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'hourSelection(start: 9, stop: 17)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/hourselection/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/hourselection/', }, { name: 'http.get', @@ -2018,10 +2018,10 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ desc: 'Submits an HTTP GET request to the specified URL and returns the HTTP status code, response body, and response headers.', example: - 'http.get(url: "https://docs.influxdata.com/influxdb/v2.0/", headers: {foo: "bar"})', + 'http.get(url: "https://docs.influxdata.com/influxdb/latest/", headers: {foo: "bar"})', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/http/get/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/http/get/', }, { name: 'http.pathEscape', @@ -2038,7 +2038,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'http.pathEscape(inputString: "/this/is/an/example-path.html")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/http/pathescape/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/http/pathescape/', }, { name: 'http.post', @@ -2066,7 +2066,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'http.post(url: "http://localhost:9999/", headers: {x:"a", y:"b"}, data: bytes(v: "body"))', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/http/post/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/http/post/', }, { name: 'increase', @@ -2084,7 +2084,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'increase(columns: ["_value"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/increase/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/increase/', }, { name: 'influxdb.cardinality', @@ -2141,7 +2141,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'influxdb.cardinality(bucket: "example-bucket", start: -1h)', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb/cardinality/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb/cardinality/', }, { name: 'int', @@ -2157,7 +2157,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'int(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/int/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/int/', }, { name: 'integral', @@ -2190,7 +2190,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'integral(unit: 10s, column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/integral/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/integral/', }, { name: 'join', @@ -2219,7 +2219,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'join(tables: {key1: table1, key2: table2}, on: ["_time", "_field"], method: "inner")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/join/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/join/', }, { name: 'json.encode', @@ -2235,7 +2235,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'json.encode(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/json/encode/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/json/encode/', }, { name: 'kaufmansAMA', @@ -2257,7 +2257,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'kaufmansAMA(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/kaufmansama/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/kaufmansama/', }, { name: 'kaufmansER', @@ -2274,7 +2274,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'kaufmansER(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/kaufmanser/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/kaufmanser/', }, { name: 'keep', @@ -2298,7 +2298,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'keep(columns: ["col1", "col2"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/keep/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/keep/', }, { name: 'keys', @@ -2316,7 +2316,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'keys(column: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/keys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/keys/', }, { name: 'keyValues', @@ -2334,7 +2334,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'keyValues(keyColumns: ["usage_idle", "usage_user"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/keyvalues/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/keyvalues/', }, { name: 'last', @@ -2344,7 +2344,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'last()', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/last/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/last/', }, { name: 'length', @@ -2360,7 +2360,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'length(arr: ["john"])', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/misc/length/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/misc/length/', }, { name: 'limit', @@ -2383,7 +2383,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'limit(n:10, offset: 0)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/limit/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/limit/', }, { name: 'linearBins', @@ -2415,7 +2415,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'linearBins(start: 0.0, width: 5.0, count: 20, infinity: true)', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/misc/linearbins/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/misc/linearbins/', }, { name: 'logarithmicBins', @@ -2448,7 +2448,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'logarithmicBins(start: 1.0, factor: 2.0, count: 10, infinity: true)', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/misc/logarithmicbins/', }, { name: 'lowestAverage', @@ -2476,7 +2476,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'lowestAverage(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage/', }, { name: 'lowestCurrent', @@ -2504,7 +2504,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'lowestCurrent(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent/', }, { name: 'lowestMin', @@ -2532,7 +2532,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'lowestMin(n:10, groupColumns: ["host"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/lowestmin/', }, { name: 'map', @@ -2549,7 +2549,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'map(fn: (r) => ({ r with _value: r._value * r._value }))', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/map/', }, MATH_ABS, { @@ -2566,7 +2566,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.acos(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/acos/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/acos/', }, { name: 'math.acosh', @@ -2582,7 +2582,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.acosh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/acosh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/acosh/', }, { name: 'math.asin', @@ -2599,7 +2599,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.asin(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/asin/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/asin/', }, { name: 'math.asinh', @@ -2615,7 +2615,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.asinh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/asinh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/asinh/', }, { name: 'math.atan', @@ -2631,7 +2631,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.atan(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/atan/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/atan/', }, { name: 'math.atan2', @@ -2653,7 +2653,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.atan2(y: r.y_coord, x: r.x_coord)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/atan2/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/atan2/', }, { name: 'math.atanh', @@ -2670,7 +2670,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.atanh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/atanh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/atanh/', }, { name: 'math.cbrt', @@ -2686,7 +2686,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.cbrt(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/cbrt/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/cbrt/', }, { name: 'math.ceil', @@ -2702,7 +2702,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.ceil(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/ceil/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/ceil/', }, { name: 'math.copysign', @@ -2723,7 +2723,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.copysign(x: r._magnitude, r._sign)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/copysign/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/copysign/', }, { name: 'math.cos', @@ -2739,7 +2739,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.cos(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/cos/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/cos/', }, { name: 'math.cosh', @@ -2755,7 +2755,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.cosh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/cosh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/cosh/', }, { name: 'math.dim', @@ -2776,7 +2776,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.dim(x: r._value1, y: r._value2)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/dim/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/dim/', }, { name: 'math.erf', @@ -2792,7 +2792,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.erf(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/erf/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/erf/', }, { name: 'math.erfc', @@ -2808,7 +2808,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.erfc(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/erfc/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/erfc/', }, { name: 'math.erfcinv', @@ -2825,7 +2825,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.erfcinv(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/erfcinv/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/erfcinv/', }, { name: 'math.erfinv', @@ -2842,7 +2842,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.erfinv(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/erfinv/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/erfinv/', }, { name: 'math.exp', @@ -2858,7 +2858,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.exp(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/exp/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/exp/', }, { name: 'math.exp2', @@ -2874,7 +2874,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.exp2(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/exp2/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/exp2/', }, { name: 'math.expm1', @@ -2890,7 +2890,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.expm1(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/expm1/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/expm1/', }, { name: 'math.float64bits', @@ -2907,7 +2907,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.float64bits(f: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/float64bits/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/float64bits/', }, MATH_FLOOR, { @@ -2924,7 +2924,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.frexp(f: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/frexp/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/frexp/', }, { name: 'math.gamma', @@ -2940,7 +2940,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.gamma(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/gamma/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/gamma/', }, { name: 'math.hypot', @@ -2962,7 +2962,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.hypot(p: r.opp, p: r.adj)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/hypot/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/hypot/', }, { name: 'math.ilogb', @@ -2978,7 +2978,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.ilogb(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/ilogb/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/ilogb/', }, { name: 'math.isInf', @@ -2999,7 +2999,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.isInf(f: r._value, sign: r.sign)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/isinf/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/isinf/', }, { name: 'math.isNaN', @@ -3015,7 +3015,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.isNaN(f: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/isnan/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/isnan/', }, { name: 'math.j0', @@ -3031,7 +3031,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.j0(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/j0/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/j0/', }, { name: 'math.j1', @@ -3047,7 +3047,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.j1(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/j1/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/j1/', }, { name: 'math.jn', @@ -3068,7 +3068,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.jn(n: 2, x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/jn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/jn/', }, { name: 'math.ldexp', @@ -3089,7 +3089,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.ldexp(frac: r.frac, exp: r.exp)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/ldexp/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/ldexp/', }, { name: 'math.lgamma', @@ -3106,7 +3106,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.lgamma(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/lgamma/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/lgamma/', }, { name: 'math.log', @@ -3122,7 +3122,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.log(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/log/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/log/', }, { name: 'math.log1p', @@ -3138,7 +3138,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.log1p(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/log1p/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/log1p/', }, { name: 'math.log2', @@ -3154,7 +3154,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.log2(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/log2/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/log2/', }, { name: 'math.logb', @@ -3170,7 +3170,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.logb(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/logb/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/logb/', }, { name: 'math.mInf', @@ -3187,7 +3187,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.mInf(sign: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/minf/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/minf/', }, { name: 'math.mMax', @@ -3208,7 +3208,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.mMax(x: r.x_value, y: r.y_value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/mmax/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/mmax/', }, { name: 'math.mMin', @@ -3229,7 +3229,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.mMin(x: r.x_value, y: r.y_value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/mmin/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/mmin/', }, { name: 'math.mod', @@ -3250,7 +3250,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.mod(x: r.x_value, y: r.y_value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/mod/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/mod/', }, { name: 'math.modf', @@ -3267,7 +3267,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.modf(f: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/modf/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/modf/', }, { name: 'math.NaN', @@ -3277,7 +3277,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.NaN()', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/nan/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/nan/', }, { name: 'math.nextafter', @@ -3298,7 +3298,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.nextafter(x: r.x_value, y: r.y_value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/nextafter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/nextafter/', }, { name: 'math.pow', @@ -3319,7 +3319,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.pow(x: r.x_value, y: r.y_value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/pow/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/pow/', }, { name: 'math.pow10', @@ -3335,7 +3335,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.pow10(n: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/pow10/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/pow10/', }, { name: 'math.remainder', @@ -3356,7 +3356,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.remainder(x: r.numerator, y: r.denominator)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/remainder/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/remainder/', }, { name: 'math.round', @@ -3372,7 +3372,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.round(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/round/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/round/', }, { name: 'math.roundtoeven', @@ -3388,7 +3388,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.roundtoeven(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/roundtoeven/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/roundtoeven/', }, { name: 'math.signbit', @@ -3404,7 +3404,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.signbit(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/signbit/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/signbit/', }, { name: 'math.sin', @@ -3420,7 +3420,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.sin(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/sin/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/sin/', }, { name: 'math.sincos', @@ -3436,7 +3436,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.sincos(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/sincos/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/sincos/', }, { name: 'math.sinh', @@ -3452,7 +3452,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.sinh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/sinh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/sinh/', }, { name: 'math.sqrt', @@ -3468,7 +3468,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.sqrt(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/sqrt/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/sqrt/', }, { name: 'math.tan', @@ -3484,7 +3484,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.tan(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/tan/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/tan/', }, { name: 'math.tanh', @@ -3500,7 +3500,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.tanh(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/tanh/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/tanh/', }, { name: 'math.trunc', @@ -3516,7 +3516,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.trunc(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/trunc/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/trunc/', }, { name: 'math.y0', @@ -3532,7 +3532,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.y0(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/y0/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/y0/', }, { name: 'math.y1', @@ -3548,7 +3548,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.y1(x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/y1/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/y1/', }, { name: 'math.yn', @@ -3569,7 +3569,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'math.yn(n: 3, x: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/math/yn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/math/yn/', }, { name: 'max', @@ -3579,7 +3579,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'max()', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/max/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/max/', }, MEAN, { @@ -3597,7 +3597,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'median(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/median/', }, { name: 'min', @@ -3607,7 +3607,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'min()', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/min/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/min/', }, { name: 'mode', @@ -3624,7 +3624,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'mode(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mode/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/mode/', }, { name: 'movingAverage', @@ -3640,7 +3640,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'movingAverage(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/movingaverage/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/movingaverage/', }, { name: 'mqtt.to', @@ -3717,7 +3717,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'mqtt.to(broker: "tcp://localhost:8883", topic: "example-topic", clientid: "exampleID", tagColumns: ["exampleTagKey"], valueColumns: ["_value"])', category: 'Outputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/mqtt/to/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/mqtt/to/', }, { name: 'pearsonr', @@ -3744,7 +3744,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'pearsonr(x: table1, y: table2, on: ["_time", "_field"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/pearsonr/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/pearsonr/', }, { name: 'pivot', @@ -3774,7 +3774,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/pivot/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/pivot/', }, { name: 'prometheus.histogramQuantile', @@ -3791,7 +3791,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'prometheus.histogramQuantile(quantile: 0.99)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/prometheus/histogramquantile/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/prometheus/histogramquantile/', }, { name: 'prometheus.scrape', @@ -3807,7 +3807,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'prometheus.scrape(url: "http://localhost:9999/metrics")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/prometheus/scrape/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/prometheus/scrape/', }, { name: 'quantile', @@ -3843,7 +3843,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'quantile(column: "_value", q: 0.99, method: "estimate_tdigest", compression: 1000.0)', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/quantile/', }, { name: 'query.filterFields', @@ -3859,7 +3859,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'query.filterFields(fields: ["field_name"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/query/filterfields/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/query/filterfields/', }, { name: 'query.filterMeasurement', @@ -3875,7 +3875,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'query.filterMeasurement(measurement: "measurement_name")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/query/filtermeasurement/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/query/filtermeasurement/', }, { name: 'query.fromRange', @@ -3902,7 +3902,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'query.fromRange(bucket: "example-bucket", start: v.timeRangeStart)', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/query/fromrange/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/query/fromrange/', }, { name: 'query.inBucket', @@ -3945,7 +3945,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'query.inBucket(bucket: "example-bucket", start: v.timeRangeStart, measurement: "measurement_name", fields: ["field_name"], predicate: (r) => r.host == "host1")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/query/inbucket/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/query/inbucket/', }, RANGE, { @@ -3970,7 +3970,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'reduce(fn: (r, accumulator) => ({ sum: r._value + accumulator.sum }), identity: {sum: 0.0})', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/reduce/', }, { name: 'regexp.compile', @@ -3987,7 +3987,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.compile(v: "[a-zA-Z]")', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/compile/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/compile/', }, { name: 'regexp.findString', @@ -4008,7 +4008,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.findString(r: /foo.?/, v: "seafood fool")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/findstring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/findstring/', }, { name: 'regexp.findStringIndex', @@ -4030,7 +4030,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.findStringIndex(r: /ab?/, v: "tablet")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/findstringindex/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/findstringindex/', }, { name: 'regexp.getString', @@ -4046,7 +4046,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.getString(r: /[a-zA-Z]/)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/getstring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/getstring/', }, { name: 'regexp.matchRegexpString', @@ -4067,7 +4067,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.matchRegexpString(r: /(go){2}/, v: "gogogopher")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/matchregexpstring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/matchregexpstring/', }, { name: 'regexp.quoteMeta', @@ -4084,7 +4084,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.quoteMeta(v: ".+*?()|[]{}^$")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/quotemeta/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/quotemeta/', }, { name: 'regexp.replaceAllString', @@ -4111,7 +4111,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.replaceAllString(r: /a(x*)b/, v: "-ab-axxb-", t: "T")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/replaceallstring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/replaceallstring/', }, { name: 'regexp.splitRegexp', @@ -4138,7 +4138,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'regexp.splitRegexp(r: /a*/, v: "abaabaccadaaae", i: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/splitregexp/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/regexp/splitregexp/', }, { name: 'relativeStrengthIndex', @@ -4160,7 +4160,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'relativeStrengthIndex(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/relativestrengthindex/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/relativestrengthindex/', }, { name: 'rename', @@ -4184,7 +4184,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'rename(columns: {host: "server", _field: "my_field"})', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/rename/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/rename/', }, { name: 'runtime.version', @@ -4194,7 +4194,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'runtime.version()', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/runtime/version/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/runtime/version/', }, { name: 'sample', @@ -4216,7 +4216,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'sample(n:5, pos: -1)', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/sample/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/sample/', }, { name: 'schema.fieldKeys', @@ -4243,7 +4243,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'schema.fieldKeys(bucket: "example-bucket")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/measurementfieldkeys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/measurementfieldkeys/', }, { name: 'schema.fieldsAsCols', @@ -4253,7 +4253,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'schema.fieldsAsCols()', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/fieldsascols/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/fieldsascols/', }, { name: 'schema.measurementFieldKeys', @@ -4280,7 +4280,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'schema.measurementFieldKeys(bucket: "example-bucket", measurement: "example-measurement")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/measurementfieldkeys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/measurementfieldkeys/', }, { name: 'schema.measurementTagKeys', @@ -4303,7 +4303,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'schema.measurementTagKeys(bucket: "example-bucket", measurement: "mem")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/measurementtagkeys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/measurementtagkeys/', }, { name: 'schema.measurementTagValues', @@ -4331,7 +4331,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'schema.measurementTagValues(bucket: "example-bucket", measurement: "mem", tag: "host")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/measurementtagvalues/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/measurementtagvalues/', }, { name: 'schema.measurements', @@ -4347,7 +4347,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'schema.measurements(bucket: "example-bucket")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/measurements/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/measurements/', }, { name: 'schema.tagKeys', @@ -4375,7 +4375,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'schema.tagKeys(bucket: "example-bucket")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/tagkeys/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/tagkeys/', }, { name: 'schema.tagValues', @@ -4408,7 +4408,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'schema.tagValues(bucket: "example-bucket", tag: "example-tag")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-schema/tagvalues/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-schema/tagvalues/', }, { name: 'secrets.get', @@ -4424,7 +4424,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'secrets.get(key: "KEY_NAME")', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/secrets/get/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/secrets/get/', }, { name: 'set', @@ -4446,7 +4446,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'set(key: "_field", value: "my_field")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/set/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/set/', }, { name: 'skew', @@ -4462,7 +4462,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'skew(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/skew/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/skew/', }, { name: 'sleep', @@ -4483,7 +4483,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'sleep(duration: 5s)', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/misc/sleep/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/misc/sleep/', }, { name: 'sort', @@ -4506,7 +4506,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'sort(columns: ["_value"], desc: false)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/sort/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/sort/', }, { name: 'spread', @@ -4523,7 +4523,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'spread(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/spread/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/spread/', }, { name: 'sql.from', @@ -4551,7 +4551,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'sql.from(driverName: "postgres", dataSourceName: "postgresql://user:password@localhost", query:"SELECT * FROM example_table")', category: 'Inputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/sql/from/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/sql/from/', }, { name: 'sql.to', @@ -4585,7 +4585,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'sql.to(driverName: "postgres", dataSourceName: "postgresql://user:password@localhost", table: "example_table")', category: 'Outputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/sql/to/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/sql/to/', }, { name: 'stateCount', @@ -4609,7 +4609,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'stateCount(fn: (r) => r._field == "state", column: "stateCount")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/statecount/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/statecount/', }, { name: 'stateDuration', @@ -4639,7 +4639,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'stateDuration(fn: (r) => r._measurement == "state", column: "stateDuration", unit: 1s)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stateduration/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stateduration/', }, { name: 'stddev', @@ -4662,7 +4662,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'stddev(column: "_value", mode: "sample")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/stddev/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/stddev/', }, { name: 'string', @@ -4678,7 +4678,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'string(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/string/', }, { name: 'strings.compare', @@ -4699,7 +4699,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.compare(v: "a", t: "b")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/compare/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/compare/', }, { name: 'strings.containsAny', @@ -4721,7 +4721,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.containsAny(v: "abc", chars: "and")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/containsany/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/containsany/', }, { name: 'strings.containsStr', @@ -4742,7 +4742,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.containsStr(v: "This and that", substr: "and")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/containsstr/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/containsstr/', }, { name: 'strings.countStr', @@ -4764,7 +4764,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.countStr(v: "Hello mellow fellow", substr: "ello")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/countstr/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/countstr/', }, { name: 'strings.equalFold', @@ -4786,7 +4786,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.equalFold(v: "Go", t: "go")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/equalfold/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/equalfold/', }, { name: 'strings.hasPrefix', @@ -4807,7 +4807,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.hasPrefix(v: "go gopher", prefix: "go")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/hasprefix/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/hasprefix/', }, { name: 'strings.hasSuffix', @@ -4828,7 +4828,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.hasSuffix(v: "gopher go", suffix: "go")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/hassuffix/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/hassuffix/', }, { name: 'strings.index', @@ -4850,7 +4850,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.index(v: "go gopher", substr: "go")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/index-func/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/index-func/', }, { name: 'strings.indexAny', @@ -4872,7 +4872,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.indexAny(v: "chicken", chars: "aeiouy")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/indexany/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/indexany/', }, { name: 'strings.isDigit', @@ -4888,7 +4888,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.isDigit(v: "7")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/isdigit/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/isdigit/', }, { name: 'strings.isLetter', @@ -4904,7 +4904,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.isLetter(v: "A")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/isletter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/isletter/', }, { name: 'strings.isLower', @@ -4920,7 +4920,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.isLower(v: "a")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/islower/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/islower/', }, { name: 'strings.isUpper', @@ -4936,7 +4936,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.isUpper(v: "A")', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/isupper/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/isupper/', }, { name: 'strings.joinStr', @@ -4958,7 +4958,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.joinStr(arr: ["a", "b", "c"], v: ",")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/joinstr/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/joinstr/', }, { name: 'strings.lastIndex', @@ -4980,7 +4980,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.lastIndex(v: "go gopher", substr: "go")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/lastindex/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/lastindex/', }, { name: 'strings.lastIndexAny', @@ -5002,7 +5002,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.lastIndexAny(v: "chicken", chars: "aeiouy")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/lastindexany/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/lastindexany/', }, { name: 'strings.repeat', @@ -5023,7 +5023,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.repeat(v: "ha", i: 3)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/repeat/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/repeat/', }, { name: 'strings.replace', @@ -5055,7 +5055,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.replace(v: "oink oink oink", t: "oink", u: "moo", i: 2)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/replace/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/replace/', }, { name: 'strings.replaceAll', @@ -5082,7 +5082,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.replaceAll(v: "oink oink oink", t: "oink", u: "moo")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/replaceall/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/replaceall/', }, { name: 'strings.split', @@ -5104,7 +5104,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.split(v: "a flux of foxes", t: " ")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/split/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/split/', }, { name: 'strings.splitAfter', @@ -5126,7 +5126,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.splitAfter(v: "a flux of foxes", t: " ")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/splitafter/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/splitafter/', }, { name: 'strings.splitAfterN', @@ -5153,7 +5153,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.splitAfterN(v: "a flux of foxes", t: " ", i: 2)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/splitaftern/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/splitaftern/', }, { name: 'strings.splitN', @@ -5180,7 +5180,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.splitN(v: "a flux of foxes", t: " ", i: 2)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/splitn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/splitn/', }, { name: 'strings.strlen', @@ -5196,7 +5196,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.strlen(v: "a flux of foxes")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/strlen/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/strlen/', }, { name: 'strings.substring', @@ -5222,7 +5222,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.substring(v: "influx", start: 0, end: 3)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/substring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/substring/', }, STRINGS_TITLE, { @@ -5239,7 +5239,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.toLower(v: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/tolower/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/tolower/', }, { name: 'strings.toTitle', @@ -5255,7 +5255,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.toTitle(v: "a flux of foxes")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/totitle/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/totitle/', }, { name: 'strings.toUpper', @@ -5271,7 +5271,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.toUpper(v: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/toupper/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/toupper/', }, STRINGS_TRIM, { @@ -5293,7 +5293,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.trimLeft(v: ".abc", cutset: ".")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trimleft/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trimleft/', }, { name: 'strings.trimPrefix', @@ -5315,7 +5315,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.trimPrefix(v: r._value, prefix: "abc_")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trimprefix/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trimprefix/', }, { name: 'strings.trimRight', @@ -5336,7 +5336,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.trimRight(v: "abc.", cutset: ".")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trimright/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trimright/', }, { name: 'strings.trimSpace', @@ -5352,7 +5352,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.trimSpace(v: r._value)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trimspace/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trimspace/', }, { name: 'strings.trimSuffix', @@ -5374,7 +5374,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'strings.trimSuffix(v: r._value, suffix: "_123")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/strings/trimsuffix/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/strings/trimsuffix/', }, { name: 'sum', @@ -5390,7 +5390,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'sum(column: "_value")', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/sum/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/sum/', }, { name: 'system.time', @@ -5400,7 +5400,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'system.time()', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/system/time/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/system/time/', }, { name: 'tableFind', @@ -5417,7 +5417,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'tableFind(fn: (key) => key._field == "fieldName")', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/stream-table/tablefind/', }, { name: 'tail', @@ -5440,7 +5440,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'tail(n: 10)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/tail/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/tail/', }, { name: 'tasks.lastSuccess', @@ -5458,7 +5458,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'tasks.lastSuccess(orTime: 2020-10-01T00:00:00Z)', category: 'Miscellaneous', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb-tasks/lastsuccess/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/influxdb-tasks/lastsuccess/', }, { name: 'testing.assertEmpty', @@ -5468,7 +5468,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'testing.assertEmpty()', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/testing/assertempty/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/testing/assertempty/', }, { name: 'testing.assertEquals', @@ -5494,7 +5494,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'testing.assertEquals(got: got, want: want)', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/testing/assertequals/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/testing/assertequals/', }, { name: 'testing.diff', @@ -5521,7 +5521,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'testing.assertEquals(got: got, want: want)', category: 'Tests', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/testing/diff/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/testing/diff/', }, { name: 'time', @@ -5537,7 +5537,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'time(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/time/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/time/', }, { name: 'timedMovingAverage', @@ -5565,7 +5565,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'timedMovingAverage(every: 1d, period: 5d)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/timedmovingaverage/', }, { name: 'timeShift', @@ -5589,7 +5589,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'timeShift(duration: 10h, columns: ["_start", "_stop", "_time"])', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/shift/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/shift/', }, { name: 'timeWeightedAvg', @@ -5607,7 +5607,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'timeWeightedAvg(unit: 1m)', category: 'Aggregates', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timeweightedavg/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/aggregates/timeweightedavg/', }, { name: 'to', @@ -5671,7 +5671,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'to(bucket: "example-bucket", org: "example-org")', category: 'Outputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/outputs/to/', }, { name: 'toBool', @@ -5681,7 +5681,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toBool()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/tobool', }, { name: 'toFloat', @@ -5691,7 +5691,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toFloat()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat/', }, { name: 'toInt', @@ -5701,7 +5701,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toInt()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/toint/', }, { name: 'toString', @@ -5711,7 +5711,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toString()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/tostring/', }, { name: 'toTime', @@ -5721,7 +5721,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toTime()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/totime/', }, { name: 'toUInt', @@ -5731,7 +5731,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'toUInt()', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/touint/', }, { name: 'top', @@ -5753,7 +5753,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'top(n:10, columns: ["_value"])', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/top/', }, { name: 'tripleEMA', @@ -5770,7 +5770,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'tripleEMA(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/tripleema/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/tripleema/', }, { name: 'tripleExponentialDerivative', @@ -5787,7 +5787,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'tripleExponentialDerivative(n: 5)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/tripleexponentialderivative/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/tripleexponentialderivative/', }, { name: 'truncateTimeColumn', @@ -5803,7 +5803,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'truncateTimeColumn(unit: 1m)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/truncatetimecolumn/', }, { name: 'uint', @@ -5819,7 +5819,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'uint(v: r._value)', category: 'Type Conversions', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/uint/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/type-conversions/uint/', }, UNION, { @@ -5836,7 +5836,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'unique(column: "_value")', category: 'Selectors', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/selectors/unique/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/selectors/unique/', }, { name: 'window', @@ -5894,7 +5894,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'window(every: v.windowPeriod)', category: 'Transformations', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/window/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/transformations/window/', }, { name: 'yield', @@ -5911,6 +5911,6 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ example: 'yield(name: "custom-name")', category: 'Outputs', link: - 'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/yield/', + 'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/built-in/outputs/yield/', }, ] diff --git a/ui/src/shared/utils/fromFlux.newline.csv b/ui/src/shared/utils/fromFlux.newline.csv index ab1ca16257d..db0bc277b9d 100644 --- a/ui/src/shared/utils/fromFlux.newline.csv +++ b/ui/src/shared/utils/fromFlux.newline.csv @@ -6,5 +6,5 @@ ,,1,2020-06-03T03:17:00Z,2020-06-03T03:18:00Z,2020-06-03T03:17:00.111266004Z,"{""request"":{""authorization"":{""id"":""0000000000000001"",""token"":"""",""status"":""active"",""description"":"""",""orgID"":""9f2ac2308a388955"",""permissions"":[{""action"":""read"",""resource"":{""type"":""authorizations"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""authorizations"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""buckets"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""buckets"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""dashboards"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""dashboards"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""orgs"",""id"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""orgs"",""id"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""sources"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""sources"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""tasks"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""tasks"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""telegrafs"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""telegrafs"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""users"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""users"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""variables"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""variables"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""scrapers"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""scrapers"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""secrets"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""secrets"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""labels"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""labels"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""views"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""views"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""documents"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""documents"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""notificationRules"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""notificationRules"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""checks"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""checks"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""dbrp"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""dbrp"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""users"",""id"":""055356a2423ac000""}},{""action"":""write"",""resource"":{""type"":""users"",""id"":""055356a2423ac000""}}],""createdAt"":""0001-01-01T00:00:00Z"",""updatedAt"":""0001-01-01T00:00:00Z""},""organization_id"":""9f2ac2308a388955"",""compiler"":{""ast"":{""type"":""Package"",""package"":""main"",""files"":[{""type"":""File"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":261},""source"":""option task = {name:\""test_task_smoke_name\"", every:30s} from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""metadata"":""parser-type=rust"",""package"":null,""imports"":[],""body"":[{""type"":""OptionStatement"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":55},""source"":""option task = {name:\""test_task_smoke_name\"", every:30s}""},""assignment"":{""type"":""VariableAssignment"",""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":55},""source"":""task = {name:\""test_task_smoke_name\"", every:30s}""},""id"":{""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":12},""source"":""task""},""name"":""task""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":15},""end"":{""line"":1,""column"":55},""source"":""{name:\""test_task_smoke_name\"", every:30s}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":16},""end"":{""line"":1,""column"":43},""source"":""name:\""test_task_smoke_name\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":16},""end"":{""line"":1,""column"":20},""source"":""name""},""name"":""name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":21},""end"":{""line"":1,""column"":43},""source"":""\""test_task_smoke_name\""""},""value"":""test_task_smoke_name""}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":45},""end"":{""line"":1,""column"":54},""source"":""every:30s""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":45},""end"":{""line"":1,""column"":50},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":1,""column"":51},""end"":{""line"":1,""column"":54},""source"":""30s""},""values"":[{""magnitude"":30,""unit"":""s""}]}}]}}},{""type"":""ExpressionStatement"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":261},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""expression"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":261},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":197},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":114},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h)""},""argument"":{""type"":""CallExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":93},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"")""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":60},""source"":""from""},""name"":""from""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":92},""source"":""bucket:\""test_e2e_smoke_bucket3\""""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":92},""source"":""bucket:\""test_e2e_smoke_bucket3\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":67},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":68},""end"":{""line"":1,""column"":92},""source"":""\""test_e2e_smoke_bucket3\""""},""value"":""test_e2e_smoke_bucket3""}}]}]},""call"":{""location"":{""start"":{""line"":1,""column"":97},""end"":{""line"":1,""column"":114},""source"":""range(start: -1h)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":97},""end"":{""line"":1,""column"":102},""source"":""range""},""name"":""range""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":113},""source"":""start: -1h""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":113},""source"":""start: -1h""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":108},""source"":""start""},""name"":""start""},""value"":{""type"":""UnaryExpression"",""location"":{""start"":{""line"":1,""column"":110},""end"":{""line"":1,""column"":113},""source"":""-1h""},""operator"":""-"",""argument"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":1,""column"":111},""end"":{""line"":1,""column"":113},""source"":""1h""},""values"":[{""magnitude"":1,""unit"":""h""}]}}}]}]}},""call"":{""location"":{""start"":{""line"":1,""column"":118},""end"":{""line"":1,""column"":197},""source"":""map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":118},""end"":{""line"":1,""column"":121},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":196},""source"":""fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":196},""source"":""fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":124},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":1,""column"":126},""end"":{""line"":1,""column"":196},""source"":""(r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":127},""end"":{""line"":1,""column"":128},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":127},""end"":{""line"":1,""column"":128},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":1,""column"":133},""end"":{""line"":1,""column"":196},""source"":""({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":134},""end"":{""line"":1,""column"":195},""source"":""{r with _time: r._time, _value:r._value, t : \""quality_rocks\""}""},""with"":{""location"":{""start"":{""line"":1,""column"":135},""end"":{""line"":1,""column"":136},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":142},""end"":{""line"":1,""column"":156},""source"":""_time: r._time""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":142},""end"":{""line"":1,""column"":147},""source"":""_time""},""name"":""_time""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":1,""column"":149},""end"":{""line"":1,""column"":156},""source"":""r._time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":149},""end"":{""line"":1,""column"":150},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":151},""end"":{""line"":1,""column"":156},""source"":""_time""},""name"":""_time""}}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":158},""end"":{""line"":1,""column"":173},""source"":""_value:r._value""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":158},""end"":{""line"":1,""column"":164},""source"":""_value""},""name"":""_value""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":1,""column"":165},""end"":{""line"":1,""column"":173},""source"":""r._value""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":165},""end"":{""line"":1,""column"":166},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":167},""end"":{""line"":1,""column"":173},""source"":""_value""},""name"":""_value""}}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":175},""end"":{""line"":1,""column"":194},""source"":""t : \""quality_rocks\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":175},""end"":{""line"":1,""column"":176},""source"":""t""},""name"":""t""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":179},""end"":{""line"":1,""column"":194},""source"":""\""quality_rocks\""""},""value"":""quality_rocks""}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":1,""column"":200},""end"":{""line"":1,""column"":261},""source"":""to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":200},""end"":{""line"":1,""column"":202},""source"":""to""},""name"":""to""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":260},""source"":""bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\""""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":234},""source"":""bucket:\""test_e2e_smoke_bucket2\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":209},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":210},""end"":{""line"":1,""column"":234},""source"":""\""test_e2e_smoke_bucket2\""""},""value"":""test_e2e_smoke_bucket2""}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":236},""end"":{""line"":1,""column"":260},""source"":""orgID:\""9f2ac2308a388955\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":236},""end"":{""line"":1,""column"":241},""source"":""orgID""},""name"":""orgID""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":242},""end"":{""line"":1,""column"":260},""source"":""\""9f2ac2308a388955\""""},""value"":""9f2ac2308a388955""}}]}]}}}]}]},""Now"":""2020-06-03T03:17:00Z""},""source"":""tasks"",""compiler_type"":""ast""},""dialect"":{""header"":true,""delimiter"":""\u0000"",""annotations"":[""datatype"",""group"",""default""]},""dialect_type"":""no-content-with-error""}",request,query_log,stag01-us-east-4,queryd-v1-6c46d687dc-2t5r5,queryd-v1-6c46d687dc-2t5r5,gke-stag01-us-east-4-highmem-preempti-6beb3a50-nsb6,9f2ac2308a388955,false,unknown,queryd-v1,tasks ,,1,2020-06-03T03:17:00Z,2020-06-03T03:18:00Z,2020-06-03T03:17:30.082617325Z,"{""request"":{""authorization"":{""id"":""0000000000000001"",""token"":"""",""status"":""active"",""description"":"""",""orgID"":""9f2ac2308a388955"",""permissions"":[{""action"":""read"",""resource"":{""type"":""authorizations"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""authorizations"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""buckets"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""buckets"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""dashboards"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""dashboards"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""orgs"",""id"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""orgs"",""id"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""sources"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""sources"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""tasks"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""tasks"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""telegrafs"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""telegrafs"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""users"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""users"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""variables"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""variables"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""scrapers"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""scrapers"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""secrets"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""secrets"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""labels"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""labels"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""views"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""views"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""documents"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""documents"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""notificationRules"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""notificationRules"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""checks"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""checks"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""dbrp"",""orgID"":""9f2ac2308a388955""}},{""action"":""write"",""resource"":{""type"":""dbrp"",""orgID"":""9f2ac2308a388955""}},{""action"":""read"",""resource"":{""type"":""users"",""id"":""055356a2423ac000""}},{""action"":""write"",""resource"":{""type"":""users"",""id"":""055356a2423ac000""}}],""createdAt"":""0001-01-01T00:00:00Z"",""updatedAt"":""0001-01-01T00:00:00Z""},""organization_id"":""9f2ac2308a388955"",""compiler"":{""ast"":{""type"":""Package"",""package"":""main"",""files"":[{""type"":""File"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":261},""source"":""option task = {name:\""test_task_smoke_name\"", every:30s} from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""metadata"":""parser-type=rust"",""package"":null,""imports"":[],""body"":[{""type"":""OptionStatement"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":55},""source"":""option task = {name:\""test_task_smoke_name\"", every:30s}""},""assignment"":{""type"":""VariableAssignment"",""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":55},""source"":""task = {name:\""test_task_smoke_name\"", every:30s}""},""id"":{""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":12},""source"":""task""},""name"":""task""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":15},""end"":{""line"":1,""column"":55},""source"":""{name:\""test_task_smoke_name\"", every:30s}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":16},""end"":{""line"":1,""column"":43},""source"":""name:\""test_task_smoke_name\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":16},""end"":{""line"":1,""column"":20},""source"":""name""},""name"":""name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":21},""end"":{""line"":1,""column"":43},""source"":""\""test_task_smoke_name\""""},""value"":""test_task_smoke_name""}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":45},""end"":{""line"":1,""column"":54},""source"":""every:30s""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":45},""end"":{""line"":1,""column"":50},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":1,""column"":51},""end"":{""line"":1,""column"":54},""source"":""30s""},""values"":[{""magnitude"":30,""unit"":""s""}]}}]}}},{""type"":""ExpressionStatement"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":261},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""expression"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":261},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))|\u003e to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":197},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h) |\u003e map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":114},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"") |\u003e range(start: -1h)""},""argument"":{""type"":""CallExpression"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":93},""source"":""from(bucket:\""test_e2e_smoke_bucket3\"")""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":56},""end"":{""line"":1,""column"":60},""source"":""from""},""name"":""from""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":92},""source"":""bucket:\""test_e2e_smoke_bucket3\""""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":92},""source"":""bucket:\""test_e2e_smoke_bucket3\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":61},""end"":{""line"":1,""column"":67},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":68},""end"":{""line"":1,""column"":92},""source"":""\""test_e2e_smoke_bucket3\""""},""value"":""test_e2e_smoke_bucket3""}}]}]},""call"":{""location"":{""start"":{""line"":1,""column"":97},""end"":{""line"":1,""column"":114},""source"":""range(start: -1h)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":97},""end"":{""line"":1,""column"":102},""source"":""range""},""name"":""range""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":113},""source"":""start: -1h""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":113},""source"":""start: -1h""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":103},""end"":{""line"":1,""column"":108},""source"":""start""},""name"":""start""},""value"":{""type"":""UnaryExpression"",""location"":{""start"":{""line"":1,""column"":110},""end"":{""line"":1,""column"":113},""source"":""-1h""},""operator"":""-"",""argument"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":1,""column"":111},""end"":{""line"":1,""column"":113},""source"":""1h""},""values"":[{""magnitude"":1,""unit"":""h""}]}}}]}]}},""call"":{""location"":{""start"":{""line"":1,""column"":118},""end"":{""line"":1,""column"":197},""source"":""map(fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":118},""end"":{""line"":1,""column"":121},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":196},""source"":""fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":196},""source"":""fn: (r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":122},""end"":{""line"":1,""column"":124},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":1,""column"":126},""end"":{""line"":1,""column"":196},""source"":""(r) =\u003e ({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":127},""end"":{""line"":1,""column"":128},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":127},""end"":{""line"":1,""column"":128},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":1,""column"":133},""end"":{""line"":1,""column"":196},""source"":""({r with _time: r._time, _value:r._value, t : \""quality_rocks\""})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":134},""end"":{""line"":1,""column"":195},""source"":""{r with _time: r._time, _value:r._value, t : \""quality_rocks\""}""},""with"":{""location"":{""start"":{""line"":1,""column"":135},""end"":{""line"":1,""column"":136},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":142},""end"":{""line"":1,""column"":156},""source"":""_time: r._time""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":142},""end"":{""line"":1,""column"":147},""source"":""_time""},""name"":""_time""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":1,""column"":149},""end"":{""line"":1,""column"":156},""source"":""r._time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":149},""end"":{""line"":1,""column"":150},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":151},""end"":{""line"":1,""column"":156},""source"":""_time""},""name"":""_time""}}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":158},""end"":{""line"":1,""column"":173},""source"":""_value:r._value""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":158},""end"":{""line"":1,""column"":164},""source"":""_value""},""name"":""_value""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":1,""column"":165},""end"":{""line"":1,""column"":173},""source"":""r._value""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":165},""end"":{""line"":1,""column"":166},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":167},""end"":{""line"":1,""column"":173},""source"":""_value""},""name"":""_value""}}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":175},""end"":{""line"":1,""column"":194},""source"":""t : \""quality_rocks\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":175},""end"":{""line"":1,""column"":176},""source"":""t""},""name"":""t""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":179},""end"":{""line"":1,""column"":194},""source"":""\""quality_rocks\""""},""value"":""quality_rocks""}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":1,""column"":200},""end"":{""line"":1,""column"":261},""source"":""to(bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\"")""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":200},""end"":{""line"":1,""column"":202},""source"":""to""},""name"":""to""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":260},""source"":""bucket:\""test_e2e_smoke_bucket2\"", orgID:\""9f2ac2308a388955\""""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":234},""source"":""bucket:\""test_e2e_smoke_bucket2\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":203},""end"":{""line"":1,""column"":209},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":210},""end"":{""line"":1,""column"":234},""source"":""\""test_e2e_smoke_bucket2\""""},""value"":""test_e2e_smoke_bucket2""}},{""type"":""Property"",""location"":{""start"":{""line"":1,""column"":236},""end"":{""line"":1,""column"":260},""source"":""orgID:\""9f2ac2308a388955\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":1,""column"":236},""end"":{""line"":1,""column"":241},""source"":""orgID""},""name"":""orgID""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":1,""column"":242},""end"":{""line"":1,""column"":260},""source"":""\""9f2ac2308a388955\""""},""value"":""9f2ac2308a388955""}}]}]}}}]}]},""Now"":""2020-06-03T03:17:30Z""},""source"":""tasks"",""compiler_type"":""ast""},""dialect"":{""header"":true,""delimiter"":""\u0000"",""annotations"":[""datatype"",""group"",""default""]},""dialect_type"":""no-content-with-error""}",request,query_log,stag01-us-east-4,queryd-v1-6c46d687dc-2t5r5,queryd-v1-6c46d687dc-2t5r5,gke-stag01-us-east-4-highmem-preempti-6beb3a50-nsb6,9f2ac2308a388955,false,unknown,queryd-v1,tasks ,,2,2020-06-03T03:17:00Z,2020-06-03T03:18:00Z,2020-06-03T03:17:00.230197818Z,"{""request"":{""authorization"":{""id"":""0000000000000001"",""token"":"""",""status"":""active"",""description"":"""",""orgID"":""9b89cdc81f6998f1"",""permissions"":[{""action"":""read"",""resource"":{""type"":""authorizations"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""authorizations"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""buckets"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""buckets"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""dashboards"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""dashboards"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""orgs"",""id"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""orgs"",""id"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""sources"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""sources"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""tasks"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""tasks"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""telegrafs"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""telegrafs"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""users"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""users"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""variables"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""variables"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""scrapers"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""scrapers"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""secrets"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""secrets"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""labels"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""labels"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""views"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""views"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""documents"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""documents"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""notificationRules"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""notificationRules"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""checks"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""checks"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""dbrp"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""write"",""resource"":{""type"":""dbrp"",""orgID"":""9b89cdc81f6998f1""}},{""action"":""read"",""resource"":{""type"":""users"",""id"":""04f298e032673000""}},{""action"":""write"",""resource"":{""type"":""users"",""id"":""04f298e032673000""}}],""createdAt"":""0001-01-01T00:00:00Z"",""updatedAt"":""0001-01-01T00:00:00Z""},""organization_id"":""9b89cdc81f6998f1"",""compiler"":{""ast"":{""type"":""Package"",""package"":""main"",""files"":[{""type"":""File"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":30,""column"":65},""source"":""package main\nimport \""influxdata/influxdb/monitor\""\nimport \""influxdata/influxdb/v1\""\n\ndata = from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\""))\n\t|\u003e aggregateWindow(every: 1m, fn: mean, createEmpty: false)\n\noption task = {name: \""Name this Check\"", every: 1m, offset: 0s}\n\ncheck = {\n\t_check_id: \""04f29b6e20e00000\"",\n\t_check_name: \""Name this Check\"",\n\t_type: \""threshold\"",\n\ttags: {},\n}\ncrit = (r) =\u003e\n\t(r.usage_idle \u003e 85.0)\nmessageFn = (r) =\u003e\n\t(\""Check: ${ r._check_name } is: ${ r._level }\"")\n\ndata\n\t|\u003e v1.fieldsAsCols()\n\t|\u003e monitor.check(data: check, messageFn: messageFn, crit: crit)""},""metadata"":""parser-type=rust"",""package"":{""type"":""PackageClause"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":13},""source"":""package main""},""name"":{""location"":{""start"":{""line"":1,""column"":9},""end"":{""line"":1,""column"":13},""source"":""main""},""name"":""main""}},""imports"":[{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":2,""column"":1},""end"":{""line"":2,""column"":37},""source"":""import \""influxdata/influxdb/monitor\""""},""as"":null,""path"":{""location"":{""start"":{""line"":2,""column"":8},""end"":{""line"":2,""column"":37},""source"":""\""influxdata/influxdb/monitor\""""},""value"":""influxdata/influxdb/monitor""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":3,""column"":1},""end"":{""line"":3,""column"":32},""source"":""import \""influxdata/influxdb/v1\""""},""as"":null,""path"":{""location"":{""start"":{""line"":3,""column"":8},""end"":{""line"":3,""column"":32},""source"":""\""influxdata/influxdb/v1\""""},""value"":""influxdata/influxdb/v1""}}],""body"":[{""type"":""VariableAssignment"",""location"":{""start"":{""line"":5,""column"":1},""end"":{""line"":13,""column"":61},""source"":""data = from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\""))\n\t|\u003e aggregateWindow(every: 1m, fn: mean, createEmpty: false)""},""id"":{""location"":{""start"":{""line"":5,""column"":1},""end"":{""line"":5,""column"":5},""source"":""data""},""name"":""data""},""init"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":13,""column"":61},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\""))\n\t|\u003e aggregateWindow(every: 1m, fn: mean, createEmpty: false)""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":12,""column"":26},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\""))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":10,""column"":30},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":8,""column"":29},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)\n\t|\u003e filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":6,""column"":22},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")\n\t|\u003e range(start: -1m)""},""argument"":{""type"":""CallExpression"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":5,""column"":47},""source"":""from(bucket: \""balaji+gcp1218's Bucket\"")""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":5,""column"":12},""source"":""from""},""name"":""from""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":5,""column"":13},""end"":{""line"":5,""column"":46},""source"":""bucket: \""balaji+gcp1218's Bucket\""""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":5,""column"":13},""end"":{""line"":5,""column"":46},""source"":""bucket: \""balaji+gcp1218's Bucket\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":5,""column"":13},""end"":{""line"":5,""column"":19},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":5,""column"":21},""end"":{""line"":5,""column"":46},""source"":""\""balaji+gcp1218's Bucket\""""},""value"":""balaji+gcp1218's Bucket""}}]}]},""call"":{""location"":{""start"":{""line"":6,""column"":5},""end"":{""line"":6,""column"":22},""source"":""range(start: -1m)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":6,""column"":5},""end"":{""line"":6,""column"":10},""source"":""range""},""name"":""range""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":6,""column"":11},""end"":{""line"":6,""column"":21},""source"":""start: -1m""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":6,""column"":11},""end"":{""line"":6,""column"":21},""source"":""start: -1m""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":6,""column"":11},""end"":{""line"":6,""column"":16},""source"":""start""},""name"":""start""},""value"":{""type"":""UnaryExpression"",""location"":{""start"":{""line"":6,""column"":18},""end"":{""line"":6,""column"":21},""source"":""-1m""},""operator"":""-"",""argument"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":6,""column"":19},""end"":{""line"":6,""column"":21},""source"":""1m""},""values"":[{""magnitude"":1,""unit"":""m""}]}}}]}]}},""call"":{""location"":{""start"":{""line"":7,""column"":5},""end"":{""line"":8,""column"":29},""source"":""filter(fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\""))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":7,""column"":5},""end"":{""line"":7,""column"":11},""source"":""filter""},""name"":""filter""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":7,""column"":12},""end"":{""line"":8,""column"":28},""source"":""fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\"")""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":7,""column"":12},""end"":{""line"":8,""column"":28},""source"":""fn: (r) =\u003e\n\t\t(r._measurement == \""cpu\"")""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":7,""column"":12},""end"":{""line"":7,""column"":14},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":7,""column"":16},""end"":{""line"":8,""column"":28},""source"":""(r) =\u003e\n\t\t(r._measurement == \""cpu\"")""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":7,""column"":17},""end"":{""line"":7,""column"":18},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":7,""column"":17},""end"":{""line"":7,""column"":18},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":8,""column"":3},""end"":{""line"":8,""column"":28},""source"":""(r._measurement == \""cpu\"")""},""expression"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":8,""column"":4},""end"":{""line"":8,""column"":27},""source"":""r._measurement == \""cpu\""""},""operator"":""=="",""left"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":8,""column"":4},""end"":{""line"":8,""column"":18},""source"":""r._measurement""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":8,""column"":4},""end"":{""line"":8,""column"":5},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":8,""column"":6},""end"":{""line"":8,""column"":18},""source"":""_measurement""},""name"":""_measurement""}},""right"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":8,""column"":22},""end"":{""line"":8,""column"":27},""source"":""\""cpu\""""},""value"":""cpu""}}}}}]}]}},""call"":{""location"":{""start"":{""line"":9,""column"":5},""end"":{""line"":10,""column"":30},""source"":""filter(fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\""))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":9,""column"":5},""end"":{""line"":9,""column"":11},""source"":""filter""},""name"":""filter""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":9,""column"":12},""end"":{""line"":10,""column"":29},""source"":""fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\"")""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":9,""column"":12},""end"":{""line"":10,""column"":29},""source"":""fn: (r) =\u003e\n\t\t(r._field == \""usage_idle\"")""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":9,""column"":12},""end"":{""line"":9,""column"":14},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":9,""column"":16},""end"":{""line"":10,""column"":29},""source"":""(r) =\u003e\n\t\t(r._field == \""usage_idle\"")""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":9,""column"":17},""end"":{""line"":9,""column"":18},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":9,""column"":17},""end"":{""line"":9,""column"":18},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":10,""column"":3},""end"":{""line"":10,""column"":29},""source"":""(r._field == \""usage_idle\"")""},""expression"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":10,""column"":4},""end"":{""line"":10,""column"":28},""source"":""r._field == \""usage_idle\""""},""operator"":""=="",""left"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":10,""column"":4},""end"":{""line"":10,""column"":12},""source"":""r._field""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":4},""end"":{""line"":10,""column"":5},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":6},""end"":{""line"":10,""column"":12},""source"":""_field""},""name"":""_field""}},""right"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":10,""column"":16},""end"":{""line"":10,""column"":28},""source"":""\""usage_idle\""""},""value"":""usage_idle""}}}}}]}]}},""call"":{""location"":{""start"":{""line"":11,""column"":5},""end"":{""line"":12,""column"":26},""source"":""filter(fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\""))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":5},""end"":{""line"":11,""column"":11},""source"":""filter""},""name"":""filter""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":11,""column"":12},""end"":{""line"":12,""column"":25},""source"":""fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\"")""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":12},""end"":{""line"":12,""column"":25},""source"":""fn: (r) =\u003e\n\t\t(r.cpu == \""cpu-total\"")""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":12},""end"":{""line"":11,""column"":14},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":11,""column"":16},""end"":{""line"":12,""column"":25},""source"":""(r) =\u003e\n\t\t(r.cpu == \""cpu-total\"")""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":17},""end"":{""line"":11,""column"":18},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":17},""end"":{""line"":11,""column"":18},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":12,""column"":3},""end"":{""line"":12,""column"":25},""source"":""(r.cpu == \""cpu-total\"")""},""expression"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":12,""column"":4},""end"":{""line"":12,""column"":24},""source"":""r.cpu == \""cpu-total\""""},""operator"":""=="",""left"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":12,""column"":4},""end"":{""line"":12,""column"":9},""source"":""r.cpu""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":12,""column"":4},""end"":{""line"":12,""column"":5},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":12,""column"":6},""end"":{""line"":12,""column"":9},""source"":""cpu""},""name"":""cpu""}},""right"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":12,""column"":13},""end"":{""line"":12,""column"":24},""source"":""\""cpu-total\""""},""value"":""cpu-total""}}}}}]}]}},""call"":{""location"":{""start"":{""line"":13,""column"":5},""end"":{""line"":13,""column"":61},""source"":""aggregateWindow(every: 1m, fn: mean, createEmpty: false)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":5},""end"":{""line"":13,""column"":20},""source"":""aggregateWindow""},""name"":""aggregateWindow""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":13,""column"":21},""end"":{""line"":13,""column"":60},""source"":""every: 1m, fn: mean, createEmpty: false""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":13,""column"":21},""end"":{""line"":13,""column"":30},""source"":""every: 1m""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":21},""end"":{""line"":13,""column"":26},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":13,""column"":28},""end"":{""line"":13,""column"":30},""source"":""1m""},""values"":[{""magnitude"":1,""unit"":""m""}]}},{""type"":""Property"",""location"":{""start"":{""line"":13,""column"":32},""end"":{""line"":13,""column"":40},""source"":""fn: mean""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":32},""end"":{""line"":13,""column"":34},""source"":""fn""},""name"":""fn""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":36},""end"":{""line"":13,""column"":40},""source"":""mean""},""name"":""mean""}},{""type"":""Property"",""location"":{""start"":{""line"":13,""column"":42},""end"":{""line"":13,""column"":60},""source"":""createEmpty: false""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":42},""end"":{""line"":13,""column"":53},""source"":""createEmpty""},""name"":""createEmpty""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":13,""column"":55},""end"":{""line"":13,""column"":60},""source"":""false""},""name"":""false""}}]}]}}},{""type"":""OptionStatement"",""location"":{""start"":{""line"":15,""column"":1},""end"":{""line"":15,""column"":63},""source"":""option task = {name: \""Name this Check\"", every: 1m, offset: 0s}""},""assignment"":{""type"":""VariableAssignment"",""location"":{""start"":{""line"":15,""column"":8},""end"":{""line"":15,""column"":63},""source"":""task = {name: \""Name this Check\"", every: 1m, offset: 0s}""},""id"":{""location"":{""start"":{""line"":15,""column"":8},""end"":{""line"":15,""column"":12},""source"":""task""},""name"":""task""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":15,""column"":15},""end"":{""line"":15,""column"":63},""source"":""{name: \""Name this Check\"", every: 1m, offset: 0s}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":15,""column"":16},""end"":{""line"":15,""column"":39},""source"":""name: \""Name this Check\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":15,""column"":16},""end"":{""line"":15,""column"":20},""source"":""name""},""name"":""name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":15,""column"":22},""end"":{""line"":15,""column"":39},""source"":""\""Name this Check\""""},""value"":""Name this Check""}},{""type"":""Property"",""location"":{""start"":{""line"":15,""column"":41},""end"":{""line"":15,""column"":50},""source"":""every: 1m""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":15,""column"":41},""end"":{""line"":15,""column"":46},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":15,""column"":48},""end"":{""line"":15,""column"":50},""source"":""1m""},""values"":[{""magnitude"":1,""unit"":""m""}]}},{""type"":""Property"",""location"":{""start"":{""line"":15,""column"":52},""end"":{""line"":15,""column"":62},""source"":""offset: 0s""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":15,""column"":52},""end"":{""line"":15,""column"":58},""source"":""offset""},""name"":""offset""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":15,""column"":60},""end"":{""line"":15,""column"":62},""source"":""0s""},""values"":[{""magnitude"":0,""unit"":""s""}]}}]}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":17,""column"":1},""end"":{""line"":22,""column"":2},""source"":""check = {\n\t_check_id: \""04f29b6e20e00000\"",\n\t_check_name: \""Name this Check\"",\n\t_type: \""threshold\"",\n\ttags: {},\n}""},""id"":{""location"":{""start"":{""line"":17,""column"":1},""end"":{""line"":17,""column"":6},""source"":""check""},""name"":""check""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":17,""column"":9},""end"":{""line"":22,""column"":2},""source"":""{\n\t_check_id: \""04f29b6e20e00000\"",\n\t_check_name: \""Name this Check\"",\n\t_type: \""threshold\"",\n\ttags: {},\n}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":18,""column"":2},""end"":{""line"":18,""column"":31},""source"":""_check_id: \""04f29b6e20e00000\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":2},""end"":{""line"":18,""column"":11},""source"":""_check_id""},""name"":""_check_id""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":18,""column"":13},""end"":{""line"":18,""column"":31},""source"":""\""04f29b6e20e00000\""""},""value"":""04f29b6e20e00000""}},{""type"":""Property"",""location"":{""start"":{""line"":19,""column"":2},""end"":{""line"":19,""column"":32},""source"":""_check_name: \""Name this Check\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":19,""column"":2},""end"":{""line"":19,""column"":13},""source"":""_check_name""},""name"":""_check_name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":19,""column"":15},""end"":{""line"":19,""column"":32},""source"":""\""Name this Check\""""},""value"":""Name this Check""}},{""type"":""Property"",""location"":{""start"":{""line"":20,""column"":2},""end"":{""line"":20,""column"":20},""source"":""_type: \""threshold\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":20,""column"":2},""end"":{""line"":20,""column"":7},""source"":""_type""},""name"":""_type""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":20,""column"":9},""end"":{""line"":20,""column"":20},""source"":""\""threshold\""""},""value"":""threshold""}},{""type"":""Property"",""location"":{""start"":{""line"":21,""column"":2},""end"":{""line"":21,""column"":10},""source"":""tags: {}""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":21,""column"":2},""end"":{""line"":21,""column"":6},""source"":""tags""},""name"":""tags""},""value"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":21,""column"":8},""end"":{""line"":21,""column"":10},""source"":""{}""},""properties"":[]}}]}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":23,""column"":1},""end"":{""line"":24,""column"":23},""source"":""crit = (r) =\u003e\n\t(r.usage_idle \u003e 85.0)""},""id"":{""location"":{""start"":{""line"":23,""column"":1},""end"":{""line"":23,""column"":5},""source"":""crit""},""name"":""crit""},""init"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":23,""column"":8},""end"":{""line"":24,""column"":23},""source"":""(r) =\u003e\n\t(r.usage_idle \u003e 85.0)""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":23,""column"":9},""end"":{""line"":23,""column"":10},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":23,""column"":9},""end"":{""line"":23,""column"":10},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":24,""column"":2},""end"":{""line"":24,""column"":23},""source"":""(r.usage_idle \u003e 85.0)""},""expression"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":24,""column"":3},""end"":{""line"":24,""column"":22},""source"":""r.usage_idle \u003e 85.0""},""operator"":""\u003e"",""left"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":24,""column"":3},""end"":{""line"":24,""column"":15},""source"":""r.usage_idle""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":24,""column"":3},""end"":{""line"":24,""column"":4},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":24,""column"":5},""end"":{""line"":24,""column"":15},""source"":""usage_idle""},""name"":""usage_idle""}},""right"":{""type"":""FloatLiteral"",""location"":{""start"":{""line"":24,""column"":18},""end"":{""line"":24,""column"":22},""source"":""85.0""},""value"":85.0}}}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":25,""column"":1},""end"":{""line"":26,""column"":49},""source"":""messageFn = (r) =\u003e\n\t(\""Check: ${ r._check_name } is: ${ r._level }\"")""},""id"":{""location"":{""start"":{""line"":25,""column"":1},""end"":{""line"":25,""column"":10},""source"":""messageFn""},""name"":""messageFn""},""init"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":25,""column"":13},""end"":{""line"":26,""column"":49},""source"":""(r) =\u003e\n\t(\""Check: ${ r._check_name } is: ${ r._level }\"")""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":25,""column"":14},""end"":{""line"":25,""column"":15},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":25,""column"":14},""end"":{""line"":25,""column"":15},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":26,""column"":2},""end"":{""line"":26,""column"":49},""source"":""(\""Check: ${ r._check_name } is: ${ r._level }\"")""},""expression"":{""type"":""StringExpression"",""location"":{""start"":{""line"":26,""column"":3},""end"":{""line"":26,""column"":48},""source"":""\""Check: ${ r._check_name } is: ${ r._level }\""""},""parts"":[{""type"":""TextPart"",""location"":{""start"":{""line"":26,""column"":4},""end"":{""line"":26,""column"":11},""source"":""Check: ""},""value"":""Check: ""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":26,""column"":11},""end"":{""line"":26,""column"":29},""source"":""${ r._check_name }""},""expression"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":26,""column"":14},""end"":{""line"":26,""column"":27},""source"":""r._check_name""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":26,""column"":14},""end"":{""line"":26,""column"":15},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":26,""column"":16},""end"":{""line"":26,""column"":27},""source"":""_check_name""},""name"":""_check_name""}}},{""type"":""TextPart"",""location"":{""start"":{""line"":26,""column"":29},""end"":{""line"":26,""column"":34},""source"":"" is: ""},""value"":"" is: ""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":26,""column"":34},""end"":{""line"":26,""column"":47},""source"":""${ r._level }""},""expression"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":26,""column"":37},""end"":{""line"":26,""column"":45},""source"":""r._level""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":26,""column"":37},""end"":{""line"":26,""column"":38},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":26,""column"":39},""end"":{""line"":26,""column"":45},""source"":""_level""},""name"":""_level""}}}]}}}},{""type"":""ExpressionStatement"",""location"":{""start"":{""line"":28,""column"":1},""end"":{""line"":30,""column"":65},""source"":""data\n\t|\u003e v1.fieldsAsCols()\n\t|\u003e monitor.check(data: check, messageFn: messageFn, crit: crit)""},""expression"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":28,""column"":1},""end"":{""line"":30,""column"":65},""source"":""data\n\t|\u003e v1.fieldsAsCols()\n\t|\u003e monitor.check(data: check, messageFn: messageFn, crit: crit)""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":28,""column"":1},""end"":{""line"":29,""column"":22},""source"":""data\n\t|\u003e v1.fieldsAsCols()""},""argument"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":1},""end"":{""line"":28,""column"":5},""source"":""data""},""name"":""data""},""call"":{""location"":{""start"":{""line"":29,""column"":5},""end"":{""line"":29,""column"":22},""source"":""v1.fieldsAsCols()""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":29,""column"":5},""end"":{""line"":29,""column"":20},""source"":""v1.fieldsAsCols""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":29,""column"":5},""end"":{""line"":29,""column"":7},""source"":""v1""},""name"":""v1""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":29,""column"":8},""end"":{""line"":29,""column"":20},""source"":""fieldsAsCols""},""name"":""fieldsAsCols""}}}},""call"":{""location"":{""start"":{""line"":30,""column"":5},""end"":{""line"":30,""column"":65},""source"":""monitor.check(data: check, messageFn: messageFn, crit: crit)""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":30,""column"":5},""end"":{""line"":30,""column"":18},""source"":""monitor.check""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":5},""end"":{""line"":30,""column"":12},""source"":""monitor""},""name"":""monitor""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":13},""end"":{""line"":30,""column"":18},""source"":""check""},""name"":""check""}},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":30,""column"":19},""end"":{""line"":30,""column"":64},""source"":""data: check, messageFn: messageFn, crit: crit""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":30,""column"":19},""end"":{""line"":30,""column"":30},""source"":""data: check""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":19},""end"":{""line"":30,""column"":23},""source"":""data""},""name"":""data""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":25},""end"":{""line"":30,""column"":30},""source"":""check""},""name"":""check""}},{""type"":""Property"",""location"":{""start"":{""line"":30,""column"":32},""end"":{""line"":30,""column"":52},""source"":""messageFn: messageFn""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":32},""end"":{""line"":30,""column"":41},""source"":""messageFn""},""name"":""messageFn""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":43},""end"":{""line"":30,""column"":52},""source"":""messageFn""},""name"":""messageFn""}},{""type"":""Property"",""location"":{""start"":{""line"":30,""column"":54},""end"":{""line"":30,""column"":64},""source"":""crit: crit""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":54},""end"":{""line"":30,""column"":58},""source"":""crit""},""name"":""crit""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":60},""end"":{""line"":30,""column"":64},""source"":""crit""},""name"":""crit""}}]}]}}}]}]},""Now"":""2020-06-03T03:17:00Z""},""source"":""tasks"",""compiler_type"":""ast""},""dialect"":{""header"":true,""delimiter"":""\u0000"",""annotations"":[""datatype"",""group"",""default""]},""dialect_type"":""no-content-with-error""}",request,query_log,stag01-us-east-4,queryd-v1-6c46d687dc-2t5r5,queryd-v1-6c46d687dc-2t5r5,gke-stag01-us-east-4-highmem-preempti-6beb3a50-nsb6,9b89cdc81f6998f1,false,unknown,queryd-v1,tasks -,,3,2020-06-03T03:17:00Z,2020-06-03T03:18:00Z,2020-06-03T03:17:00.474840337Z,"{""request"":{""authorization"":{""id"":""0000000000000001"",""token"":"""",""status"":""active"",""description"":"""",""orgID"":""6be7ae972b94af48"",""permissions"":[{""action"":""read"",""resource"":{""type"":""authorizations"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""authorizations"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""buckets"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""buckets"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""dashboards"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""dashboards"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""orgs"",""id"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""orgs"",""id"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""sources"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""sources"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""tasks"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""tasks"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""telegrafs"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""telegrafs"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""users"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""users"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""variables"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""variables"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""scrapers"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""scrapers"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""secrets"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""secrets"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""labels"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""labels"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""views"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""views"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""documents"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""documents"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""notificationRules"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""notificationRules"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""checks"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""checks"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""dbrp"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""dbrp"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""users"",""id"":""04f2a3a2bda13000""}},{""action"":""write"",""resource"":{""type"":""users"",""id"":""04f2a3a2bda13000""}}],""createdAt"":""0001-01-01T00:00:00Z"",""updatedAt"":""0001-01-01T00:00:00Z""},""organization_id"":""6be7ae972b94af48"",""compiler"":{""ast"":{""type"":""Package"",""package"":""main"",""files"":[{""type"":""File"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":37,""column"":83},""source"":""import \""strings\""\nimport \""csv\""\nimport \""experimental/http\""\nimport \""system\""\noption task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}\n\nnanoSecondTimeDiff = (t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}\n\nsyntheticURL = \""https://v2.docs.influxdata.com/v2.0/\""\n\ntimeBeforeCall = system.time()\n\nresponse = http.get(url: syntheticURL)\n\ntimeAfterCall = system.time()\n\nresponseTime = nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)\n\ndata = \""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""\n\ncsv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""metadata"":""parser-type=rust"",""package"":null,""imports"":[{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":17},""source"":""import \""strings\""""},""as"":null,""path"":{""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":17},""source"":""\""strings\""""},""value"":""strings""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":2,""column"":1},""end"":{""line"":2,""column"":13},""source"":""import \""csv\""""},""as"":null,""path"":{""location"":{""start"":{""line"":2,""column"":8},""end"":{""line"":2,""column"":13},""source"":""\""csv\""""},""value"":""csv""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":3,""column"":1},""end"":{""line"":3,""column"":27},""source"":""import \""experimental/http\""""},""as"":null,""path"":{""location"":{""start"":{""line"":3,""column"":8},""end"":{""line"":3,""column"":27},""source"":""\""experimental/http\""""},""value"":""experimental/http""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":4,""column"":1},""end"":{""line"":4,""column"":16},""source"":""import \""system\""""},""as"":null,""path"":{""location"":{""start"":{""line"":4,""column"":8},""end"":{""line"":4,""column"":16},""source"":""\""system\""""},""value"":""system""}}],""body"":[{""type"":""OptionStatement"",""location"":{""start"":{""line"":5,""column"":1},""end"":{""line"":8,""column"":2},""source"":""option task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""assignment"":{""type"":""VariableAssignment"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":8,""column"":2},""source"":""task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""id"":{""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":5,""column"":12},""source"":""task""},""name"":""task""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":5,""column"":15},""end"":{""line"":8,""column"":2},""source"":""{ \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":6,""column"":3},""end"":{""line"":6,""column"":37},""source"":""name: \""V2 Docs Synthetic Http.GET\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":6,""column"":3},""end"":{""line"":6,""column"":7},""source"":""name""},""name"":""name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":6,""column"":9},""end"":{""line"":6,""column"":37},""source"":""\""V2 Docs Synthetic Http.GET\""""},""value"":""V2 Docs Synthetic Http.GET""}},{""type"":""Property"",""location"":{""start"":{""line"":7,""column"":3},""end"":{""line"":7,""column"":12},""source"":""every: 1m""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":7,""column"":3},""end"":{""line"":7,""column"":8},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":7,""column"":10},""end"":{""line"":7,""column"":12},""source"":""1m""},""values"":[{""magnitude"":1,""unit"":""m""}]}}]}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":10,""column"":1},""end"":{""line"":12,""column"":2},""source"":""nanoSecondTimeDiff = (t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}""},""id"":{""location"":{""start"":{""line"":10,""column"":1},""end"":{""line"":10,""column"":19},""source"":""nanoSecondTimeDiff""},""name"":""nanoSecondTimeDiff""},""init"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":10,""column"":22},""end"":{""line"":12,""column"":2},""source"":""(t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":10,""column"":23},""end"":{""line"":10,""column"":25},""source"":""t1""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":23},""end"":{""line"":10,""column"":25},""source"":""t1""},""name"":""t1""},""value"":null},{""type"":""Property"",""location"":{""start"":{""line"":10,""column"":27},""end"":{""line"":10,""column"":29},""source"":""t2""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":27},""end"":{""line"":10,""column"":29},""source"":""t2""},""name"":""t2""},""value"":null}],""body"":{""type"":""Block"",""location"":{""start"":{""line"":10,""column"":34},""end"":{""line"":12,""column"":2},""source"":""{\n\treturn uint(v: t2) - uint(v: t1)\n}""},""body"":[{""type"":""ReturnStatement"",""location"":{""start"":{""line"":11,""column"":2},""end"":{""line"":11,""column"":34},""source"":""return uint(v: t2) - uint(v: t1)""},""argument"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":34},""source"":""uint(v: t2) - uint(v: t1)""},""operator"":""-"",""left"":{""type"":""CallExpression"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":20},""source"":""uint(v: t2)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":13},""source"":""uint""},""name"":""uint""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":19},""source"":""v: t2""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":19},""source"":""v: t2""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":15},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":17},""end"":{""line"":11,""column"":19},""source"":""t2""},""name"":""t2""}}]}]},""right"":{""type"":""CallExpression"",""location"":{""start"":{""line"":11,""column"":23},""end"":{""line"":11,""column"":34},""source"":""uint(v: t1)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":23},""end"":{""line"":11,""column"":27},""source"":""uint""},""name"":""uint""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":33},""source"":""v: t1""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":33},""source"":""v: t1""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":29},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":31},""end"":{""line"":11,""column"":33},""source"":""t1""},""name"":""t1""}}]}]}}}]}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":14,""column"":1},""end"":{""line"":14,""column"":54},""source"":""syntheticURL = \""https://v2.docs.influxdata.com/v2.0/\""""},""id"":{""location"":{""start"":{""line"":14,""column"":1},""end"":{""line"":14,""column"":13},""source"":""syntheticURL""},""name"":""syntheticURL""},""init"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":14,""column"":16},""end"":{""line"":14,""column"":54},""source"":""\""https://v2.docs.influxdata.com/v2.0/\""""},""value"":""https://v2.docs.influxdata.com/v2.0/""}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":16,""column"":1},""end"":{""line"":16,""column"":31},""source"":""timeBeforeCall = system.time()""},""id"":{""location"":{""start"":{""line"":16,""column"":1},""end"":{""line"":16,""column"":15},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":31},""source"":""system.time()""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":29},""source"":""system.time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":24},""source"":""system""},""name"":""system""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":16,""column"":25},""end"":{""line"":16,""column"":29},""source"":""time""},""name"":""time""}}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":18,""column"":1},""end"":{""line"":18,""column"":39},""source"":""response = http.get(url: syntheticURL)""},""id"":{""location"":{""start"":{""line"":18,""column"":1},""end"":{""line"":18,""column"":9},""source"":""response""},""name"":""response""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":39},""source"":""http.get(url: syntheticURL)""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":20},""source"":""http.get""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":16},""source"":""http""},""name"":""http""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":17},""end"":{""line"":18,""column"":20},""source"":""get""},""name"":""get""}},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":38},""source"":""url: syntheticURL""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":38},""source"":""url: syntheticURL""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":24},""source"":""url""},""name"":""url""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":26},""end"":{""line"":18,""column"":38},""source"":""syntheticURL""},""name"":""syntheticURL""}}]}]}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":20,""column"":1},""end"":{""line"":20,""column"":30},""source"":""timeAfterCall = system.time()""},""id"":{""location"":{""start"":{""line"":20,""column"":1},""end"":{""line"":20,""column"":14},""source"":""timeAfterCall""},""name"":""timeAfterCall""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":30},""source"":""system.time()""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":28},""source"":""system.time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":23},""source"":""system""},""name"":""system""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":20,""column"":24},""end"":{""line"":20,""column"":28},""source"":""time""},""name"":""time""}}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":22,""column"":1},""end"":{""line"":22,""column"":73},""source"":""responseTime = nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)""},""id"":{""location"":{""start"":{""line"":22,""column"":1},""end"":{""line"":22,""column"":13},""source"":""responseTime""},""name"":""responseTime""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":22,""column"":16},""end"":{""line"":22,""column"":73},""source"":""nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":16},""end"":{""line"":22,""column"":34},""source"":""nanoSecondTimeDiff""},""name"":""nanoSecondTimeDiff""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":72},""source"":""t1: timeBeforeCall, t2: timeAfterCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":53},""source"":""t1: timeBeforeCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":37},""source"":""t1""},""name"":""t1""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":39},""end"":{""line"":22,""column"":53},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""}},{""type"":""Property"",""location"":{""start"":{""line"":22,""column"":55},""end"":{""line"":22,""column"":72},""source"":""t2: timeAfterCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":55},""end"":{""line"":22,""column"":57},""source"":""t2""},""name"":""t2""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":59},""end"":{""line"":22,""column"":72},""source"":""timeAfterCall""},""name"":""timeAfterCall""}}]}]}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":24,""column"":1},""end"":{""line"":28,""column"":133},""source"":""data = \""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""""},""id"":{""location"":{""start"":{""line"":24,""column"":1},""end"":{""line"":24,""column"":5},""source"":""data""},""name"":""data""},""init"":{""type"":""StringExpression"",""location"":{""start"":{""line"":24,""column"":8},""end"":{""line"":28,""column"":133},""source"":""\""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""""},""parts"":[{""type"":""TextPart"",""location"":{""start"":{""line"":24,""column"":9},""end"":{""line"":28,""column"":15},""source"":""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,""},""value"":""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":15},""end"":{""line"":28,""column"":48},""source"":""${string(v: response.statusCode)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":17},""end"":{""line"":28,""column"":47},""source"":""string(v: response.statusCode)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":17},""end"":{""line"":28,""column"":23},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":46},""source"":""v: response.statusCode""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":46},""source"":""v: response.statusCode""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":25},""source"":""v""},""name"":""v""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":28,""column"":27},""end"":{""line"":28,""column"":46},""source"":""response.statusCode""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":27},""end"":{""line"":28,""column"":35},""source"":""response""},""name"":""response""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":36},""end"":{""line"":28,""column"":46},""source"":""statusCode""},""name"":""statusCode""}}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":48},""end"":{""line"":28,""column"":49},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":49},""end"":{""line"":28,""column"":77},""source"":""${string(v: timeBeforeCall)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":51},""end"":{""line"":28,""column"":76},""source"":""string(v: timeBeforeCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":51},""end"":{""line"":28,""column"":57},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":75},""source"":""v: timeBeforeCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":75},""source"":""v: timeBeforeCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":59},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":61},""end"":{""line"":28,""column"":75},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":77},""end"":{""line"":28,""column"":78},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":78},""end"":{""line"":28,""column"":105},""source"":""${string(v: timeAfterCall)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":80},""end"":{""line"":28,""column"":104},""source"":""string(v: timeAfterCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":80},""end"":{""line"":28,""column"":86},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":103},""source"":""v: timeAfterCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":103},""source"":""v: timeAfterCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":88},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":90},""end"":{""line"":28,""column"":103},""source"":""timeAfterCall""},""name"":""timeAfterCall""}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":105},""end"":{""line"":28,""column"":106},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":106},""end"":{""line"":28,""column"":132},""source"":""${string(v: responseTime)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":108},""end"":{""line"":28,""column"":131},""source"":""string(v: responseTime)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":108},""end"":{""line"":28,""column"":114},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":130},""source"":""v: responseTime""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":130},""source"":""v: responseTime""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":116},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":118},""end"":{""line"":28,""column"":130},""source"":""responseTime""},""name"":""responseTime""}}]}]}}]}},{""type"":""ExpressionStatement"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":37,""column"":83},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""expression"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":37,""column"":83},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":35,""column"":49},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":34,""column"":76},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":32,""column"":27},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))""},""argument"":{""type"":""CallExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":20},""source"":""csv.from(csv: data)""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":9},""source"":""csv.from""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":4},""source"":""csv""},""name"":""csv""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":5},""end"":{""line"":30,""column"":9},""source"":""from""},""name"":""from""}},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":19},""source"":""csv: data""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":19},""source"":""csv: data""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":13},""source"":""csv""},""name"":""csv""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":15},""end"":{""line"":30,""column"":19},""source"":""data""},""name"":""data""}}]}]},""call"":{""location"":{""start"":{""line"":31,""column"":5},""end"":{""line"":32,""column"":27},""source"":""map(fn: (r) =\u003e\n\t\t({r with _time: now()}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":5},""end"":{""line"":31,""column"":8},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":32,""column"":26},""source"":""fn: (r) =\u003e\n\t\t({r with _time: now()})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":32,""column"":26},""source"":""fn: (r) =\u003e\n\t\t({r with _time: now()})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":31,""column"":11},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":31,""column"":13},""end"":{""line"":32,""column"":26},""source"":""(r) =\u003e\n\t\t({r with _time: now()})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":31,""column"":14},""end"":{""line"":31,""column"":15},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":14},""end"":{""line"":31,""column"":15},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":32,""column"":3},""end"":{""line"":32,""column"":26},""source"":""({r with _time: now()})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":32,""column"":4},""end"":{""line"":32,""column"":25},""source"":""{r with _time: now()}""},""with"":{""location"":{""start"":{""line"":32,""column"":5},""end"":{""line"":32,""column"":6},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":32,""column"":12},""end"":{""line"":32,""column"":24},""source"":""_time: now()""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":32,""column"":12},""end"":{""line"":32,""column"":17},""source"":""_time""},""name"":""_time""},""value"":{""type"":""CallExpression"",""location"":{""start"":{""line"":32,""column"":19},""end"":{""line"":32,""column"":24},""source"":""now()""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":32,""column"":19},""end"":{""line"":32,""column"":22},""source"":""now""},""name"":""now""}}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":33,""column"":5},""end"":{""line"":34,""column"":76},""source"":""map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":5},""end"":{""line"":33,""column"":8},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":34,""column"":75},""source"":""fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":34,""column"":75},""source"":""fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":33,""column"":11},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":33,""column"":13},""end"":{""line"":34,""column"":75},""source"":""(r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":33,""column"":14},""end"":{""line"":33,""column"":15},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":14},""end"":{""line"":33,""column"":15},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":34,""column"":3},""end"":{""line"":34,""column"":75},""source"":""({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":34,""column"":4},""end"":{""line"":34,""column"":74},""source"":""{r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}""},""with"":{""location"":{""start"":{""line"":34,""column"":5},""end"":{""line"":34,""column"":6},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":12},""end"":{""line"":34,""column"":39},""source"":""_measurement: \""PingService\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":12},""end"":{""line"":34,""column"":24},""source"":""_measurement""},""name"":""_measurement""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":34,""column"":26},""end"":{""line"":34,""column"":39},""source"":""\""PingService\""""},""value"":""PingService""}},{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":41},""end"":{""line"":34,""column"":58},""source"":""url: syntheticURL""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":41},""end"":{""line"":34,""column"":44},""source"":""url""},""name"":""url""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":46},""end"":{""line"":34,""column"":58},""source"":""syntheticURL""},""name"":""syntheticURL""}},{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":60},""end"":{""line"":34,""column"":73},""source"":""method: \""GET\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":60},""end"":{""line"":34,""column"":66},""source"":""method""},""name"":""method""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":34,""column"":68},""end"":{""line"":34,""column"":73},""source"":""\""GET\""""},""value"":""GET""}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":35,""column"":5},""end"":{""line"":35,""column"":49},""source"":""drop(columns: [\""time_before\"", \""time_after\""])""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":35,""column"":5},""end"":{""line"":35,""column"":9},""source"":""drop""},""name"":""drop""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":48},""source"":""columns: [\""time_before\"", \""time_after\""]""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":48},""source"":""columns: [\""time_before\"", \""time_after\""]""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":17},""source"":""columns""},""name"":""columns""},""value"":{""type"":""ArrayExpression"",""location"":{""start"":{""line"":35,""column"":19},""end"":{""line"":35,""column"":48},""source"":""[\""time_before\"", \""time_after\""]""},""elements"":[{""type"":""StringLiteral"",""location"":{""start"":{""line"":35,""column"":20},""end"":{""line"":35,""column"":33},""source"":""\""time_before\""""},""value"":""time_before""},{""type"":""StringLiteral"",""location"":{""start"":{""line"":35,""column"":35},""end"":{""line"":35,""column"":47},""source"":""\""time_after\""""},""value"":""time_after""}]}}]}]}},""call"":{""location"":{""start"":{""line"":36,""column"":5},""end"":{""line"":37,""column"":83},""source"":""to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":5},""end"":{""line"":36,""column"":7},""source"":""to""},""name"":""to""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":37,""column"":82},""source"":""bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":36,""column"":29},""source"":""bucket: \""PingpireGCP\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":36,""column"":14},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":36,""column"":16},""end"":{""line"":36,""column"":29},""source"":""\""PingpireGCP\""""},""value"":""PingpireGCP""}},{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":31},""end"":{""line"":36,""column"":56},""source"":""orgID: \""6be7ae972b94af48\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":31},""end"":{""line"":36,""column"":36},""source"":""orgID""},""name"":""orgID""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":36,""column"":38},""end"":{""line"":36,""column"":56},""source"":""\""6be7ae972b94af48\""""},""value"":""6be7ae972b94af48""}},{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":58},""end"":{""line"":37,""column"":82},""source"":""fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":58},""end"":{""line"":36,""column"":65},""source"":""fieldFn""},""name"":""fieldFn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":36,""column"":67},""end"":{""line"":37,""column"":82},""source"":""(r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":68},""end"":{""line"":36,""column"":69},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":68},""end"":{""line"":36,""column"":69},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":37,""column"":3},""end"":{""line"":37,""column"":82},""source"":""({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":37,""column"":4},""end"":{""line"":37,""column"":81},""source"":""{\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":5},""end"":{""line"":37,""column"":36},""source"":""\""responseCode\"": r.response_code""},""key"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":37,""column"":5},""end"":{""line"":37,""column"":19},""source"":""\""responseCode\""""},""value"":""responseCode""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":37,""column"":21},""end"":{""line"":37,""column"":36},""source"":""r.response_code""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":21},""end"":{""line"":37,""column"":22},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":23},""end"":{""line"":37,""column"":36},""source"":""response_code""},""name"":""response_code""}}},{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":38},""end"":{""line"":37,""column"":80},""source"":""\""responseTime\"": int(v: r.response_time_ns)""},""key"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":37,""column"":38},""end"":{""line"":37,""column"":52},""source"":""\""responseTime\""""},""value"":""responseTime""},""value"":{""type"":""CallExpression"",""location"":{""start"":{""line"":37,""column"":54},""end"":{""line"":37,""column"":80},""source"":""int(v: r.response_time_ns)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":54},""end"":{""line"":37,""column"":57},""source"":""int""},""name"":""int""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":79},""source"":""v: r.response_time_ns""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":79},""source"":""v: r.response_time_ns""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":59},""source"":""v""},""name"":""v""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":37,""column"":61},""end"":{""line"":37,""column"":79},""source"":""r.response_time_ns""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":61},""end"":{""line"":37,""column"":62},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":63},""end"":{""line"":37,""column"":79},""source"":""response_time_ns""},""name"":""response_time_ns""}}}]}]}}]}}}}]}]}}}]}]},""Now"":""2020-06-03T03:17:00Z""},""source"":""tasks"",""compiler_type"":""ast""},""dialect"":{""header"":true,""delimiter"":""\u0000"",""annotations"":[""datatype"",""group"",""default""]},""dialect_type"":""no-content-with-error""}",request,query_log,stag01-us-east-4,queryd-v1-6c46d687dc-2t5r5,queryd-v1-6c46d687dc-2t5r5,gke-stag01-us-east-4-highmem-preempti-6beb3a50-nsb6,6be7ae972b94af48,false,unknown,queryd-v1,tasks +,,3,2020-06-03T03:17:00Z,2020-06-03T03:18:00Z,2020-06-03T03:17:00.474840337Z,"{""request"":{""authorization"":{""id"":""0000000000000001"",""token"":"""",""status"":""active"",""description"":"""",""orgID"":""6be7ae972b94af48"",""permissions"":[{""action"":""read"",""resource"":{""type"":""authorizations"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""authorizations"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""buckets"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""buckets"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""dashboards"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""dashboards"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""orgs"",""id"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""orgs"",""id"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""sources"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""sources"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""tasks"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""tasks"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""telegrafs"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""telegrafs"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""users"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""users"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""variables"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""variables"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""scrapers"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""scrapers"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""secrets"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""secrets"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""labels"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""labels"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""views"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""views"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""documents"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""documents"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""notificationRules"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""notificationRules"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""notificationEndpoints"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""checks"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""checks"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""dbrp"",""orgID"":""6be7ae972b94af48""}},{""action"":""write"",""resource"":{""type"":""dbrp"",""orgID"":""6be7ae972b94af48""}},{""action"":""read"",""resource"":{""type"":""users"",""id"":""04f2a3a2bda13000""}},{""action"":""write"",""resource"":{""type"":""users"",""id"":""04f2a3a2bda13000""}}],""createdAt"":""0001-01-01T00:00:00Z"",""updatedAt"":""0001-01-01T00:00:00Z""},""organization_id"":""6be7ae972b94af48"",""compiler"":{""ast"":{""type"":""Package"",""package"":""main"",""files"":[{""type"":""File"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":37,""column"":83},""source"":""import \""strings\""\nimport \""csv\""\nimport \""experimental/http\""\nimport \""system\""\noption task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}\n\nnanoSecondTimeDiff = (t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}\n\nsyntheticURL = \""https://docs.influxdata.com/influxdb/latest/\""\n\ntimeBeforeCall = system.time()\n\nresponse = http.get(url: syntheticURL)\n\ntimeAfterCall = system.time()\n\nresponseTime = nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)\n\ndata = \""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""\n\ncsv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""metadata"":""parser-type=rust"",""package"":null,""imports"":[{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":1,""column"":1},""end"":{""line"":1,""column"":17},""source"":""import \""strings\""""},""as"":null,""path"":{""location"":{""start"":{""line"":1,""column"":8},""end"":{""line"":1,""column"":17},""source"":""\""strings\""""},""value"":""strings""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":2,""column"":1},""end"":{""line"":2,""column"":13},""source"":""import \""csv\""""},""as"":null,""path"":{""location"":{""start"":{""line"":2,""column"":8},""end"":{""line"":2,""column"":13},""source"":""\""csv\""""},""value"":""csv""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":3,""column"":1},""end"":{""line"":3,""column"":27},""source"":""import \""experimental/http\""""},""as"":null,""path"":{""location"":{""start"":{""line"":3,""column"":8},""end"":{""line"":3,""column"":27},""source"":""\""experimental/http\""""},""value"":""experimental/http""}},{""type"":""ImportDeclaration"",""location"":{""start"":{""line"":4,""column"":1},""end"":{""line"":4,""column"":16},""source"":""import \""system\""""},""as"":null,""path"":{""location"":{""start"":{""line"":4,""column"":8},""end"":{""line"":4,""column"":16},""source"":""\""system\""""},""value"":""system""}}],""body"":[{""type"":""OptionStatement"",""location"":{""start"":{""line"":5,""column"":1},""end"":{""line"":8,""column"":2},""source"":""option task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""assignment"":{""type"":""VariableAssignment"",""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":8,""column"":2},""source"":""task = { \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""id"":{""location"":{""start"":{""line"":5,""column"":8},""end"":{""line"":5,""column"":12},""source"":""task""},""name"":""task""},""init"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":5,""column"":15},""end"":{""line"":8,""column"":2},""source"":""{ \n name: \""V2 Docs Synthetic Http.GET\"",\n every: 1m,\n}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":6,""column"":3},""end"":{""line"":6,""column"":37},""source"":""name: \""V2 Docs Synthetic Http.GET\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":6,""column"":3},""end"":{""line"":6,""column"":7},""source"":""name""},""name"":""name""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":6,""column"":9},""end"":{""line"":6,""column"":37},""source"":""\""V2 Docs Synthetic Http.GET\""""},""value"":""V2 Docs Synthetic Http.GET""}},{""type"":""Property"",""location"":{""start"":{""line"":7,""column"":3},""end"":{""line"":7,""column"":12},""source"":""every: 1m""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":7,""column"":3},""end"":{""line"":7,""column"":8},""source"":""every""},""name"":""every""},""value"":{""type"":""DurationLiteral"",""location"":{""start"":{""line"":7,""column"":10},""end"":{""line"":7,""column"":12},""source"":""1m""},""values"":[{""magnitude"":1,""unit"":""m""}]}}]}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":10,""column"":1},""end"":{""line"":12,""column"":2},""source"":""nanoSecondTimeDiff = (t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}""},""id"":{""location"":{""start"":{""line"":10,""column"":1},""end"":{""line"":10,""column"":19},""source"":""nanoSecondTimeDiff""},""name"":""nanoSecondTimeDiff""},""init"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":10,""column"":22},""end"":{""line"":12,""column"":2},""source"":""(t1, t2) =\u003e {\n\treturn uint(v: t2) - uint(v: t1)\n}""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":10,""column"":23},""end"":{""line"":10,""column"":25},""source"":""t1""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":23},""end"":{""line"":10,""column"":25},""source"":""t1""},""name"":""t1""},""value"":null},{""type"":""Property"",""location"":{""start"":{""line"":10,""column"":27},""end"":{""line"":10,""column"":29},""source"":""t2""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":10,""column"":27},""end"":{""line"":10,""column"":29},""source"":""t2""},""name"":""t2""},""value"":null}],""body"":{""type"":""Block"",""location"":{""start"":{""line"":10,""column"":34},""end"":{""line"":12,""column"":2},""source"":""{\n\treturn uint(v: t2) - uint(v: t1)\n}""},""body"":[{""type"":""ReturnStatement"",""location"":{""start"":{""line"":11,""column"":2},""end"":{""line"":11,""column"":34},""source"":""return uint(v: t2) - uint(v: t1)""},""argument"":{""type"":""BinaryExpression"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":34},""source"":""uint(v: t2) - uint(v: t1)""},""operator"":""-"",""left"":{""type"":""CallExpression"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":20},""source"":""uint(v: t2)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":9},""end"":{""line"":11,""column"":13},""source"":""uint""},""name"":""uint""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":19},""source"":""v: t2""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":19},""source"":""v: t2""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":14},""end"":{""line"":11,""column"":15},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":17},""end"":{""line"":11,""column"":19},""source"":""t2""},""name"":""t2""}}]}]},""right"":{""type"":""CallExpression"",""location"":{""start"":{""line"":11,""column"":23},""end"":{""line"":11,""column"":34},""source"":""uint(v: t1)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":23},""end"":{""line"":11,""column"":27},""source"":""uint""},""name"":""uint""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":33},""source"":""v: t1""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":33},""source"":""v: t1""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":28},""end"":{""line"":11,""column"":29},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":11,""column"":31},""end"":{""line"":11,""column"":33},""source"":""t1""},""name"":""t1""}}]}]}}}]}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":14,""column"":1},""end"":{""line"":14,""column"":54},""source"":""syntheticURL = \""https://docs.influxdata.com/influxdb/latest/\""""},""id"":{""location"":{""start"":{""line"":14,""column"":1},""end"":{""line"":14,""column"":13},""source"":""syntheticURL""},""name"":""syntheticURL""},""init"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":14,""column"":16},""end"":{""line"":14,""column"":54},""source"":""\""https://docs.influxdata.com/influxdb/latest/\""""},""value"":""https://docs.influxdata.com/influxdb/latest/""}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":16,""column"":1},""end"":{""line"":16,""column"":31},""source"":""timeBeforeCall = system.time()""},""id"":{""location"":{""start"":{""line"":16,""column"":1},""end"":{""line"":16,""column"":15},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":31},""source"":""system.time()""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":29},""source"":""system.time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":16,""column"":18},""end"":{""line"":16,""column"":24},""source"":""system""},""name"":""system""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":16,""column"":25},""end"":{""line"":16,""column"":29},""source"":""time""},""name"":""time""}}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":18,""column"":1},""end"":{""line"":18,""column"":39},""source"":""response = http.get(url: syntheticURL)""},""id"":{""location"":{""start"":{""line"":18,""column"":1},""end"":{""line"":18,""column"":9},""source"":""response""},""name"":""response""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":39},""source"":""http.get(url: syntheticURL)""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":20},""source"":""http.get""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":12},""end"":{""line"":18,""column"":16},""source"":""http""},""name"":""http""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":17},""end"":{""line"":18,""column"":20},""source"":""get""},""name"":""get""}},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":38},""source"":""url: syntheticURL""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":38},""source"":""url: syntheticURL""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":21},""end"":{""line"":18,""column"":24},""source"":""url""},""name"":""url""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":18,""column"":26},""end"":{""line"":18,""column"":38},""source"":""syntheticURL""},""name"":""syntheticURL""}}]}]}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":20,""column"":1},""end"":{""line"":20,""column"":30},""source"":""timeAfterCall = system.time()""},""id"":{""location"":{""start"":{""line"":20,""column"":1},""end"":{""line"":20,""column"":14},""source"":""timeAfterCall""},""name"":""timeAfterCall""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":30},""source"":""system.time()""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":28},""source"":""system.time""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":20,""column"":17},""end"":{""line"":20,""column"":23},""source"":""system""},""name"":""system""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":20,""column"":24},""end"":{""line"":20,""column"":28},""source"":""time""},""name"":""time""}}}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":22,""column"":1},""end"":{""line"":22,""column"":73},""source"":""responseTime = nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)""},""id"":{""location"":{""start"":{""line"":22,""column"":1},""end"":{""line"":22,""column"":13},""source"":""responseTime""},""name"":""responseTime""},""init"":{""type"":""CallExpression"",""location"":{""start"":{""line"":22,""column"":16},""end"":{""line"":22,""column"":73},""source"":""nanoSecondTimeDiff(t1: timeBeforeCall, t2: timeAfterCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":16},""end"":{""line"":22,""column"":34},""source"":""nanoSecondTimeDiff""},""name"":""nanoSecondTimeDiff""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":72},""source"":""t1: timeBeforeCall, t2: timeAfterCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":53},""source"":""t1: timeBeforeCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":35},""end"":{""line"":22,""column"":37},""source"":""t1""},""name"":""t1""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":39},""end"":{""line"":22,""column"":53},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""}},{""type"":""Property"",""location"":{""start"":{""line"":22,""column"":55},""end"":{""line"":22,""column"":72},""source"":""t2: timeAfterCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":55},""end"":{""line"":22,""column"":57},""source"":""t2""},""name"":""t2""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":22,""column"":59},""end"":{""line"":22,""column"":72},""source"":""timeAfterCall""},""name"":""timeAfterCall""}}]}]}},{""type"":""VariableAssignment"",""location"":{""start"":{""line"":24,""column"":1},""end"":{""line"":28,""column"":133},""source"":""data = \""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""""},""id"":{""location"":{""start"":{""line"":24,""column"":1},""end"":{""line"":24,""column"":5},""source"":""data""},""name"":""data""},""init"":{""type"":""StringExpression"",""location"":{""start"":{""line"":24,""column"":8},""end"":{""line"":28,""column"":133},""source"":""\""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,${string(v: response.statusCode)},${string(v: timeBeforeCall)},${string(v: timeAfterCall)},${string(v: responseTime)}\""""},""parts"":[{""type"":""TextPart"",""location"":{""start"":{""line"":24,""column"":9},""end"":{""line"":28,""column"":15},""source"":""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,""},""value"":""#group,false,false,true,true,true,true,true\n#datatype,string,long,string,string,string,string,string\n#default,mean,,,,,,\n,result,table,service,response_code,time_before,time_after,response_time_ns\n,,0,http_ping,""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":15},""end"":{""line"":28,""column"":48},""source"":""${string(v: response.statusCode)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":17},""end"":{""line"":28,""column"":47},""source"":""string(v: response.statusCode)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":17},""end"":{""line"":28,""column"":23},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":46},""source"":""v: response.statusCode""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":46},""source"":""v: response.statusCode""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":24},""end"":{""line"":28,""column"":25},""source"":""v""},""name"":""v""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":28,""column"":27},""end"":{""line"":28,""column"":46},""source"":""response.statusCode""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":27},""end"":{""line"":28,""column"":35},""source"":""response""},""name"":""response""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":36},""end"":{""line"":28,""column"":46},""source"":""statusCode""},""name"":""statusCode""}}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":48},""end"":{""line"":28,""column"":49},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":49},""end"":{""line"":28,""column"":77},""source"":""${string(v: timeBeforeCall)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":51},""end"":{""line"":28,""column"":76},""source"":""string(v: timeBeforeCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":51},""end"":{""line"":28,""column"":57},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":75},""source"":""v: timeBeforeCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":75},""source"":""v: timeBeforeCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":58},""end"":{""line"":28,""column"":59},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":61},""end"":{""line"":28,""column"":75},""source"":""timeBeforeCall""},""name"":""timeBeforeCall""}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":77},""end"":{""line"":28,""column"":78},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":78},""end"":{""line"":28,""column"":105},""source"":""${string(v: timeAfterCall)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":80},""end"":{""line"":28,""column"":104},""source"":""string(v: timeAfterCall)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":80},""end"":{""line"":28,""column"":86},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":103},""source"":""v: timeAfterCall""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":103},""source"":""v: timeAfterCall""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":87},""end"":{""line"":28,""column"":88},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":90},""end"":{""line"":28,""column"":103},""source"":""timeAfterCall""},""name"":""timeAfterCall""}}]}]}},{""type"":""TextPart"",""location"":{""start"":{""line"":28,""column"":105},""end"":{""line"":28,""column"":106},""source"":"",""},""value"":"",""},{""type"":""InterpolatedPart"",""location"":{""start"":{""line"":28,""column"":106},""end"":{""line"":28,""column"":132},""source"":""${string(v: responseTime)}""},""expression"":{""type"":""CallExpression"",""location"":{""start"":{""line"":28,""column"":108},""end"":{""line"":28,""column"":131},""source"":""string(v: responseTime)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":108},""end"":{""line"":28,""column"":114},""source"":""string""},""name"":""string""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":130},""source"":""v: responseTime""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":130},""source"":""v: responseTime""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":115},""end"":{""line"":28,""column"":116},""source"":""v""},""name"":""v""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":28,""column"":118},""end"":{""line"":28,""column"":130},""source"":""responseTime""},""name"":""responseTime""}}]}]}}]}},{""type"":""ExpressionStatement"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":37,""column"":83},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""expression"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":37,""column"":83},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])\n\t|\u003e to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":35,""column"":49},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))\n\t|\u003e drop(columns: [\""time_before\"", \""time_after\""])""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":34,""column"":76},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))""},""argument"":{""type"":""PipeExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":32,""column"":27},""source"":""csv.from(csv: data)\n\t|\u003e map(fn: (r) =\u003e\n\t\t({r with _time: now()}))""},""argument"":{""type"":""CallExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":20},""source"":""csv.from(csv: data)""},""callee"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":9},""source"":""csv.from""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":1},""end"":{""line"":30,""column"":4},""source"":""csv""},""name"":""csv""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":5},""end"":{""line"":30,""column"":9},""source"":""from""},""name"":""from""}},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":19},""source"":""csv: data""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":19},""source"":""csv: data""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":10},""end"":{""line"":30,""column"":13},""source"":""csv""},""name"":""csv""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":30,""column"":15},""end"":{""line"":30,""column"":19},""source"":""data""},""name"":""data""}}]}]},""call"":{""location"":{""start"":{""line"":31,""column"":5},""end"":{""line"":32,""column"":27},""source"":""map(fn: (r) =\u003e\n\t\t({r with _time: now()}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":5},""end"":{""line"":31,""column"":8},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":32,""column"":26},""source"":""fn: (r) =\u003e\n\t\t({r with _time: now()})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":32,""column"":26},""source"":""fn: (r) =\u003e\n\t\t({r with _time: now()})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":9},""end"":{""line"":31,""column"":11},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":31,""column"":13},""end"":{""line"":32,""column"":26},""source"":""(r) =\u003e\n\t\t({r with _time: now()})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":31,""column"":14},""end"":{""line"":31,""column"":15},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":31,""column"":14},""end"":{""line"":31,""column"":15},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":32,""column"":3},""end"":{""line"":32,""column"":26},""source"":""({r with _time: now()})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":32,""column"":4},""end"":{""line"":32,""column"":25},""source"":""{r with _time: now()}""},""with"":{""location"":{""start"":{""line"":32,""column"":5},""end"":{""line"":32,""column"":6},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":32,""column"":12},""end"":{""line"":32,""column"":24},""source"":""_time: now()""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":32,""column"":12},""end"":{""line"":32,""column"":17},""source"":""_time""},""name"":""_time""},""value"":{""type"":""CallExpression"",""location"":{""start"":{""line"":32,""column"":19},""end"":{""line"":32,""column"":24},""source"":""now()""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":32,""column"":19},""end"":{""line"":32,""column"":22},""source"":""now""},""name"":""now""}}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":33,""column"":5},""end"":{""line"":34,""column"":76},""source"":""map(fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":5},""end"":{""line"":33,""column"":8},""source"":""map""},""name"":""map""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":34,""column"":75},""source"":""fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":34,""column"":75},""source"":""fn: (r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":9},""end"":{""line"":33,""column"":11},""source"":""fn""},""name"":""fn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":33,""column"":13},""end"":{""line"":34,""column"":75},""source"":""(r) =\u003e\n\t\t({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":33,""column"":14},""end"":{""line"":33,""column"":15},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":33,""column"":14},""end"":{""line"":33,""column"":15},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":34,""column"":3},""end"":{""line"":34,""column"":75},""source"":""({r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":34,""column"":4},""end"":{""line"":34,""column"":74},""source"":""{r with _measurement: \""PingService\"", url: syntheticURL, method: \""GET\""}""},""with"":{""location"":{""start"":{""line"":34,""column"":5},""end"":{""line"":34,""column"":6},""source"":""r""},""name"":""r""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":12},""end"":{""line"":34,""column"":39},""source"":""_measurement: \""PingService\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":12},""end"":{""line"":34,""column"":24},""source"":""_measurement""},""name"":""_measurement""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":34,""column"":26},""end"":{""line"":34,""column"":39},""source"":""\""PingService\""""},""value"":""PingService""}},{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":41},""end"":{""line"":34,""column"":58},""source"":""url: syntheticURL""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":41},""end"":{""line"":34,""column"":44},""source"":""url""},""name"":""url""},""value"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":46},""end"":{""line"":34,""column"":58},""source"":""syntheticURL""},""name"":""syntheticURL""}},{""type"":""Property"",""location"":{""start"":{""line"":34,""column"":60},""end"":{""line"":34,""column"":73},""source"":""method: \""GET\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":34,""column"":60},""end"":{""line"":34,""column"":66},""source"":""method""},""name"":""method""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":34,""column"":68},""end"":{""line"":34,""column"":73},""source"":""\""GET\""""},""value"":""GET""}}]}}}}]}]}},""call"":{""location"":{""start"":{""line"":35,""column"":5},""end"":{""line"":35,""column"":49},""source"":""drop(columns: [\""time_before\"", \""time_after\""])""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":35,""column"":5},""end"":{""line"":35,""column"":9},""source"":""drop""},""name"":""drop""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":48},""source"":""columns: [\""time_before\"", \""time_after\""]""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":48},""source"":""columns: [\""time_before\"", \""time_after\""]""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":35,""column"":10},""end"":{""line"":35,""column"":17},""source"":""columns""},""name"":""columns""},""value"":{""type"":""ArrayExpression"",""location"":{""start"":{""line"":35,""column"":19},""end"":{""line"":35,""column"":48},""source"":""[\""time_before\"", \""time_after\""]""},""elements"":[{""type"":""StringLiteral"",""location"":{""start"":{""line"":35,""column"":20},""end"":{""line"":35,""column"":33},""source"":""\""time_before\""""},""value"":""time_before""},{""type"":""StringLiteral"",""location"":{""start"":{""line"":35,""column"":35},""end"":{""line"":35,""column"":47},""source"":""\""time_after\""""},""value"":""time_after""}]}}]}]}},""call"":{""location"":{""start"":{""line"":36,""column"":5},""end"":{""line"":37,""column"":83},""source"":""to(bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}))""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":5},""end"":{""line"":36,""column"":7},""source"":""to""},""name"":""to""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":37,""column"":82},""source"":""bucket: \""PingpireGCP\"", orgID: \""6be7ae972b94af48\"", fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":36,""column"":29},""source"":""bucket: \""PingpireGCP\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":8},""end"":{""line"":36,""column"":14},""source"":""bucket""},""name"":""bucket""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":36,""column"":16},""end"":{""line"":36,""column"":29},""source"":""\""PingpireGCP\""""},""value"":""PingpireGCP""}},{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":31},""end"":{""line"":36,""column"":56},""source"":""orgID: \""6be7ae972b94af48\""""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":31},""end"":{""line"":36,""column"":36},""source"":""orgID""},""name"":""orgID""},""value"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":36,""column"":38},""end"":{""line"":36,""column"":56},""source"":""\""6be7ae972b94af48\""""},""value"":""6be7ae972b94af48""}},{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":58},""end"":{""line"":37,""column"":82},""source"":""fieldFn: (r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":58},""end"":{""line"":36,""column"":65},""source"":""fieldFn""},""name"":""fieldFn""},""value"":{""type"":""FunctionExpression"",""location"":{""start"":{""line"":36,""column"":67},""end"":{""line"":37,""column"":82},""source"":""(r) =\u003e\n\t\t({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""params"":[{""type"":""Property"",""location"":{""start"":{""line"":36,""column"":68},""end"":{""line"":36,""column"":69},""source"":""r""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":36,""column"":68},""end"":{""line"":36,""column"":69},""source"":""r""},""name"":""r""},""value"":null}],""body"":{""type"":""ParenExpression"",""location"":{""start"":{""line"":37,""column"":3},""end"":{""line"":37,""column"":82},""source"":""({\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)})""},""expression"":{""type"":""ObjectExpression"",""location"":{""start"":{""line"":37,""column"":4},""end"":{""line"":37,""column"":81},""source"":""{\""responseCode\"": r.response_code, \""responseTime\"": int(v: r.response_time_ns)}""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":5},""end"":{""line"":37,""column"":36},""source"":""\""responseCode\"": r.response_code""},""key"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":37,""column"":5},""end"":{""line"":37,""column"":19},""source"":""\""responseCode\""""},""value"":""responseCode""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":37,""column"":21},""end"":{""line"":37,""column"":36},""source"":""r.response_code""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":21},""end"":{""line"":37,""column"":22},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":23},""end"":{""line"":37,""column"":36},""source"":""response_code""},""name"":""response_code""}}},{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":38},""end"":{""line"":37,""column"":80},""source"":""\""responseTime\"": int(v: r.response_time_ns)""},""key"":{""type"":""StringLiteral"",""location"":{""start"":{""line"":37,""column"":38},""end"":{""line"":37,""column"":52},""source"":""\""responseTime\""""},""value"":""responseTime""},""value"":{""type"":""CallExpression"",""location"":{""start"":{""line"":37,""column"":54},""end"":{""line"":37,""column"":80},""source"":""int(v: r.response_time_ns)""},""callee"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":54},""end"":{""line"":37,""column"":57},""source"":""int""},""name"":""int""},""arguments"":[{""type"":""ObjectExpression"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":79},""source"":""v: r.response_time_ns""},""properties"":[{""type"":""Property"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":79},""source"":""v: r.response_time_ns""},""key"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":58},""end"":{""line"":37,""column"":59},""source"":""v""},""name"":""v""},""value"":{""type"":""MemberExpression"",""location"":{""start"":{""line"":37,""column"":61},""end"":{""line"":37,""column"":79},""source"":""r.response_time_ns""},""object"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":61},""end"":{""line"":37,""column"":62},""source"":""r""},""name"":""r""},""property"":{""type"":""Identifier"",""location"":{""start"":{""line"":37,""column"":63},""end"":{""line"":37,""column"":79},""source"":""response_time_ns""},""name"":""response_time_ns""}}}]}]}}]}}}}]}]}}}]}]},""Now"":""2020-06-03T03:17:00Z""},""source"":""tasks"",""compiler_type"":""ast""},""dialect"":{""header"":true,""delimiter"":""\u0000"",""annotations"":[""datatype"",""group"",""default""]},""dialect_type"":""no-content-with-error""}",request,query_log,stag01-us-east-4,queryd-v1-6c46d687dc-2t5r5,queryd-v1-6c46d687dc-2t5r5,gke-stag01-us-east-4-highmem-preempti-6beb3a50-nsb6,6be7ae972b94af48,false,unknown,queryd-v1,tasks diff --git a/ui/src/telegrafs/components/TelegrafExplainer.tsx b/ui/src/telegrafs/components/TelegrafExplainer.tsx index 31122bc8649..341610b2ee6 100644 --- a/ui/src/telegrafs/components/TelegrafExplainer.tsx +++ b/ui/src/telegrafs/components/TelegrafExplainer.tsx @@ -40,7 +40,7 @@ const TelegrafExplainer: FunctionComponent = ({
Here's a handy guide for{' '}
Getting Started with Telegraf diff --git a/ui/src/utils/lineWriter.ts b/ui/src/utils/lineWriter.ts index ee6be1f1d42..9c8595a2fba 100644 --- a/ui/src/utils/lineWriter.ts +++ b/ui/src/utils/lineWriter.ts @@ -67,7 +67,7 @@ export class LineWriter { let tagString = '' Object.keys(tags) // Sort keys for a little extra perf - // https://v2.docs.influxdata.com/v2.0/write-data/best-practices/optimize-writes/#sort-tags-by-key + // https://docs.influxdata.com/influxdb/latest/write-data/best-practices/optimize-writes/#sort-tags-by-key .sort((a, b) => a.localeCompare(b)) .forEach((tagKey, i, tagKeys) => { const tagValue = tags[tagKey] diff --git a/ui/src/writeData/components/telegrafPlugins/influxdb_v2_listener.md b/ui/src/writeData/components/telegrafPlugins/influxdb_v2_listener.md index 4258e021d85..71fa6c19bee 100644 --- a/ui/src/writeData/components/telegrafPlugins/influxdb_v2_listener.md +++ b/ui/src/writeData/components/telegrafPlugins/influxdb_v2_listener.md @@ -53,4 +53,4 @@ Metrics are created from InfluxDB Line Protocol in the request body. curl -i -XPOST 'http://localhost:8186/api/v2/write' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000' ``` -[influxdb_http_api]: https://v2.docs.influxdata.com/v2.0/api/ +[influxdb_http_api]: https://docs.influxdata.com/influxdb/latest/api/