text:
expected RPAREN, got EOF when creating a task

i thought we fixed with #14869 but it looks like it is still an issue.

package main
import "influxdata/influxdb/monitor"
import "influxdata/influxdb/v1"

option task = {name: "Stock Change", every: 1m, offset: 0s}

data = from(bucket: "telegraf")
  |> range(start: -5m)
  |> filter(fn: (r) => (r._measurement == "iexapis"))
  |> filter(fn: (r) => (r._field == "changePercent"))
  |> filter(fn: (r) => (r.isUSMarketOpen == "true"))
  |> aggregateWindow(every: 5m, fn: max, createEmpty: false)

check = {
  _check_id: "04725fb11fa63000",
  _check_name: "Stock Change",
  _type: "threshold",
  tags: {},
}

crit = (r) => (r.changePercent < -0.01 or r.changePercent > 0.01)
ok = (r) => (r.changePercent < 0.01 and r.changePercent > -0.01)
messageFn = (r) => ("Task: ${r.symbol} changed by ${string(v:r.changedPercent)}")

data |> v1.fieldsAsCols() |> monitor.check( data: check, messageFn: messageFn, crit: crit, ok: ok )

This is the result of https://github.com/influxdata/flux/issues/1801.
The functions assigned to variables crit, ok, and messageFn all have their closing parens removed in their respective locations in the AST.

