mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
147 lines
2.8 KiB
JSON
147 lines
2.8 KiB
JSON
{
|
|
"from": "now-1h",
|
|
"to": "now",
|
|
"queries": [
|
|
{
|
|
"refId": "A",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"expression": "$A + 10",
|
|
"type": "math"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"type": "math",
|
|
"expression": "$A - $B"
|
|
},
|
|
{
|
|
"refId": "C",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"expression": "$A",
|
|
"reducer": "max",
|
|
"settings": {
|
|
"mode": "dropNN"
|
|
},
|
|
"type": "reduce"
|
|
},
|
|
{
|
|
"refId": "D",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"upsampler": "pad",
|
|
"type": "resample",
|
|
"expression": "$A",
|
|
"window": "1d",
|
|
"downsampler": "last"
|
|
},
|
|
{
|
|
"refId": "E",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
5
|
|
],
|
|
"type": "gt"
|
|
},
|
|
"operator": {
|
|
"type": "and"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"type": "max"
|
|
}
|
|
}
|
|
],
|
|
"type": "classic_conditions"
|
|
},
|
|
{
|
|
"refId": "F",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"expression": "A",
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
5
|
|
],
|
|
"type": "gt"
|
|
}
|
|
}
|
|
],
|
|
"type": "threshold"
|
|
},
|
|
{
|
|
"refId": "G",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"expression": "B",
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
100
|
|
],
|
|
"type": "gt"
|
|
},
|
|
"loadedDimensions": {
|
|
"data": {
|
|
"values": [
|
|
[
|
|
18446744073709552000,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"schema": {
|
|
"fields": [
|
|
{
|
|
"name": "fingerprints",
|
|
"type": "number",
|
|
"typeInfo": {
|
|
"frame": "uint64"
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"type": "fingerprints",
|
|
"typeVersion": [
|
|
1,
|
|
0
|
|
]
|
|
},
|
|
"name": "test"
|
|
}
|
|
},
|
|
"unloadEvaluator": {
|
|
"params": [
|
|
31
|
|
],
|
|
"type": "lt"
|
|
}
|
|
}
|
|
],
|
|
"type": "threshold"
|
|
},
|
|
{
|
|
"refId": "H",
|
|
"maxDataPoints": 1000,
|
|
"intervalMs": 5,
|
|
"expression": "SELECT * FROM A limit 1",
|
|
"type": "sql"
|
|
}
|
|
]
|
|
} |