snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
61
zerver/webhooks/grafana/fixtures/alert_multiple_v8.json
Normal file
61
zerver/webhooks/grafana/fixtures/alert_multiple_v8.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"receiver": "My Super Webhook",
|
||||
"status": "firing",
|
||||
"orgId": 1,
|
||||
"alerts": [
|
||||
{
|
||||
"status": "firing",
|
||||
"labels": {
|
||||
"alertname": "High memory usage",
|
||||
"team": "blue",
|
||||
"zone": "us-1"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "The system has high memory usage",
|
||||
"runbook_url": "https://myrunbook.com/runbook/1234",
|
||||
"summary": "This alert was triggered for zone us-1"
|
||||
},
|
||||
"startsAt": "2021-10-12T09:51:03.157076+02:00",
|
||||
"endsAt": "0001-01-01T00:00:00Z",
|
||||
"generatorURL": "https://play.grafana.org/alerting/1afz29v7z/edit",
|
||||
"fingerprint": "c6eadffa33fcdf37",
|
||||
"silenceURL": "https://play.grafana.org/alerting/silence/new?alertmanager=grafana&matchers=alertname%3DT2%2Cteam%3Dblue%2Czone%3Dus-1",
|
||||
"dashboardURL": "",
|
||||
"panelURL": "",
|
||||
"valueString": "[ metric='' labels={} value=14151.331895396988 ]"
|
||||
},
|
||||
{
|
||||
"status": "firing",
|
||||
"labels": {
|
||||
"alertname": "High CPU usage",
|
||||
"team": "blue",
|
||||
"zone": "eu-1"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "The system has high CPU usage",
|
||||
"runbook_url": "https://myrunbook.com/runbook/1234",
|
||||
"summary": "This alert was triggered for zone eu-1"
|
||||
},
|
||||
"startsAt": "2021-10-12T09:56:03.157076+02:00",
|
||||
"endsAt": "0001-01-01T00:00:00Z",
|
||||
"generatorURL": "https://play.grafana.org/alerting/d1rdpdv7k/edit",
|
||||
"fingerprint": "bc97ff14869b13e3",
|
||||
"silenceURL": "https://play.grafana.org/alerting/silence/new?alertmanager=grafana&matchers=alertname%3DT1%2Cteam%3Dblue%2Czone%3Deu-1",
|
||||
"dashboardURL": "",
|
||||
"panelURL": "",
|
||||
"valueString": "[ metric='' labels={} value=47043.702386305304 ]"
|
||||
}
|
||||
],
|
||||
"groupLabels": {},
|
||||
"commonLabels": {
|
||||
"team": "blue"
|
||||
},
|
||||
"commonAnnotations": {},
|
||||
"externalURL": "https://play.grafana.org/",
|
||||
"version": "1",
|
||||
"groupKey": "{}:{}",
|
||||
"truncatedAlerts": 0,
|
||||
"title": "[FIRING:2] (blue)",
|
||||
"state": "alerting",
|
||||
"message": "Webhook test message."
|
||||
}
|
||||
51
zerver/webhooks/grafana/fixtures/alert_no_alertname_v11.json
Normal file
51
zerver/webhooks/grafana/fixtures/alert_no_alertname_v11.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"receiver": "Debug webhook",
|
||||
"status": "firing",
|
||||
"alerts": [
|
||||
{
|
||||
"status": "firing",
|
||||
"labels": {
|
||||
"debug": "true",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"annotations": {
|
||||
"summary": "High memory usage"
|
||||
},
|
||||
"startsAt": "2024-03-01T02:09:00Z",
|
||||
"endsAt": "0001-01-01T00:00:00Z",
|
||||
"generatorURL": "https://play.grafana.org/alerting/grafana/dd2f0260-3cfc-4c65-a4c4-f3f632c551f4/view?orgId=1",
|
||||
"fingerprint": "e6349a25f5ef0e9e",
|
||||
"silenceURL": "https://play.grafana.org/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DMemory+%28copy%29\u0026matcher=debug%3Dtrue\u0026matcher=grafana_folder%3Ddevice\u0026orgId=1",
|
||||
"dashboardURL": "https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1",
|
||||
"panelURL": "https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\u0026viewPanel=2",
|
||||
"values": {
|
||||
"A": 2473545728,
|
||||
"B": 0,
|
||||
"C": 1,
|
||||
"minute": 9
|
||||
},
|
||||
"valueString": "[ var='A' labels={instance=node_exporter:9100, job=node} value=2.473545728e+09 ], [ var='B' labels={instance=node_exporter:9100, job=node} value=0 ], [ var='C' labels={} value=1 ], [ var='minute' labels={} value=9 ]",
|
||||
"imageURL": "https://grafana.com/assets/img/blog/mixed_styles.png"
|
||||
}
|
||||
],
|
||||
"groupLabels": {
|
||||
"alertname": "Memory (copy)",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"commonLabels": {
|
||||
"alertname": "Memory (copy)",
|
||||
"debug": "true",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"commonAnnotations": {
|
||||
"summary": "High memory usage"
|
||||
},
|
||||
"externalURL": "https://play.grafana.org/",
|
||||
"version": "1",
|
||||
"groupKey": "{}/{debug=\"true\"}:{alertname=\"Memory (copy)\", grafana_folder=\"device\"}",
|
||||
"truncatedAlerts": 0,
|
||||
"orgId": 1,
|
||||
"title": "[FIRING:1] Memory (copy) device (true)",
|
||||
"state": "alerting",
|
||||
"message": "**Firing**\n\nValue: A=2.473545728e+09, B=0, C=1, minute=9\nLabels:\n - alertname = Memory (copy)\n - debug = true\n - grafana_folder = device\nAnnotations:\n - summary = High memory usage\nSource: https://play.grafana.org/alerting/grafana/dd2f0260-3cfc-4c65-a4c4-f3f632c551f4/view?orgId=1\nSilence: https://play.grafana.org/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DMemory+%28copy%29\u0026matcher=debug%3Dtrue\u0026matcher=grafana_folder%3Ddevice\u0026orgId=1\nDashboard: https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\nPanel: https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\u0026viewPanel=2\n"
|
||||
}
|
||||
20
zerver/webhooks/grafana/fixtures/alert_ok_v7.json
Normal file
20
zerver/webhooks/grafana/fixtures/alert_ok_v7.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"dashboardId": 1,
|
||||
"evalMatches": [
|
||||
{
|
||||
"value": 0,
|
||||
"metric": "High value",
|
||||
"tags": null
|
||||
}
|
||||
],
|
||||
"imageUrl": "https://grafana.com/assets/img/blog/mixed_styles.png",
|
||||
"message": "Someone is testing the alert notification within grafana.",
|
||||
"orgId": 0,
|
||||
"panelId": 1,
|
||||
"ruleId": 0,
|
||||
"ruleName": "Test rule",
|
||||
"ruleUrl": "http://localhost:3000/",
|
||||
"state": "ok",
|
||||
"tags": {},
|
||||
"title": "[Ok] Test notification"
|
||||
}
|
||||
13
zerver/webhooks/grafana/fixtures/alert_paused_v7.json
Normal file
13
zerver/webhooks/grafana/fixtures/alert_paused_v7.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"dashboardId": 1,
|
||||
"imageUrl": "https://grafana.com/assets/img/blog/mixed_styles.png",
|
||||
"message": "Someone is testing the alert notification within grafana.",
|
||||
"orgId": 0,
|
||||
"panelId": 1,
|
||||
"ruleId": 0,
|
||||
"ruleName": "Test rule",
|
||||
"ruleUrl": "http://localhost:3000/",
|
||||
"state": "paused",
|
||||
"tags": {},
|
||||
"title": "[Paused] Test notification"
|
||||
}
|
||||
25
zerver/webhooks/grafana/fixtures/alert_pending_v7.json
Normal file
25
zerver/webhooks/grafana/fixtures/alert_pending_v7.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"dashboardId": 1,
|
||||
"evalMatches": [
|
||||
{
|
||||
"value": 100,
|
||||
"metric": "High value",
|
||||
"tags": null
|
||||
},
|
||||
{
|
||||
"value": 200,
|
||||
"metric": "Higher Value",
|
||||
"tags": null
|
||||
}
|
||||
],
|
||||
"imageUrl": "https://grafana.com/assets/img/blog/mixed_styles.png",
|
||||
"message": "Someone is testing the alert notification within grafana.",
|
||||
"orgId": 0,
|
||||
"panelId": 1,
|
||||
"ruleId": 0,
|
||||
"ruleName": "Test rule",
|
||||
"ruleUrl": "http://localhost:3000/",
|
||||
"state": "pending",
|
||||
"tags": {},
|
||||
"title": "[Pending] Test notification"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"text": "🚨 TestAlert - Notification test"
|
||||
}
|
||||
25
zerver/webhooks/grafana/fixtures/alert_v7.json
Normal file
25
zerver/webhooks/grafana/fixtures/alert_v7.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"dashboardId": 1,
|
||||
"evalMatches": [
|
||||
{
|
||||
"value": 100,
|
||||
"metric": "High value",
|
||||
"tags": null
|
||||
},
|
||||
{
|
||||
"value": 200,
|
||||
"metric": "Higher Value",
|
||||
"tags": null
|
||||
}
|
||||
],
|
||||
"imageUrl": "https://grafana.com/assets/img/blog/mixed_styles.png",
|
||||
"message": "Someone is testing the alert notification within grafana.",
|
||||
"orgId": 0,
|
||||
"panelId": 1,
|
||||
"ruleId": 0,
|
||||
"ruleName": "Test rule",
|
||||
"ruleUrl": "http://localhost:3000/",
|
||||
"state": "alerting",
|
||||
"tags": {},
|
||||
"title": "[Alerting] Test notification"
|
||||
}
|
||||
40
zerver/webhooks/grafana/fixtures/alert_v8.json
Normal file
40
zerver/webhooks/grafana/fixtures/alert_v8.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"receiver": "",
|
||||
"status": "resolved",
|
||||
"alerts": [
|
||||
{
|
||||
"status": "resolved",
|
||||
"labels": {
|
||||
"alertname": "TestAlert",
|
||||
"instance": "Grafana"
|
||||
},
|
||||
"annotations": {
|
||||
"summary": "Notification test"
|
||||
},
|
||||
"startsAt": "2022-08-31T05:54:04.52289368Z",
|
||||
"endsAt": "2022-08-31T10:30:00.52288431Z",
|
||||
"generatorURL": "",
|
||||
"fingerprint": "57c6d9296de2ad39",
|
||||
"silenceURL": "https://zuliptestingwh2.grafana.net/alerting/silence/new?alertmanager=grafana&matcher=alertname%3DTestAlert&matcher=instance%3DGrafana",
|
||||
"dashboardURL": "",
|
||||
"panelURL": "",
|
||||
"valueString": "[ metric='foo' labels={instance=bar} value=10 ]"
|
||||
}
|
||||
],
|
||||
"groupLabels": {},
|
||||
"commonLabels": {
|
||||
"alertname": "TestAlert",
|
||||
"instance": "Grafana"
|
||||
},
|
||||
"commonAnnotations": {
|
||||
"summary": "Notification test"
|
||||
},
|
||||
"externalURL": "https://zuliptestingwh2.grafana.net/",
|
||||
"version": "1",
|
||||
"groupKey": "{alertname=\"TestAlert\", instance=\"Grafana\"}2022-08-31 05:54:04.52289368 +0000 UTC m=+42208.256292221",
|
||||
"truncatedAlerts": 1,
|
||||
"orgId": 1,
|
||||
"title": "[RESOLVED:1] (TestAlert Grafana)",
|
||||
"state": "alerting",
|
||||
"message": "Webhook test message."
|
||||
}
|
||||
52
zerver/webhooks/grafana/fixtures/alert_values_v11.json
Normal file
52
zerver/webhooks/grafana/fixtures/alert_values_v11.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"receiver": "Debug webhook",
|
||||
"status": "firing",
|
||||
"alerts": [
|
||||
{
|
||||
"status": "firing",
|
||||
"labels": {
|
||||
"alertname": "Memory (copy)",
|
||||
"debug": "true",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"annotations": {
|
||||
"summary": "High memory usage"
|
||||
},
|
||||
"startsAt": "2024-03-01T02:09:00Z",
|
||||
"endsAt": "0001-01-01T00:00:00Z",
|
||||
"generatorURL": "https://play.grafana.org/alerting/grafana/dd2f0260-3cfc-4c65-a4c4-f3f632c551f4/view?orgId=1",
|
||||
"fingerprint": "e6349a25f5ef0e9e",
|
||||
"silenceURL": "https://play.grafana.org/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DMemory+%28copy%29\u0026matcher=debug%3Dtrue\u0026matcher=grafana_folder%3Ddevice\u0026orgId=1",
|
||||
"dashboardURL": "https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1",
|
||||
"panelURL": "https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\u0026viewPanel=2",
|
||||
"values": {
|
||||
"A": 2473545728,
|
||||
"B": 0,
|
||||
"C": 1,
|
||||
"minute": 9
|
||||
},
|
||||
"valueString": "[ var='A' labels={instance=node_exporter:9100, job=node} value=2.473545728e+09 ], [ var='B' labels={instance=node_exporter:9100, job=node} value=0 ], [ var='C' labels={} value=1 ], [ var='minute' labels={} value=9 ]",
|
||||
"imageURL": "https://grafana.com/assets/img/blog/mixed_styles.png"
|
||||
}
|
||||
],
|
||||
"groupLabels": {
|
||||
"alertname": "Memory (copy)",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"commonLabels": {
|
||||
"alertname": "Memory (copy)",
|
||||
"debug": "true",
|
||||
"grafana_folder": "device"
|
||||
},
|
||||
"commonAnnotations": {
|
||||
"summary": "High memory usage"
|
||||
},
|
||||
"externalURL": "https://play.grafana.org/",
|
||||
"version": "1",
|
||||
"groupKey": "{}/{debug=\"true\"}:{alertname=\"Memory (copy)\", grafana_folder=\"device\"}",
|
||||
"truncatedAlerts": 0,
|
||||
"orgId": 1,
|
||||
"title": "[FIRING:1] Memory (copy) device (true)",
|
||||
"state": "alerting",
|
||||
"message": "**Firing**\n\nValue: A=2.473545728e+09, B=0, C=1, minute=9\nLabels:\n - alertname = Memory (copy)\n - debug = true\n - grafana_folder = device\nAnnotations:\n - summary = High memory usage\nSource: https://play.grafana.org/alerting/grafana/dd2f0260-3cfc-4c65-a4c4-f3f632c551f4/view?orgId=1\nSilence: https://play.grafana.org/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DMemory+%28copy%29\u0026matcher=debug%3Dtrue\u0026matcher=grafana_folder%3Ddevice\u0026orgId=1\nDashboard: https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\nPanel: https://play.grafana.org/d/ece9fb32-7f71-4be9-bd94-2f23608ae5b9?orgId=1\u0026viewPanel=2\n"
|
||||
}
|
||||
13
zerver/webhooks/grafana/fixtures/no_data_alert_v7.json
Normal file
13
zerver/webhooks/grafana/fixtures/no_data_alert_v7.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"dashboardId": 2,
|
||||
"evalMatches": [],
|
||||
"message": "The panel has no data.",
|
||||
"orgId": 1,
|
||||
"panelId": 6,
|
||||
"ruleId": 3,
|
||||
"ruleName": "No Data alert",
|
||||
"ruleUrl": "http://localhost:3000/d/GG2qhR3Wz/alerttest?fullscreen&edit&tab=alert&panelId=6&orgId=1",
|
||||
"state": "alerting",
|
||||
"tags": {},
|
||||
"title": "[Alerting] No Data alert"
|
||||
}
|
||||
18
zerver/webhooks/grafana/fixtures/no_message_alert_v7.json
Normal file
18
zerver/webhooks/grafana/fixtures/no_message_alert_v7.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"dashboardId": 2,
|
||||
"evalMatches": [
|
||||
{
|
||||
"value": 21.573108436586445,
|
||||
"metric": "A-series",
|
||||
"tags": {}
|
||||
}
|
||||
],
|
||||
"orgId": 1,
|
||||
"panelId": 8,
|
||||
"ruleId": 4,
|
||||
"ruleName": "No Message alert",
|
||||
"ruleUrl": "http://localhost:3000/d/GG2qhR3Wz/alerttest?fullscreen&edit&tab=alert&panelId=8&orgId=1",
|
||||
"state": "alerting",
|
||||
"tags": {},
|
||||
"title": "[Alerting] No Message alert"
|
||||
}
|
||||
Reference in New Issue
Block a user