(Invoke-WebRequest -Uri "http://localhost:8086/api/v2/buckets" ` -Method Get -Headers @{Authorization="Token 8dIsG_05zhUtFica9nJvGr23Hr4aN5NOF6w7e06LwZnm7YABq0--8dACxrAFFJewHzEm02jzMjE1CZOYvytAq_g=="}).Content
from(bucket: "jmeter") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["application"] == "blazedemo") |> filter(fn: (r) => r["transaction"] == "Home Page" or r["transaction"] == "Purchase") |> filter(fn: (r) => r["_field"] == "count" or r["_field"] == "hit") |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) |> yield(name: "mean")