spoc-bot-vr/testdata/slack_events/opsgenie_alert_3.json

128 lines
4.5 KiB
JSON

{
"hint": "an alert firing that has a render_id",
"token": "redacted",
"team_id": "T9RQLQ0KV",
"context_team_id": "T9RQLQ0KV",
"context_enterprise_id": null,
"api_app_id": "A06TYH7CALB",
"event": {
"user": "U03RUK7FBUY",
"type": "message",
"ts": "1712911957.023359",
"bot_id": "B03RHGBPH2M",
"app_id": "A286WATV2",
"text": "",
"team": "T9RQLQ0KV",
"bot_profile": {
"id": "B03RHGBPH2M",
"deleted": false,
"name": "Opsgenie for Alert Management",
"updated": 1658887059,
"app_id": "A286WATV2",
"icons": {
"image_36": "https://avatars.slack-edge.com/2019-05-30/652285939191_7831939cc30ef7159561_36.png",
"image_48": "https://avatars.slack-edge.com/2019-05-30/652285939191_7831939cc30ef7159561_48.png",
"image_72": "https://avatars.slack-edge.com/2019-05-30/652285939191_7831939cc30ef7159561_72.png"
},
"team_id": "T9RQLQ0KV"
},
"attachments": [
{
"id": 1,
"color": "F4511E",
"fallback": "New alert: \"[Grafana]: Firing: [Oregon-1] Wal Receive Count Alert\" <https://opsg.in/a/i/render/c1565736-aac4-4a78-b7db-65e4d90a59f2-1712911956739|11067>\nTags: alertname:[oregon-1] WAL Receive Count alert, business_hours:true, cluster:oregon-1, contacts:\"OpsGenie - Datastore\",\"Slack - Datastore, grafana_folder:[Generated] oregon-1, template-source:ab1da08c-129f-4f08-b505-db44929eb8",
"text": "Replica for dpg-cn7te6nsc6pc73ak5pig-b cannot start streaming replication, because the primary has already deleted the needed WAL segment.\n\nSync the replica from scratch using the runbook.\nRunbook: <https://slab.render.com/posts/runbook-postgres-replica-too-far-behind-pr084dj4>\nSource: <https://grafana.render.com/alerting/grafana/aecdfbcf-5298-4679-bd20-d9dec32ee2a0/view?orgId=1>",
"title": "#11067: [Grafana]: Firing: [Oregon-1] Wal Receive Count Alert",
"title_link": "https://opsg.in/a/i/render/c1565736-aac4-4a78-b7db-65e4d90a59f2-1712911956739",
"author_name": "New Alert created via Grafana - Datastore Slack",
"callback_id": "bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11067",
"fields": [
{
"value": "P3",
"title": "Priority",
"short": true
},
{
"value": "alertname:[oregon-1] WAL Receive Count alert, business_hours:true, cluster:oregon-1, contacts:\"OpsGenie - Datastore\",\"Slack - Datastore, grafana_folder:[Generated] oregon-1, template-source:ab1da08c-129f-4f08-b505-db44929eb8",
"title": "Tags",
"short": true
},
{
"value": "Datastores Non-Critical",
"title": "Routed Teams",
"short": true
}
],
"mrkdwn_in": [
"pretext",
"text"
],
"actions": [
{
"id": "1",
"name": "acknowledge",
"text": "Acknowledge",
"type": "button",
"value": "ack",
"style": "default"
},
{
"id": "2",
"name": "close",
"text": "Close",
"type": "button",
"value": "close",
"style": "primary"
},
{
"id": "3",
"name": "action",
"text": "Other actions...",
"type": "select",
"data_source": "static",
"options": [
{
"text": "Assign",
"value": "assign"
},
{
"text": "Take Ownership",
"value": "own"
},
{
"text": "Snooze",
"value": "snooze"
},
{
"text": "Add Note",
"value": "addNote"
},
{
"text": "Update Priority",
"value": "updatePriority"
}
]
}
]
}
],
"channel": "C06U1DDBBU4",
"event_ts": "1712911957.023359",
"channel_type": "channel"
},
"type": "event_callback",
"event_id": "Ev06U0TNBXV0",
"event_time": 1712911957,
"authorizations": [
{
"enterprise_id": null,
"team_id": "T9RQLQ0KV",
"user_id": "U06TS9M7ABG",
"is_bot": true,
"is_enterprise_install": false
}
],
"is_ext_shared_channel": false,
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUOVJRTFEwS1YiLCJhaWQiOiJBMDZUWUg3Q0FMQiIsImNpZCI6IkMwNlUxRERCQlU0In0"
}