mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-05 01:01:09 +01:00
3a1ef3184d
app/victoriametrics: update the test suite * simplify /query and /query_range test cases configuration and tests * support instant queries with lookbehind window like `query=foo[5m]` * support instant queries selecting scalar value like `query=42` * add query_range test for prometheus Signed-off-by: hagen1778 <roman@victoriametrics.com>
24 lines
764 B
JSON
24 lines
764 B
JSON
{
|
|
"name": "max_lookback_set",
|
|
"issue": "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/209",
|
|
"data": [
|
|
"max_lookback_set 1 {TIME_S-30s}",
|
|
"max_lookback_set 2 {TIME_S-60s}",
|
|
"max_lookback_set 3 {TIME_S-120s}",
|
|
"max_lookback_set 4 {TIME_S-150s}"
|
|
],
|
|
"query": ["/api/v1/query_range?query=max_lookback_set&start={TIME_S-150s}&end={TIME_S}&step=10s&max_lookback=1s"],
|
|
"result_query": {
|
|
"status":"success",
|
|
"data":{"resultType":"matrix",
|
|
"result":[{"metric":{"__name__":"max_lookback_set"},"values":[
|
|
["{TIME_S-150s}","4"],
|
|
["{TIME_S-120s}","3"],
|
|
["{TIME_S-60s}","2"],
|
|
["{TIME_S-30s}","1"],
|
|
["{TIME_S-20s}","1"],
|
|
["{TIME_S-10s}","1"],
|
|
["{TIME_S-0s}","1"]
|
|
]}]}}
|
|
}
|