|
|
|
@ -168,7 +168,7 @@ func TestPrometheusRules(t *testing.T) { |
|
|
|
|
"rules": [{ |
|
|
|
|
"state": "inactive", |
|
|
|
|
"name": "AlwaysFiring", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":100,\"type\":\"math\"}}]", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":43200,\"type\":\"math\"}}]", |
|
|
|
|
"duration": 10, |
|
|
|
|
"annotations": { |
|
|
|
|
"annotation1": "val1" |
|
|
|
@ -184,7 +184,7 @@ func TestPrometheusRules(t *testing.T) { |
|
|
|
|
}, { |
|
|
|
|
"state": "inactive", |
|
|
|
|
"name": "AlwaysFiringButSilenced", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":100,\"type\":\"math\"}}]", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":43200,\"type\":\"math\"}}]", |
|
|
|
|
"labels": null, |
|
|
|
|
"health": "ok", |
|
|
|
|
"lastError": "", |
|
|
|
@ -223,7 +223,7 @@ func TestPrometheusRules(t *testing.T) { |
|
|
|
|
"rules": [{ |
|
|
|
|
"state": "inactive", |
|
|
|
|
"name": "AlwaysFiring", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":100,\"type\":\"math\"}}]", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":43200,\"type\":\"math\"}}]", |
|
|
|
|
"duration": 10, |
|
|
|
|
"annotations": { |
|
|
|
|
"annotation1": "val1" |
|
|
|
@ -239,7 +239,7 @@ func TestPrometheusRules(t *testing.T) { |
|
|
|
|
}, { |
|
|
|
|
"state": "inactive", |
|
|
|
|
"name": "AlwaysFiringButSilenced", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":100,\"type\":\"math\"}}]", |
|
|
|
|
"query": "[{\"refId\":\"A\",\"queryType\":\"\",\"relativeTimeRange\":{\"from\":18000,\"to\":10800},\"datasourceUid\":\"-100\",\"model\":{\"expression\":\"2 + 3 \\u003e 1\",\"intervalMs\":1000,\"maxDataPoints\":43200,\"type\":\"math\"}}]", |
|
|
|
|
"labels": null, |
|
|
|
|
"health": "ok", |
|
|
|
|
"lastError": "", |
|
|
|
|