Debian Codegraph @

tests/languages/promql/subquery_selection.test

raw
1 max_over_time(deriv(rate(distance_covered_total[5s])[30s:5s])[10m:])
2
3 ----------------------------------------------------
4
5 [
6 ["function", "max_over_time"],
7 ["punctuation", "("],
8 ["function", "deriv"],
9 ["punctuation", "("],
10 ["function", "rate"],
11 ["punctuation", "("],
12 "distance_covered_total",
13 ["context-range", [
14 ["punctuation", "["],
15 ["range-duration", "5s"],
16 ["punctuation", "]"]
17 ]],
18 ["punctuation", ")"],
19 ["context-range", [
20 ["punctuation", "["],
21 ["range-duration", "30s"],
22 ["punctuation", ":"],
23 ["range-duration", "5s"],
24 ["punctuation", "]"]
25 ]],
26 ["punctuation", ")"],
27 ["context-range", [
28 ["punctuation", "["],
29 ["range-duration", "10m"],
30 ["punctuation", ":"],
31 ["punctuation", "]"]
32 ]],
33 ["punctuation", ")"]
34 ]
35
36 ----------------------------------------------------
37
38 Checks subquery.