mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
162 lines
3.1 KiB
JSON
162 lines
3.1 KiB
JSON
{
|
|
"type": "table",
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"expression": "$A + 10",
|
|
"type": "math"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"type": "math",
|
|
"expression": "$A - $B"
|
|
},
|
|
{
|
|
"refId": "C",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"type": "reduce",
|
|
"expression": "$A",
|
|
"reducer": "max",
|
|
"settings": {
|
|
"mode": "dropNN"
|
|
}
|
|
},
|
|
{
|
|
"refId": "D",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"expression": "$A",
|
|
"window": "1d",
|
|
"downsampler": "last",
|
|
"upsampler": "pad",
|
|
"type": "resample"
|
|
},
|
|
{
|
|
"refId": "E",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
5
|
|
],
|
|
"type": "gt"
|
|
},
|
|
"operator": {
|
|
"type": "and"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"type": "max"
|
|
}
|
|
}
|
|
],
|
|
"type": "classic_conditions"
|
|
},
|
|
{
|
|
"refId": "F",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"expression": "A",
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
5
|
|
],
|
|
"type": "gt"
|
|
}
|
|
}
|
|
],
|
|
"type": "threshold"
|
|
},
|
|
{
|
|
"refId": "G",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"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",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "TheUID"
|
|
},
|
|
"expression": "SELECT * FROM A limit 1",
|
|
"type": "sql"
|
|
}
|
|
]
|
|
} |