{
    "ast": {
        "type": "Package",
        "package": "main",
        "files": [
            {
                "type": "File",
                "location": {
                    "start": {
                        "line": 1,
                        "column": 1
                    },
                    "end": {
                        "line": 25,
                        "column": 104
                    },
                    "source": "package main\n      import \"influxdata/influxdb/monitor\"\n      import \"influxdata/influxdb/v1\"\n\n      option task = { name: \"stock price\", every: 1m, offset: 0s }\n\n      data = from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))\n        |\u003e filter(fn: (r) =\u003e (r._field == \"changePercent\"))\n        |\u003e filter(fn: (r) =\u003e (r.isUSMarketOpen == \"true\"))\n        |\u003e aggregateWindow(every: 5m, fn: max, createEmpty: false)\n\n      check = {\n        _check_id: \"04725fb11fa63000\",\n        _check_name: \"Stock Change\",\n        _type: \"threshold\",\n        tags: {},\n      }\n\n      crit = (r) =\u003e (r.changePercent \u003c -0.01 or r.changePercent \u003e 0.01)\n      ok = (r) =\u003e (r.changePercent \u003c 0.01 and r.changePercent \u003e -0.01)\n      messageFn = (r) =\u003e (\"Task: ${r.symbol} changed by ${string(v:r.changedPercent)}\")\n\n      data |\u003e v1.fieldsAsCols() |\u003e monitor.check(data: check, messageFn: messageFn, crit: crit, ok: ok)"
                },
                "package": {
                    "type": "PackageClause",
                    "location": {
                        "start": {
                            "line": 1,
                            "column": 1
                        },
                        "end": {
                            "line": 1,
                            "column": 13
                        },
                        "source": "package main"
                    },
                    "name": {
                        "type": "Identifier",
                        "location": {
                            "start": {
                                "line": 1,
                                "column": 9
                            },
                            "end": {
                                "line": 1,
                                "column": 13
                            },
                            "source": "main"
                        },
                        "name": "main"
                    }
                },
                "imports": [
                    {
                        "type": "ImportDeclaration",
                        "location": {
                            "start": {
                                "line": 2,
                                "column": 7
                            },
                            "end": {
                                "line": 2,
                                "column": 43
                            },
                            "source": "import \"influxdata/influxdb/monitor\""
                        },
                        "as": null,
                        "path": {
                            "type": "StringLiteral",
                            "location": {
                                "start": {
                                    "line": 2,
                                    "column": 14
                                },
                                "end": {
                                    "line": 2,
                                    "column": 43
                                },
                                "source": "\"influxdata/influxdb/monitor\""
                            },
                            "value": "influxdata/influxdb/monitor"
                        }
                    },
                    {
                        "type": "ImportDeclaration",
                        "location": {
                            "start": {
                                "line": 3,
                                "column": 7
                            },
                            "end": {
                                "line": 3,
                                "column": 38
                            },
                            "source": "import \"influxdata/influxdb/v1\""
                        },
                        "as": null,
                        "path": {
                            "type": "StringLiteral",
                            "location": {
                                "start": {
                                    "line": 3,
                                    "column": 14
                                },
                                "end": {
                                    "line": 3,
                                    "column": 38
                                },
                                "source": "\"influxdata/influxdb/v1\""
                            },
                            "value": "influxdata/influxdb/v1"
                        }
                    }
                ],
                "body": [
                    {
                        "type": "OptionStatement",
                        "location": {
                            "start": {
                                "line": 5,
                                "column": 7
                            },
                            "end": {
                                "line": 5,
                                "column": 67
                            },
                            "source": "option task = { name: \"stock price\", every: 1m, offset: 0s }"
                        },
                        "assignment": {
                            "type": "VariableAssignment",
                            "location": {
                                "start": {
                                    "line": 5,
                                    "column": 14
                                },
                                "end": {
                                    "line": 5,
                                    "column": 67
                                },
                                "source": "task = { name: \"stock price\", every: 1m, offset: 0s }"
                            },
                            "id": {
                                "type": "Identifier",
                                "location": {
                                    "start": {
                                        "line": 5,
                                        "column": 14
                                    },
                                    "end": {
                                        "line": 5,
                                        "column": 18
                                    },
                                    "source": "task"
                                },
                                "name": "task"
                            },
                            "init": {
                                "type": "ObjectExpression",
                                "location": {
                                    "start": {
                                        "line": 5,
                                        "column": 21
                                    },
                                    "end": {
                                        "line": 5,
                                        "column": 67
                                    },
                                    "source": "{ name: \"stock price\", every: 1m, offset: 0s }"
                                },
                                "properties": [
                                    {
                                        "type": "Property",
                                        "location": {
                                            "start": {
                                                "line": 5,
                                                "column": 23
                                            },
                                            "end": {
                                                "line": 5,
                                                "column": 42
                                            },
                                            "source": "name: \"stock price\""
                                        },
                                        "key": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 23
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 27
                                                },
                                                "source": "name"
                                            },
                                            "name": "name"
                                        },
                                        "value": {
                                            "type": "StringLiteral",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 29
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 42
                                                },
                                                "source": "\"stock price\""
                                            },
                                            "value": "stock price"
                                        }
                                    },
                                    {
                                        "type": "Property",
                                        "location": {
                                            "start": {
                                                "line": 5,
                                                "column": 44
                                            },
                                            "end": {
                                                "line": 5,
                                                "column": 53
                                            },
                                            "source": "every: 1m"
                                        },
                                        "key": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 44
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 49
                                                },
                                                "source": "every"
                                            },
                                            "name": "every"
                                        },
                                        "value": {
                                            "type": "DurationLiteral",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 51
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 53
                                                },
                                                "source": "1m"
                                            },
                                            "values": [
                                                {
                                                    "magnitude": 1,
                                                    "unit": "m"
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "type": "Property",
                                        "location": {
                                            "start": {
                                                "line": 5,
                                                "column": 55
                                            },
                                            "end": {
                                                "line": 5,
                                                "column": 65
                                            },
                                            "source": "offset: 0s"
                                        },
                                        "key": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 55
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 61
                                                },
                                                "source": "offset"
                                            },
                                            "name": "offset"
                                        },
                                        "value": {
                                            "type": "DurationLiteral",
                                            "location": {
                                                "start": {
                                                    "line": 5,
                                                    "column": 63
                                                },
                                                "end": {
                                                    "line": 5,
                                                    "column": 65
                                                },
                                                "source": "0s"
                                            },
                                            "values": [
                                                {
                                                    "magnitude": 0,
                                                    "unit": "s"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "type": "VariableAssignment",
                        "location": {
                            "start": {
                                "line": 7,
                                "column": 7
                            },
                            "end": {
                                "line": 12,
                                "column": 67
                            },
                            "source": "data = from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))\n        |\u003e filter(fn: (r) =\u003e (r._field == \"changePercent\"))\n        |\u003e filter(fn: (r) =\u003e (r.isUSMarketOpen == \"true\"))\n        |\u003e aggregateWindow(every: 5m, fn: max, createEmpty: false)"
                        },
                        "id": {
                            "type": "Identifier",
                            "location": {
                                "start": {
                                    "line": 7,
                                    "column": 7
                                },
                                "end": {
                                    "line": 7,
                                    "column": 11
                                },
                                "source": "data"
                            },
                            "name": "data"
                        },
                        "init": {
                            "type": "PipeExpression",
                            "location": {
                                "start": {
                                    "line": 7,
                                    "column": 14
                                },
                                "end": {
                                    "line": 12,
                                    "column": 67
                                },
                                "source": "from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))\n        |\u003e filter(fn: (r) =\u003e (r._field == \"changePercent\"))\n        |\u003e filter(fn: (r) =\u003e (r.isUSMarketOpen == \"true\"))\n        |\u003e aggregateWindow(every: 5m, fn: max, createEmpty: false)"
                            },
                            "argument": {
                                "type": "PipeExpression",
                                "location": {
                                    "start": {
                                        "line": 7,
                                        "column": 14
                                    },
                                    "end": {
                                        "line": 11,
                                        "column": 59
                                    },
                                    "source": "from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))\n        |\u003e filter(fn: (r) =\u003e (r._field == \"changePercent\"))\n        |\u003e filter(fn: (r) =\u003e (r.isUSMarketOpen == \"true\"))"
                                },
                                "argument": {
                                    "type": "PipeExpression",
                                    "location": {
                                        "start": {
                                            "line": 7,
                                            "column": 14
                                        },
                                        "end": {
                                            "line": 10,
                                            "column": 60
                                        },
                                        "source": "from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))\n        |\u003e filter(fn: (r) =\u003e (r._field == \"changePercent\"))"
                                    },
                                    "argument": {
                                        "type": "PipeExpression",
                                        "location": {
                                            "start": {
                                                "line": 7,
                                                "column": 14
                                            },
                                            "end": {
                                                "line": 9,
                                                "column": 60
                                            },
                                            "source": "from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)\n        |\u003e filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))"
                                        },
                                        "argument": {
                                            "type": "PipeExpression",
                                            "location": {
                                                "start": {
                                                    "line": 7,
                                                    "column": 14
                                                },
                                                "end": {
                                                    "line": 8,
                                                    "column": 29
                                                },
                                                "source": "from(bucket: \"defbuck\")\n        |\u003e range(start: -5m)"
                                            },
                                            "argument": {
                                                "type": "CallExpression",
                                                "location": {
                                                    "start": {
                                                        "line": 7,
                                                        "column": 14
                                                    },
                                                    "end": {
                                                        "line": 7,
                                                        "column": 37
                                                    },
                                                    "source": "from(bucket: \"defbuck\")"
                                                },
                                                "callee": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 7,
                                                            "column": 14
                                                        },
                                                        "end": {
                                                            "line": 7,
                                                            "column": 18
                                                        },
                                                        "source": "from"
                                                    },
                                                    "name": "from"
                                                },
                                                "arguments": [
                                                    {
                                                        "type": "ObjectExpression",
                                                        "location": {
                                                            "start": {
                                                                "line": 7,
                                                                "column": 19
                                                            },
                                                            "end": {
                                                                "line": 7,
                                                                "column": 36
                                                            },
                                                            "source": "bucket: \"defbuck\""
                                                        },
                                                        "properties": [
                                                            {
                                                                "type": "Property",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 7,
                                                                        "column": 19
                                                                    },
                                                                    "end": {
                                                                        "line": 7,
                                                                        "column": 36
                                                                    },
                                                                    "source": "bucket: \"defbuck\""
                                                                },
                                                                "key": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 7,
                                                                            "column": 19
                                                                        },
                                                                        "end": {
                                                                            "line": 7,
                                                                            "column": 25
                                                                        },
                                                                        "source": "bucket"
                                                                    },
                                                                    "name": "bucket"
                                                                },
                                                                "value": {
                                                                    "type": "StringLiteral",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 7,
                                                                            "column": 27
                                                                        },
                                                                        "end": {
                                                                            "line": 7,
                                                                            "column": 36
                                                                        },
                                                                        "source": "\"defbuck\""
                                                                    },
                                                                    "value": "defbuck"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            "call": {
                                                "type": "CallExpression",
                                                "location": {
                                                    "start": {
                                                        "line": 8,
                                                        "column": 12
                                                    },
                                                    "end": {
                                                        "line": 8,
                                                        "column": 29
                                                    },
                                                    "source": "range(start: -5m)"
                                                },
                                                "callee": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 8,
                                                            "column": 12
                                                        },
                                                        "end": {
                                                            "line": 8,
                                                            "column": 17
                                                        },
                                                        "source": "range"
                                                    },
                                                    "name": "range"
                                                },
                                                "arguments": [
                                                    {
                                                        "type": "ObjectExpression",
                                                        "location": {
                                                            "start": {
                                                                "line": 8,
                                                                "column": 18
                                                            },
                                                            "end": {
                                                                "line": 8,
                                                                "column": 28
                                                            },
                                                            "source": "start: -5m"
                                                        },
                                                        "properties": [
                                                            {
                                                                "type": "Property",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 8,
                                                                        "column": 18
                                                                    },
                                                                    "end": {
                                                                        "line": 8,
                                                                        "column": 28
                                                                    },
                                                                    "source": "start: -5m"
                                                                },
                                                                "key": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 8,
                                                                            "column": 18
                                                                        },
                                                                        "end": {
                                                                            "line": 8,
                                                                            "column": 23
                                                                        },
                                                                        "source": "start"
                                                                    },
                                                                    "name": "start"
                                                                },
                                                                "value": {
                                                                    "type": "UnaryExpression",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 8,
                                                                            "column": 25
                                                                        },
                                                                        "end": {
                                                                            "line": 8,
                                                                            "column": 28
                                                                        },
                                                                        "source": "-5m"
                                                                    },
                                                                    "operator": "-",
                                                                    "argument": {
                                                                        "type": "DurationLiteral",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 8,
                                                                                "column": 26
                                                                            },
                                                                            "end": {
                                                                                "line": 8,
                                                                                "column": 28
                                                                            },
                                                                            "source": "5m"
                                                                        },
                                                                        "values": [
                                                                            {
                                                                                "magnitude": 5,
                                                                                "unit": "m"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "call": {
                                            "type": "CallExpression",
                                            "location": {
                                                "start": {
                                                    "line": 9,
                                                    "column": 12
                                                },
                                                "end": {
                                                    "line": 9,
                                                    "column": 60
                                                },
                                                "source": "filter(fn: (r) =\u003e (r._measurement == \"iexapis\"))"
                                            },
                                            "callee": {
                                                "type": "Identifier",
                                                "location": {
                                                    "start": {
                                                        "line": 9,
                                                        "column": 12
                                                    },
                                                    "end": {
                                                        "line": 9,
                                                        "column": 18
                                                    },
                                                    "source": "filter"
                                                },
                                                "name": "filter"
                                            },
                                            "arguments": [
                                                {
                                                    "type": "ObjectExpression",
                                                    "location": {
                                                        "start": {
                                                            "line": 9,
                                                            "column": 19
                                                        },
                                                        "end": {
                                                            "line": 9,
                                                            "column": 58
                                                        },
                                                        "source": "fn: (r) =\u003e (r._measurement == \"iexapis\""
                                                    },
                                                    "properties": [
                                                        {
                                                            "type": "Property",
                                                            "location": {
                                                                "start": {
                                                                    "line": 9,
                                                                    "column": 19
                                                                },
                                                                "end": {
                                                                    "line": 9,
                                                                    "column": 58
                                                                },
                                                                "source": "fn: (r) =\u003e (r._measurement == \"iexapis\""
                                                            },
                                                            "key": {
                                                                "type": "Identifier",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 9,
                                                                        "column": 19
                                                                    },
                                                                    "end": {
                                                                        "line": 9,
                                                                        "column": 21
                                                                    },
                                                                    "source": "fn"
                                                                },
                                                                "name": "fn"
                                                            },
                                                            "value": {
                                                                "type": "FunctionExpression",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 9,
                                                                        "column": 23
                                                                    },
                                                                    "end": {
                                                                        "line": 9,
                                                                        "column": 58
                                                                    },
                                                                    "source": "(r) =\u003e (r._measurement == \"iexapis\""
                                                                },
                                                                "params": [
                                                                    {
                                                                        "type": "Property",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 9,
                                                                                "column": 24
                                                                            },
                                                                            "end": {
                                                                                "line": 9,
                                                                                "column": 25
                                                                            },
                                                                            "source": "r"
                                                                        },
                                                                        "key": {
                                                                            "type": "Identifier",
                                                                            "location": {
                                                                                "start": {
                                                                                "line": 9,
                                                                                "column": 24
                                                                                },
                                                                                "end": {
                                                                                "line": 9,
                                                                                "column": 25
                                                                                },
                                                                                "source": "r"
                                                                            },
                                                                            "name": "r"
                                                                        },
                                                                        "value": null
                                                                    }
                                                                ],
                                                                "body": {
                                                                    "type": "BinaryExpression",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 9,
                                                                            "column": 31
                                                                        },
                                                                        "end": {
                                                                            "line": 9,
                                                                            "column": 58
                                                                        },
                                                                        "source": "r._measurement == \"iexapis\""
                                                                    },
                                                                    "operator": "==",
                                                                    "left": {
                                                                        "type": "MemberExpression",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 9,
                                                                                "column": 31
                                                                            },
                                                                            "end": {
                                                                                "line": 9,
                                                                                "column": 45
                                                                            },
                                                                            "source": "r._measurement"
                                                                        },
                                                                        "object": {
                                                                            "type": "Identifier",
                                                                            "location": {
                                                                                "start": {
                                                                                "line": 9,
                                                                                "column": 31
                                                                                },
                                                                                "end": {
                                                                                "line": 9,
                                                                                "column": 32
                                                                                },
                                                                                "source": "r"
                                                                            },
                                                                            "name": "r"
                                                                        },
                                                                        "property": {
                                                                            "type": "Identifier",
                                                                            "location": {
                                                                                "start": {
                                                                                "line": 9,
                                                                                "column": 33
                                                                                },
                                                                                "end": {
                                                                                "line": 9,
                                                                                "column": 45
                                                                                },
                                                                                "source": "_measurement"
                                                                            },
                                                                            "name": "_measurement"
                                                                        }
                                                                    },
                                                                    "right": {
                                                                        "type": "StringLiteral",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 9,
                                                                                "column": 49
                                                                            },
                                                                            "end": {
                                                                                "line": 9,
                                                                                "column": 58
                                                                            },
                                                                            "source": "\"iexapis\""
                                                                        },
                                                                        "value": "iexapis"
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "call": {
                                        "type": "CallExpression",
                                        "location": {
                                            "start": {
                                                "line": 10,
                                                "column": 12
                                            },
                                            "end": {
                                                "line": 10,
                                                "column": 60
                                            },
                                            "source": "filter(fn: (r) =\u003e (r._field == \"changePercent\"))"
                                        },
                                        "callee": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 10,
                                                    "column": 12
                                                },
                                                "end": {
                                                    "line": 10,
                                                    "column": 18
                                                },
                                                "source": "filter"
                                            },
                                            "name": "filter"
                                        },
                                        "arguments": [
                                            {
                                                "type": "ObjectExpression",
                                                "location": {
                                                    "start": {
                                                        "line": 10,
                                                        "column": 19
                                                    },
                                                    "end": {
                                                        "line": 10,
                                                        "column": 58
                                                    },
                                                    "source": "fn: (r) =\u003e (r._field == \"changePercent\""
                                                },
                                                "properties": [
                                                    {
                                                        "type": "Property",
                                                        "location": {
                                                            "start": {
                                                                "line": 10,
                                                                "column": 19
                                                            },
                                                            "end": {
                                                                "line": 10,
                                                                "column": 58
                                                            },
                                                            "source": "fn: (r) =\u003e (r._field == \"changePercent\""
                                                        },
                                                        "key": {
                                                            "type": "Identifier",
                                                            "location": {
                                                                "start": {
                                                                    "line": 10,
                                                                    "column": 19
                                                                },
                                                                "end": {
                                                                    "line": 10,
                                                                    "column": 21
                                                                },
                                                                "source": "fn"
                                                            },
                                                            "name": "fn"
                                                        },
                                                        "value": {
                                                            "type": "FunctionExpression",
                                                            "location": {
                                                                "start": {
                                                                    "line": 10,
                                                                    "column": 23
                                                                },
                                                                "end": {
                                                                    "line": 10,
                                                                    "column": 58
                                                                },
                                                                "source": "(r) =\u003e (r._field == \"changePercent\""
                                                            },
                                                            "params": [
                                                                {
                                                                    "type": "Property",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 10,
                                                                            "column": 24
                                                                        },
                                                                        "end": {
                                                                            "line": 10,
                                                                            "column": 25
                                                                        },
                                                                        "source": "r"
                                                                    },
                                                                    "key": {
                                                                        "type": "Identifier",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 10,
                                                                                "column": 24
                                                                            },
                                                                            "end": {
                                                                                "line": 10,
                                                                                "column": 25
                                                                            },
                                                                            "source": "r"
                                                                        },
                                                                        "name": "r"
                                                                    },
                                                                    "value": null
                                                                }
                                                            ],
                                                            "body": {
                                                                "type": "BinaryExpression",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 10,
                                                                        "column": 31
                                                                    },
                                                                    "end": {
                                                                        "line": 10,
                                                                        "column": 58
                                                                    },
                                                                    "source": "r._field == \"changePercent\""
                                                                },
                                                                "operator": "==",
                                                                "left": {
                                                                    "type": "MemberExpression",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 10,
                                                                            "column": 31
                                                                        },
                                                                        "end": {
                                                                            "line": 10,
                                                                            "column": 39
                                                                        },
                                                                        "source": "r._field"
                                                                    },
                                                                    "object": {
                                                                        "type": "Identifier",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 10,
                                                                                "column": 31
                                                                            },
                                                                            "end": {
                                                                                "line": 10,
                                                                                "column": 32
                                                                            },
                                                                            "source": "r"
                                                                        },
                                                                        "name": "r"
                                                                    },
                                                                    "property": {
                                                                        "type": "Identifier",
                                                                        "location": {
                                                                            "start": {
                                                                                "line": 10,
                                                                                "column": 33
                                                                            },
                                                                            "end": {
                                                                                "line": 10,
                                                                                "column": 39
                                                                            },
                                                                            "source": "_field"
                                                                        },
                                                                        "name": "_field"
                                                                    }
                                                                },
                                                                "right": {
                                                                    "type": "StringLiteral",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 10,
                                                                            "column": 43
                                                                        },
                                                                        "end": {
                                                                            "line": 10,
                                                                            "column": 58
                                                                        },
                                                                        "source": "\"changePercent\""
                                                                    },
                                                                    "value": "changePercent"
                                                                }
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                },
                                "call": {
                                    "type": "CallExpression",
                                    "location": {
                                        "start": {
                                            "line": 11,
                                            "column": 12
                                        },
                                        "end": {
                                            "line": 11,
                                            "column": 59
                                        },
                                        "source": "filter(fn: (r) =\u003e (r.isUSMarketOpen == \"true\"))"
                                    },
                                    "callee": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 11,
                                                "column": 12
                                            },
                                            "end": {
                                                "line": 11,
                                                "column": 18
                                            },
                                            "source": "filter"
                                        },
                                        "name": "filter"
                                    },
                                    "arguments": [
                                        {
                                            "type": "ObjectExpression",
                                            "location": {
                                                "start": {
                                                    "line": 11,
                                                    "column": 19
                                                },
                                                "end": {
                                                    "line": 11,
                                                    "column": 57
                                                },
                                                "source": "fn: (r) =\u003e (r.isUSMarketOpen == \"true\""
                                            },
                                            "properties": [
                                                {
                                                    "type": "Property",
                                                    "location": {
                                                        "start": {
                                                            "line": 11,
                                                            "column": 19
                                                        },
                                                        "end": {
                                                            "line": 11,
                                                            "column": 57
                                                        },
                                                        "source": "fn: (r) =\u003e (r.isUSMarketOpen == \"true\""
                                                    },
                                                    "key": {
                                                        "type": "Identifier",
                                                        "location": {
                                                            "start": {
                                                                "line": 11,
                                                                "column": 19
                                                            },
                                                            "end": {
                                                                "line": 11,
                                                                "column": 21
                                                            },
                                                            "source": "fn"
                                                        },
                                                        "name": "fn"
                                                    },
                                                    "value": {
                                                        "type": "FunctionExpression",
                                                        "location": {
                                                            "start": {
                                                                "line": 11,
                                                                "column": 23
                                                            },
                                                            "end": {
                                                                "line": 11,
                                                                "column": 57
                                                            },
                                                            "source": "(r) =\u003e (r.isUSMarketOpen == \"true\""
                                                        },
                                                        "params": [
                                                            {
                                                                "type": "Property",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 11,
                                                                        "column": 24
                                                                    },
                                                                    "end": {
                                                                        "line": 11,
                                                                        "column": 25
                                                                    },
                                                                    "source": "r"
                                                                },
                                                                "key": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 11,
                                                                            "column": 24
                                                                        },
                                                                        "end": {
                                                                            "line": 11,
                                                                            "column": 25
                                                                        },
                                                                        "source": "r"
                                                                    },
                                                                    "name": "r"
                                                                },
                                                                "value": null
                                                            }
                                                        ],
                                                        "body": {
                                                            "type": "BinaryExpression",
                                                            "location": {
                                                                "start": {
                                                                    "line": 11,
                                                                    "column": 31
                                                                },
                                                                "end": {
                                                                    "line": 11,
                                                                    "column": 57
                                                                },
                                                                "source": "r.isUSMarketOpen == \"true\""
                                                            },
                                                            "operator": "==",
                                                            "left": {
                                                                "type": "MemberExpression",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 11,
                                                                        "column": 31
                                                                    },
                                                                    "end": {
                                                                        "line": 11,
                                                                        "column": 47
                                                                    },
                                                                    "source": "r.isUSMarketOpen"
                                                                },
                                                                "object": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 11,
                                                                            "column": 31
                                                                        },
                                                                        "end": {
                                                                            "line": 11,
                                                                            "column": 32
                                                                        },
                                                                        "source": "r"
                                                                    },
                                                                    "name": "r"
                                                                },
                                                                "property": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 11,
                                                                            "column": 33
                                                                        },
                                                                        "end": {
                                                                            "line": 11,
                                                                            "column": 47
                                                                        },
                                                                        "source": "isUSMarketOpen"
                                                                    },
                                                                    "name": "isUSMarketOpen"
                                                                }
                                                            },
                                                            "right": {
                                                                "type": "StringLiteral",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 11,
                                                                        "column": 51
                                                                    },
                                                                    "end": {
                                                                        "line": 11,
                                                                        "column": 57
                                                                    },
                                                                    "source": "\"true\""
                                                                },
                                                                "value": "true"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                }
                            },
                            "call": {
                                "type": "CallExpression",
                                "location": {
                                    "start": {
                                        "line": 12,
                                        "column": 12
                                    },
                                    "end": {
                                        "line": 12,
                                        "column": 67
                                    },
                                    "source": "aggregateWindow(every: 5m, fn: max, createEmpty: false)"
                                },
                                "callee": {
                                    "type": "Identifier",
                                    "location": {
                                        "start": {
                                            "line": 12,
                                            "column": 12
                                        },
                                        "end": {
                                            "line": 12,
                                            "column": 27
                                        },
                                        "source": "aggregateWindow"
                                    },
                                    "name": "aggregateWindow"
                                },
                                "arguments": [
                                    {
                                        "type": "ObjectExpression",
                                        "location": {
                                            "start": {
                                                "line": 12,
                                                "column": 28
                                            },
                                            "end": {
                                                "line": 12,
                                                "column": 66
                                            },
                                            "source": "every: 5m, fn: max, createEmpty: false"
                                        },
                                        "properties": [
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 12,
                                                        "column": 28
                                                    },
                                                    "end": {
                                                        "line": 12,
                                                        "column": 37
                                                    },
                                                    "source": "every: 5m"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 28
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 33
                                                        },
                                                        "source": "every"
                                                    },
                                                    "name": "every"
                                                },
                                                "value": {
                                                    "type": "DurationLiteral",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 35
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 37
                                                        },
                                                        "source": "5m"
                                                    },
                                                    "values": [
                                                        {
                                                            "magnitude": 5,
                                                            "unit": "m"
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 12,
                                                        "column": 39
                                                    },
                                                    "end": {
                                                        "line": 12,
                                                        "column": 46
                                                    },
                                                    "source": "fn: max"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 39
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 41
                                                        },
                                                        "source": "fn"
                                                    },
                                                    "name": "fn"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 43
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 46
                                                        },
                                                        "source": "max"
                                                    },
                                                    "name": "max"
                                                }
                                            },
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 12,
                                                        "column": 48
                                                    },
                                                    "end": {
                                                        "line": 12,
                                                        "column": 66
                                                    },
                                                    "source": "createEmpty: false"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 48
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 59
                                                        },
                                                        "source": "createEmpty"
                                                    },
                                                    "name": "createEmpty"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 12,
                                                            "column": 61
                                                        },
                                                        "end": {
                                                            "line": 12,
                                                            "column": 66
                                                        },
                                                        "source": "false"
                                                    },
                                                    "name": "false"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "type": "VariableAssignment",
                        "location": {
                            "start": {
                                "line": 14,
                                "column": 7
                            },
                            "end": {
                                "line": 19,
                                "column": 8
                            },
                            "source": "check = {\n        _check_id: \"04725fb11fa63000\",\n        _check_name: \"Stock Change\",\n        _type: \"threshold\",\n        tags: {},\n      }"
                        },
                        "id": {
                            "type": "Identifier",
                            "location": {
                                "start": {
                                    "line": 14,
                                    "column": 7
                                },
                                "end": {
                                    "line": 14,
                                    "column": 12
                                },
                                "source": "check"
                            },
                            "name": "check"
                        },
                        "init": {
                            "type": "ObjectExpression",
                            "location": {
                                "start": {
                                    "line": 14,
                                    "column": 15
                                },
                                "end": {
                                    "line": 19,
                                    "column": 8
                                },
                                "source": "{\n        _check_id: \"04725fb11fa63000\",\n        _check_name: \"Stock Change\",\n        _type: \"threshold\",\n        tags: {},\n      }"
                            },
                            "properties": [
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 15,
                                            "column": 9
                                        },
                                        "end": {
                                            "line": 15,
                                            "column": 38
                                        },
                                        "source": "_check_id: \"04725fb11fa63000\""
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 15,
                                                "column": 9
                                            },
                                            "end": {
                                                "line": 15,
                                                "column": 18
                                            },
                                            "source": "_check_id"
                                        },
                                        "name": "_check_id"
                                    },
                                    "value": {
                                        "type": "StringLiteral",
                                        "location": {
                                            "start": {
                                                "line": 15,
                                                "column": 20
                                            },
                                            "end": {
                                                "line": 15,
                                                "column": 38
                                            },
                                            "source": "\"04725fb11fa63000\""
                                        },
                                        "value": "04725fb11fa63000"
                                    }
                                },
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 16,
                                            "column": 9
                                        },
                                        "end": {
                                            "line": 16,
                                            "column": 36
                                        },
                                        "source": "_check_name: \"Stock Change\""
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 16,
                                                "column": 9
                                            },
                                            "end": {
                                                "line": 16,
                                                "column": 20
                                            },
                                            "source": "_check_name"
                                        },
                                        "name": "_check_name"
                                    },
                                    "value": {
                                        "type": "StringLiteral",
                                        "location": {
                                            "start": {
                                                "line": 16,
                                                "column": 22
                                            },
                                            "end": {
                                                "line": 16,
                                                "column": 36
                                            },
                                            "source": "\"Stock Change\""
                                        },
                                        "value": "Stock Change"
                                    }
                                },
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 17,
                                            "column": 9
                                        },
                                        "end": {
                                            "line": 17,
                                            "column": 27
                                        },
                                        "source": "_type: \"threshold\""
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 17,
                                                "column": 9
                                            },
                                            "end": {
                                                "line": 17,
                                                "column": 14
                                            },
                                            "source": "_type"
                                        },
                                        "name": "_type"
                                    },
                                    "value": {
                                        "type": "StringLiteral",
                                        "location": {
                                            "start": {
                                                "line": 17,
                                                "column": 16
                                            },
                                            "end": {
                                                "line": 17,
                                                "column": 27
                                            },
                                            "source": "\"threshold\""
                                        },
                                        "value": "threshold"
                                    }
                                },
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 18,
                                            "column": 9
                                        },
                                        "end": {
                                            "line": 18,
                                            "column": 17
                                        },
                                        "source": "tags: {}"
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 18,
                                                "column": 9
                                            },
                                            "end": {
                                                "line": 18,
                                                "column": 13
                                            },
                                            "source": "tags"
                                        },
                                        "name": "tags"
                                    },
                                    "value": {
                                        "type": "ObjectExpression",
                                        "location": {
                                            "start": {
                                                "line": 18,
                                                "column": 15
                                            },
                                            "end": {
                                                "line": 18,
                                                "column": 17
                                            },
                                            "source": "{}"
                                        },
                                        "properties": null
                                    }
                                }
                            ]
                        }
                    },
                    {
                        "type": "VariableAssignment",
                        "location": {
                            "start": {
                                "line": 21,
                                "column": 7
                            },
                            "end": {
                                "line": 21,
                                "column": 71
                            },
                            "source": "crit = (r) =\u003e (r.changePercent \u003c -0.01 or r.changePercent \u003e 0.01"
                        },
                        "id": {
                            "type": "Identifier",
                            "location": {
                                "start": {
                                    "line": 21,
                                    "column": 7
                                },
                                "end": {
                                    "line": 21,
                                    "column": 11
                                },
                                "source": "crit"
                            },
                            "name": "crit"
                        },
                        "init": {
                            "type": "FunctionExpression",
                            "location": {
                                "start": {
                                    "line": 21,
                                    "column": 14
                                },
                                "end": {
                                    "line": 21,
                                    "column": 71
                                },
                                "source": "(r) =\u003e (r.changePercent \u003c -0.01 or r.changePercent \u003e 0.01"
                            },
                            "params": [
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 21,
                                            "column": 15
                                        },
                                        "end": {
                                            "line": 21,
                                            "column": 16
                                        },
                                        "source": "r"
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 21,
                                                "column": 15
                                            },
                                            "end": {
                                                "line": 21,
                                                "column": 16
                                            },
                                            "source": "r"
                                        },
                                        "name": "r"
                                    },
                                    "value": null
                                }
                            ],
                            "body": {
                                "type": "LogicalExpression",
                                "location": {
                                    "start": {
                                        "line": 21,
                                        "column": 22
                                    },
                                    "end": {
                                        "line": 21,
                                        "column": 71
                                    },
                                    "source": "r.changePercent \u003c -0.01 or r.changePercent \u003e 0.01"
                                },
                                "operator": "or",
                                "left": {
                                    "type": "BinaryExpression",
                                    "location": {
                                        "start": {
                                            "line": 21,
                                            "column": 22
                                        },
                                        "end": {
                                            "line": 21,
                                            "column": 45
                                        },
                                        "source": "r.changePercent \u003c -0.01"
                                    },
                                    "operator": "\u003c",
                                    "left": {
                                        "type": "MemberExpression",
                                        "location": {
                                            "start": {
                                                "line": 21,
                                                "column": 22
                                            },
                                            "end": {
                                                "line": 21,
                                                "column": 37
                                            },
                                            "source": "r.changePercent"
                                        },
                                        "object": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 21,
                                                    "column": 22
                                                },
                                                "end": {
                                                    "line": 21,
                                                    "column": 23
                                                },
                                                "source": "r"
                                            },
                                            "name": "r"
                                        },
                                        "property": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 21,
                                                    "column": 24
                                                },
                                                "end": {
                                                    "line": 21,
                                                    "column": 37
                                                },
                                                "source": "changePercent"
                                            },
                                            "name": "changePercent"
                                        }
                                    },
                                    "right": {
                                        "type": "UnaryExpression",
                                        "location": {
                                            "start": {
                                                "line": 21,
                                                "column": 40
                                            },
                                            "end": {
                                                "line": 21,
                                                "column": 45
                                            },
                                            "source": "-0.01"
                                        },
                                        "operator": "-",
                                        "argument": {
                                            "type": "FloatLiteral",
                                            "location": {
                                                "start": {
                                                    "line": 21,
                                                    "column": 41
                                                },
                                                "end": {
                                                    "line": 21,
                                                    "column": 45
                                                },
                                                "source": "0.01"
                                            },
                                            "value": 0.01
                                        }
                                    }
                                },
                                "right": {
                                    "type": "BinaryExpression",
                                    "location": {
                                        "start": {
                                            "line": 21,
                                            "column": 49
                                        },
                                        "end": {
                                            "line": 21,
                                            "column": 71
                                        },
                                        "source": "r.changePercent \u003e 0.01"
                                    },
                                    "operator": "\u003e",
                                    "left": {
                                        "type": "MemberExpression",
                                        "location": {
                                            "start": {
                                                "line": 21,
                                                "column": 49
                                            },
                                            "end": {
                                                "line": 21,
                                                "column": 64
                                            },
                                            "source": "r.changePercent"
                                        },
                                        "object": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 21,
                                                    "column": 49
                                                },
                                                "end": {
                                                    "line": 21,
                                                    "column": 50
                                                },
                                                "source": "r"
                                            },
                                            "name": "r"
                                        },
                                        "property": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 21,
                                                    "column": 51
                                                },
                                                "end": {
                                                    "line": 21,
                                                    "column": 64
                                                },
                                                "source": "changePercent"
                                            },
                                            "name": "changePercent"
                                        }
                                    },
                                    "right": {
                                        "type": "FloatLiteral",
                                        "location": {
                                            "start": {
                                                "line": 21,
                                                "column": 67
                                            },
                                            "end": {
                                                "line": 21,
                                                "column": 71
                                            },
                                            "source": "0.01"
                                        },
                                        "value": 0.01
                                    }
                                }
                            }
                        }
                    },
                    {
                        "type": "VariableAssignment",
                        "location": {
                            "start": {
                                "line": 22,
                                "column": 7
                            },
                            "end": {
                                "line": 22,
                                "column": 70
                            },
                            "source": "ok = (r) =\u003e (r.changePercent \u003c 0.01 and r.changePercent \u003e -0.01"
                        },
                        "id": {
                            "type": "Identifier",
                            "location": {
                                "start": {
                                    "line": 22,
                                    "column": 7
                                },
                                "end": {
                                    "line": 22,
                                    "column": 9
                                },
                                "source": "ok"
                            },
                            "name": "ok"
                        },
                        "init": {
                            "type": "FunctionExpression",
                            "location": {
                                "start": {
                                    "line": 22,
                                    "column": 12
                                },
                                "end": {
                                    "line": 22,
                                    "column": 70
                                },
                                "source": "(r) =\u003e (r.changePercent \u003c 0.01 and r.changePercent \u003e -0.01"
                            },
                            "params": [
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 22,
                                            "column": 13
                                        },
                                        "end": {
                                            "line": 22,
                                            "column": 14
                                        },
                                        "source": "r"
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 22,
                                                "column": 13
                                            },
                                            "end": {
                                                "line": 22,
                                                "column": 14
                                            },
                                            "source": "r"
                                        },
                                        "name": "r"
                                    },
                                    "value": null
                                }
                            ],
                            "body": {
                                "type": "LogicalExpression",
                                "location": {
                                    "start": {
                                        "line": 22,
                                        "column": 20
                                    },
                                    "end": {
                                        "line": 22,
                                        "column": 70
                                    },
                                    "source": "r.changePercent \u003c 0.01 and r.changePercent \u003e -0.01"
                                },
                                "operator": "and",
                                "left": {
                                    "type": "BinaryExpression",
                                    "location": {
                                        "start": {
                                            "line": 22,
                                            "column": 20
                                        },
                                        "end": {
                                            "line": 22,
                                            "column": 42
                                        },
                                        "source": "r.changePercent \u003c 0.01"
                                    },
                                    "operator": "\u003c",
                                    "left": {
                                        "type": "MemberExpression",
                                        "location": {
                                            "start": {
                                                "line": 22,
                                                "column": 20
                                            },
                                            "end": {
                                                "line": 22,
                                                "column": 35
                                            },
                                            "source": "r.changePercent"
                                        },
                                        "object": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 22,
                                                    "column": 20
                                                },
                                                "end": {
                                                    "line": 22,
                                                    "column": 21
                                                },
                                                "source": "r"
                                            },
                                            "name": "r"
                                        },
                                        "property": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 22,
                                                    "column": 22
                                                },
                                                "end": {
                                                    "line": 22,
                                                    "column": 35
                                                },
                                                "source": "changePercent"
                                            },
                                            "name": "changePercent"
                                        }
                                    },
                                    "right": {
                                        "type": "FloatLiteral",
                                        "location": {
                                            "start": {
                                                "line": 22,
                                                "column": 38
                                            },
                                            "end": {
                                                "line": 22,
                                                "column": 42
                                            },
                                            "source": "0.01"
                                        },
                                        "value": 0.01
                                    }
                                },
                                "right": {
                                    "type": "BinaryExpression",
                                    "location": {
                                        "start": {
                                            "line": 22,
                                            "column": 47
                                        },
                                        "end": {
                                            "line": 22,
                                            "column": 70
                                        },
                                        "source": "r.changePercent \u003e -0.01"
                                    },
                                    "operator": "\u003e",
                                    "left": {
                                        "type": "MemberExpression",
                                        "location": {
                                            "start": {
                                                "line": 22,
                                                "column": 47
                                            },
                                            "end": {
                                                "line": 22,
                                                "column": 62
                                            },
                                            "source": "r.changePercent"
                                        },
                                        "object": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 22,
                                                    "column": 47
                                                },
                                                "end": {
                                                    "line": 22,
                                                    "column": 48
                                                },
                                                "source": "r"
                                            },
                                            "name": "r"
                                        },
                                        "property": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 22,
                                                    "column": 49
                                                },
                                                "end": {
                                                    "line": 22,
                                                    "column": 62
                                                },
                                                "source": "changePercent"
                                            },
                                            "name": "changePercent"
                                        }
                                    },
                                    "right": {
                                        "type": "UnaryExpression",
                                        "location": {
                                            "start": {
                                                "line": 22,
                                                "column": 65
                                            },
                                            "end": {
                                                "line": 22,
                                                "column": 70
                                            },
                                            "source": "-0.01"
                                        },
                                        "operator": "-",
                                        "argument": {
                                            "type": "FloatLiteral",
                                            "location": {
                                                "start": {
                                                    "line": 22,
                                                    "column": 66
                                                },
                                                "end": {
                                                    "line": 22,
                                                    "column": 70
                                                },
                                                "source": "0.01"
                                            },
                                            "value": 0.01
                                        }
                                    }
                                }
                            }
                        }
                    },
                    {
                        "type": "VariableAssignment",
                        "location": {
                            "start": {
                                "line": 23,
                                "column": 7
                            },
                            "end": {
                                "line": 23,
                                "column": 87
                            },
                            "source": "messageFn = (r) =\u003e (\"Task: ${r.symbol} changed by ${string(v:r.changedPercent)}\""
                        },
                        "id": {
                            "type": "Identifier",
                            "location": {
                                "start": {
                                    "line": 23,
                                    "column": 7
                                },
                                "end": {
                                    "line": 23,
                                    "column": 16
                                },
                                "source": "messageFn"
                            },
                            "name": "messageFn"
                        },
                        "init": {
                            "type": "FunctionExpression",
                            "location": {
                                "start": {
                                    "line": 23,
                                    "column": 19
                                },
                                "end": {
                                    "line": 23,
                                    "column": 87
                                },
                                "source": "(r) =\u003e (\"Task: ${r.symbol} changed by ${string(v:r.changedPercent)}\""
                            },
                            "params": [
                                {
                                    "type": "Property",
                                    "location": {
                                        "start": {
                                            "line": 23,
                                            "column": 20
                                        },
                                        "end": {
                                            "line": 23,
                                            "column": 21
                                        },
                                        "source": "r"
                                    },
                                    "key": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 23,
                                                "column": 20
                                            },
                                            "end": {
                                                "line": 23,
                                                "column": 21
                                            },
                                            "source": "r"
                                        },
                                        "name": "r"
                                    },
                                    "value": null
                                }
                            ],
                            "body": {
                                "type": "StringExpression",
                                "location": {
                                    "start": {
                                        "line": 23,
                                        "column": 27
                                    },
                                    "end": {
                                        "line": 23,
                                        "column": 87
                                    },
                                    "source": "\"Task: ${r.symbol} changed by ${string(v:r.changedPercent)}\""
                                },
                                "parts": [
                                    {
                                        "type": "TextPart",
                                        "location": {
                                            "start": {
                                                "line": 23,
                                                "column": 28
                                            },
                                            "end": {
                                                "line": 23,
                                                "column": 34
                                            },
                                            "source": "Task: "
                                        },
                                        "value": "Task: "
                                    },
                                    {
                                        "type": "InterpolatedPart",
                                        "location": {
                                            "start": {
                                                "line": 23,
                                                "column": 34
                                            },
                                            "end": {
                                                "line": 23,
                                                "column": 45
                                            },
                                            "source": "${r.symbol}"
                                        },
                                        "expression": {
                                            "type": "MemberExpression",
                                            "location": {
                                                "start": {
                                                    "line": 23,
                                                    "column": 36
                                                },
                                                "end": {
                                                    "line": 23,
                                                    "column": 44
                                                },
                                                "source": "r.symbol"
                                            },
                                            "object": {
                                                "type": "Identifier",
                                                "location": {
                                                    "start": {
                                                        "line": 23,
                                                        "column": 36
                                                    },
                                                    "end": {
                                                        "line": 23,
                                                        "column": 37
                                                    },
                                                    "source": "r"
                                                },
                                                "name": "r"
                                            },
                                            "property": {
                                                "type": "Identifier",
                                                "location": {
                                                    "start": {
                                                        "line": 23,
                                                        "column": 38
                                                    },
                                                    "end": {
                                                        "line": 23,
                                                        "column": 44
                                                    },
                                                    "source": "symbol"
                                                },
                                                "name": "symbol"
                                            }
                                        }
                                    },
                                    {
                                        "type": "TextPart",
                                        "location": {
                                            "start": {
                                                "line": 23,
                                                "column": 45
                                            },
                                            "end": {
                                                "line": 23,
                                                "column": 57
                                            },
                                            "source": " changed by "
                                        },
                                        "value": " changed by "
                                    },
                                    {
                                        "type": "InterpolatedPart",
                                        "location": {
                                            "start": {
                                                "line": 23,
                                                "column": 57
                                            },
                                            "end": {
                                                "line": 23,
                                                "column": 86
                                            },
                                            "source": "${string(v:r.changedPercent)}"
                                        },
                                        "expression": {
                                            "type": "CallExpression",
                                            "location": {
                                                "start": {
                                                    "line": 23,
                                                    "column": 59
                                                },
                                                "end": {
                                                    "line": 23,
                                                    "column": 85
                                                },
                                                "source": "string(v:r.changedPercent)"
                                            },
                                            "callee": {
                                                "type": "Identifier",
                                                "location": {
                                                    "start": {
                                                        "line": 23,
                                                        "column": 59
                                                    },
                                                    "end": {
                                                        "line": 23,
                                                        "column": 65
                                                    },
                                                    "source": "string"
                                                },
                                                "name": "string"
                                            },
                                            "arguments": [
                                                {
                                                    "type": "ObjectExpression",
                                                    "location": {
                                                        "start": {
                                                            "line": 23,
                                                            "column": 66
                                                        },
                                                        "end": {
                                                            "line": 23,
                                                            "column": 84
                                                        },
                                                        "source": "v:r.changedPercent"
                                                    },
                                                    "properties": [
                                                        {
                                                            "type": "Property",
                                                            "location": {
                                                                "start": {
                                                                    "line": 23,
                                                                    "column": 66
                                                                },
                                                                "end": {
                                                                    "line": 23,
                                                                    "column": 84
                                                                },
                                                                "source": "v:r.changedPercent"
                                                            },
                                                            "key": {
                                                                "type": "Identifier",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 23,
                                                                        "column": 66
                                                                    },
                                                                    "end": {
                                                                        "line": 23,
                                                                        "column": 67
                                                                    },
                                                                    "source": "v"
                                                                },
                                                                "name": "v"
                                                            },
                                                            "value": {
                                                                "type": "MemberExpression",
                                                                "location": {
                                                                    "start": {
                                                                        "line": 23,
                                                                        "column": 68
                                                                    },
                                                                    "end": {
                                                                        "line": 23,
                                                                        "column": 84
                                                                    },
                                                                    "source": "r.changedPercent"
                                                                },
                                                                "object": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 23,
                                                                            "column": 68
                                                                        },
                                                                        "end": {
                                                                            "line": 23,
                                                                            "column": 69
                                                                        },
                                                                        "source": "r"
                                                                    },
                                                                    "name": "r"
                                                                },
                                                                "property": {
                                                                    "type": "Identifier",
                                                                    "location": {
                                                                        "start": {
                                                                            "line": 23,
                                                                            "column": 70
                                                                        },
                                                                        "end": {
                                                                            "line": 23,
                                                                            "column": 84
                                                                        },
                                                                        "source": "changedPercent"
                                                                    },
                                                                    "name": "changedPercent"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "type": "ExpressionStatement",
                        "location": {
                            "start": {
                                "line": 25,
                                "column": 7
                            },
                            "end": {
                                "line": 25,
                                "column": 104
                            },
                            "source": "data |\u003e v1.fieldsAsCols() |\u003e monitor.check(data: check, messageFn: messageFn, crit: crit, ok: ok)"
                        },
                        "expression": {
                            "type": "PipeExpression",
                            "location": {
                                "start": {
                                    "line": 25,
                                    "column": 7
                                },
                                "end": {
                                    "line": 25,
                                    "column": 104
                                },
                                "source": "data |\u003e v1.fieldsAsCols() |\u003e monitor.check(data: check, messageFn: messageFn, crit: crit, ok: ok)"
                            },
                            "argument": {
                                "type": "PipeExpression",
                                "location": {
                                    "start": {
                                        "line": 25,
                                        "column": 7
                                    },
                                    "end": {
                                        "line": 25,
                                        "column": 32
                                    },
                                    "source": "data |\u003e v1.fieldsAsCols()"
                                },
                                "argument": {
                                    "type": "Identifier",
                                    "location": {
                                        "start": {
                                            "line": 25,
                                            "column": 7
                                        },
                                        "end": {
                                            "line": 25,
                                            "column": 11
                                        },
                                        "source": "data"
                                    },
                                    "name": "data"
                                },
                                "call": {
                                    "type": "CallExpression",
                                    "location": {
                                        "start": {
                                            "line": 25,
                                            "column": 15
                                        },
                                        "end": {
                                            "line": 25,
                                            "column": 32
                                        },
                                        "source": "v1.fieldsAsCols()"
                                    },
                                    "callee": {
                                        "type": "MemberExpression",
                                        "location": {
                                            "start": {
                                                "line": 25,
                                                "column": 15
                                            },
                                            "end": {
                                                "line": 25,
                                                "column": 30
                                            },
                                            "source": "v1.fieldsAsCols"
                                        },
                                        "object": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 25,
                                                    "column": 15
                                                },
                                                "end": {
                                                    "line": 25,
                                                    "column": 17
                                                },
                                                "source": "v1"
                                            },
                                            "name": "v1"
                                        },
                                        "property": {
                                            "type": "Identifier",
                                            "location": {
                                                "start": {
                                                    "line": 25,
                                                    "column": 18
                                                },
                                                "end": {
                                                    "line": 25,
                                                    "column": 30
                                                },
                                                "source": "fieldsAsCols"
                                            },
                                            "name": "fieldsAsCols"
                                        }
                                    }
                                }
                            },
                            "call": {
                                "type": "CallExpression",
                                "location": {
                                    "start": {
                                        "line": 25,
                                        "column": 36
                                    },
                                    "end": {
                                        "line": 25,
                                        "column": 104
                                    },
                                    "source": "monitor.check(data: check, messageFn: messageFn, crit: crit, ok: ok)"
                                },
                                "callee": {
                                    "type": "MemberExpression",
                                    "location": {
                                        "start": {
                                            "line": 25,
                                            "column": 36
                                        },
                                        "end": {
                                            "line": 25,
                                            "column": 49
                                        },
                                        "source": "monitor.check"
                                    },
                                    "object": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 25,
                                                "column": 36
                                            },
                                            "end": {
                                                "line": 25,
                                                "column": 43
                                            },
                                            "source": "monitor"
                                        },
                                        "name": "monitor"
                                    },
                                    "property": {
                                        "type": "Identifier",
                                        "location": {
                                            "start": {
                                                "line": 25,
                                                "column": 44
                                            },
                                            "end": {
                                                "line": 25,
                                                "column": 49
                                            },
                                            "source": "check"
                                        },
                                        "name": "check"
                                    }
                                },
                                "arguments": [
                                    {
                                        "type": "ObjectExpression",
                                        "location": {
                                            "start": {
                                                "line": 25,
                                                "column": 50
                                            },
                                            "end": {
                                                "line": 25,
                                                "column": 103
                                            },
                                            "source": "data: check, messageFn: messageFn, crit: crit, ok: ok"
                                        },
                                        "properties": [
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 25,
                                                        "column": 50
                                                    },
                                                    "end": {
                                                        "line": 25,
                                                        "column": 61
                                                    },
                                                    "source": "data: check"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 50
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 54
                                                        },
                                                        "source": "data"
                                                    },
                                                    "name": "data"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 56
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 61
                                                        },
                                                        "source": "check"
                                                    },
                                                    "name": "check"
                                                }
                                            },
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 25,
                                                        "column": 63
                                                    },
                                                    "end": {
                                                        "line": 25,
                                                        "column": 83
                                                    },
                                                    "source": "messageFn: messageFn"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 63
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 72
                                                        },
                                                        "source": "messageFn"
                                                    },
                                                    "name": "messageFn"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 74
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 83
                                                        },
                                                        "source": "messageFn"
                                                    },
                                                    "name": "messageFn"
                                                }
                                            },
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 25,
                                                        "column": 85
                                                    },
                                                    "end": {
                                                        "line": 25,
                                                        "column": 95
                                                    },
                                                    "source": "crit: crit"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 85
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 89
                                                        },
                                                        "source": "crit"
                                                    },
                                                    "name": "crit"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 91
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 95
                                                        },
                                                        "source": "crit"
                                                    },
                                                    "name": "crit"
                                                }
                                            },
                                            {
                                                "type": "Property",
                                                "location": {
                                                    "start": {
                                                        "line": 25,
                                                        "column": 97
                                                    },
                                                    "end": {
                                                        "line": 25,
                                                        "column": 103
                                                    },
                                                    "source": "ok: ok"
                                                },
                                                "key": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 97
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 99
                                                        },
                                                        "source": "ok"
                                                    },
                                                    "name": "ok"
                                                },
                                                "value": {
                                                    "type": "Identifier",
                                                    "location": {
                                                        "start": {
                                                            "line": 25,
                                                            "column": 101
                                                        },
                                                        "end": {
                                                            "line": 25,
                                                            "column": 103
                                                        },
                                                        "source": "ok"
                                                    },
                                                    "name": "ok"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        ]
    }
}

I've included the AST in details for reference.  I've included an e2e test in another PR that should pass before accepting this flux fix.

All of the queryd components are deployed.

reopening this until the issue is resolved in prod.

authors: 121watts jsternberg russorat