7 lines
367 B
Bash
Executable File
7 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
curl http://localhost:9999/api/v2/query?org=beieliorg -XPOST -sS \
|
|
-H 'Authorization: Token xXnq8ADcDygAyM_L0B_10c9yuoOv-cYcUfIXkJunRrIDMhB5ZNmza-Whr1ELcbKNzW8GzUMMYD85QohUHQdAmg==' \
|
|
-H 'accept:application/csv' \
|
|
-H 'content-type:application/vnd.flux' \
|
|
-d 'from(bucket:"beielibucket") |> range(start:-10h) |> filter(fn: (r) => r._field == "w")'
|