diff --git a/testdata/slack_events.json b/testdata/slack_events.json deleted file mode 100644 index fa2b7b8..0000000 --- a/testdata/slack_events.json +++ /dev/null @@ -1,8 +0,0 @@ -{"hint":"a message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712878479.415559","client_msg_id":"fce57841-0446-4720-aa1d-557e162c7667","text":"BOTH OF YOU GET IN HERE HEEEHEEEHEEE","team":"T9RQLQ0KV","blocks":[{"type":"rich_text","block_id":"6G5BZ","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"BOTH OF YOU GET IN HERE HEEEHEEEHEEE"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712878479.415559","channel_type":"channel"},"type":"event_callback","event_id":"Ev06U1F01XMJ","event_time":1712878479,"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"} -{"hint":"a thread message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712878566.650149","client_msg_id":"5d9d586b-eee0-40f8-b15e-66245c073a4c","text":"in a thread","team":"T9RQLQ0KV","thread_ts":"1712877772.926539","parent_user_id":"U06868T6ADV","blocks":[{"type":"rich_text","block_id":"KHSCu","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"in a thread"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712878566.650149","channel_type":"channel"},"type":"event_callback","event_id":"Ev06TW3WE58V","event_time":1712878566,"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"} -{"hint": "a new alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U03RUK7FBUY","type":"message","ts":"1712927439.728409","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: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11071: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/38152bc5-bc5d-411d-9feb-d285af5b6481-1712927439305","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11071","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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":"1712927439.728409","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UEPF5BSM","event_time":1712927439,"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"} -{"hint": "a new alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"type":"message","subtype":"message_changed","message":{"user":"U03RUK7FBUY","type":"message","edited":{"user":"B03RHGBPH2M","ts":"1712925631.000000"},"bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"2ecc71","fallback":"\"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11070: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ec6e7c4b-90a6-4c3c-94e9-901f6b7ada47-1712922031403","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11070","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","title":"Tags","short":true},{"value":"Datastores Non-Critical","title":"Routed Teams","short":true}],"mrkdwn_in":["text"]}],"ts":"1712922031.821339","source_team":"T9RQLQ0KV","user_team":"T9RQLQ0KV"},"previous_message":{"user":"U03RUK7FBUY","type":"message","ts":"1712922031.821339","bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"F4511E","fallback":"New alert: \"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11070: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ec6e7c4b-90a6-4c3c-94e9-901f6b7ada47-1712922031403","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11070","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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","hidden":true,"ts":"1712925631.000400","event_ts":"1712925631.000400","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UQNCJKNC","event_time":1712925631,"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"} -{"hint": "a teeny closed alert message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U03RUK7FBUY","type":"message","ts":"1712925631.682559","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":"2ecc71","fallback":"Alert API closed alert \"[Grafana]: Firing: Alertconfig Workflow Failed\"","text":"Alert API closed alert \"[Grafana]: Firing: Alertconfig Workflow Failed\""}],"channel":"C06U1DDBBU4","event_ts":"1712925631.682559","channel_type":"channel"},"type":"event_callback","event_id":"Ev06U1R10TPV","event_time":1712925631,"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"} -{"hint": "an edit to resolve an alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"type":"message","subtype":"message_changed","message":{"user":"U03RUK7FBUY","type":"message","edited":{"user":"B03RHGBPH2M","ts":"1712916339.000000"},"bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"2ecc71","fallback":"\"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11069: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ba6f8300-b869-4aba-9d02-c142237ae59e-1712912739431","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11069","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","title":"Tags","short":true},{"value":"Datastores Non-Critical","title":"Routed Teams","short":true}],"mrkdwn_in":["text"]}],"ts":"1712912739.723049","source_team":"T9RQLQ0KV","user_team":"T9RQLQ0KV"},"previous_message":{"user":"U03RUK7FBUY","type":"message","ts":"1712912739.723049","bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"F4511E","fallback":"New alert: \"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11069: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ba6f8300-b869-4aba-9d02-c142237ae59e-1712912739431","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11069","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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","hidden":true,"ts":"1712916339.000300","event_ts":"1712916339.000300","channel_type":"channel"},"type":"event_callback","event_id":"Ev06TLMY8FJB","event_time":1712916339,"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"} -{"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\" \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: \nSource: ","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"} -{"hint": "a thread reply to an alert", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712930706.598629","client_msg_id":"880fc69f-de95-4c1e-90a7-aae701a40c21","text":"I gotta do this","team":"T9RQLQ0KV","thread_ts":"1712927439.728409","parent_user_id":"U03RUK7FBUY","blocks":[{"type":"rich_text","block_id":"Cp0IU","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"I gotta do this"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712930706.598629","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UF3U1LM7","event_time":1712930706,"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"} diff --git a/testdata/slack_events/human_message.json b/testdata/slack_events/human_message.json new file mode 100644 index 0000000..6259def --- /dev/null +++ b/testdata/slack_events/human_message.json @@ -0,0 +1 @@ +{"hint":"a message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712878479.415559","client_msg_id":"fce57841-0446-4720-aa1d-557e162c7667","text":"BOTH OF YOU GET IN HERE HEEEHEEEHEEE","team":"T9RQLQ0KV","blocks":[{"type":"rich_text","block_id":"6G5BZ","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"BOTH OF YOU GET IN HERE HEEEHEEEHEEE"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712878479.415559","channel_type":"channel"},"type":"event_callback","event_id":"Ev06U1F01XMJ","event_time":1712878479,"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"} diff --git a/testdata/slack_events/human_thread_message.json b/testdata/slack_events/human_thread_message.json new file mode 100644 index 0000000..388bab6 --- /dev/null +++ b/testdata/slack_events/human_thread_message.json @@ -0,0 +1 @@ +{"hint":"a thread message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712878566.650149","client_msg_id":"5d9d586b-eee0-40f8-b15e-66245c073a4c","text":"in a thread","team":"T9RQLQ0KV","thread_ts":"1712877772.926539","parent_user_id":"U06868T6ADV","blocks":[{"type":"rich_text","block_id":"KHSCu","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"in a thread"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712878566.650149","channel_type":"channel"},"type":"event_callback","event_id":"Ev06TW3WE58V","event_time":1712878566,"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"} diff --git a/testdata/slack_events/human_thread_message_from_opsgenie_alert.json b/testdata/slack_events/human_thread_message_from_opsgenie_alert.json new file mode 100644 index 0000000..cebfe6a --- /dev/null +++ b/testdata/slack_events/human_thread_message_from_opsgenie_alert.json @@ -0,0 +1 @@ +{"hint": "a thread reply to an alert", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U06868T6ADV","type":"message","ts":"1712930706.598629","client_msg_id":"880fc69f-de95-4c1e-90a7-aae701a40c21","text":"I gotta do this","team":"T9RQLQ0KV","thread_ts":"1712927439.728409","parent_user_id":"U03RUK7FBUY","blocks":[{"type":"rich_text","block_id":"Cp0IU","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"I gotta do this"}]}]}],"channel":"C06U1DDBBU4","event_ts":"1712930706.598629","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UF3U1LM7","event_time":1712930706,"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"} diff --git a/testdata/slack_events/opsgenie_alert.json b/testdata/slack_events/opsgenie_alert.json new file mode 100644 index 0000000..26e03d4 --- /dev/null +++ b/testdata/slack_events/opsgenie_alert.json @@ -0,0 +1 @@ +{"hint": "a new alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U03RUK7FBUY","type":"message","ts":"1712927439.728409","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: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11071: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/38152bc5-bc5d-411d-9feb-d285af5b6481-1712927439305","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11071","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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":"1712927439.728409","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UEPF5BSM","event_time":1712927439,"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"} diff --git a/testdata/slack_events/opsgenie_alert_2.json b/testdata/slack_events/opsgenie_alert_2.json new file mode 100644 index 0000000..02c145d --- /dev/null +++ b/testdata/slack_events/opsgenie_alert_2.json @@ -0,0 +1 @@ +{"hint": "a new alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"type":"message","subtype":"message_changed","message":{"user":"U03RUK7FBUY","type":"message","edited":{"user":"B03RHGBPH2M","ts":"1712925631.000000"},"bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"2ecc71","fallback":"\"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11070: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ec6e7c4b-90a6-4c3c-94e9-901f6b7ada47-1712922031403","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11070","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","title":"Tags","short":true},{"value":"Datastores Non-Critical","title":"Routed Teams","short":true}],"mrkdwn_in":["text"]}],"ts":"1712922031.821339","source_team":"T9RQLQ0KV","user_team":"T9RQLQ0KV"},"previous_message":{"user":"U03RUK7FBUY","type":"message","ts":"1712922031.821339","bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"F4511E","fallback":"New alert: \"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11070: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ec6e7c4b-90a6-4c3c-94e9-901f6b7ada47-1712922031403","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11070","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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","hidden":true,"ts":"1712925631.000400","event_ts":"1712925631.000400","channel_type":"channel"},"type":"event_callback","event_id":"Ev06UQNCJKNC","event_time":1712925631,"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"} diff --git a/testdata/slack_events/opsgenie_alert_3.json b/testdata/slack_events/opsgenie_alert_3.json new file mode 100644 index 0000000..0f3d36d --- /dev/null +++ b/testdata/slack_events/opsgenie_alert_3.json @@ -0,0 +1 @@ +{"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\" \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: \nSource: ","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"} diff --git a/testdata/slack_events/opsgenie_alert_resolved.json b/testdata/slack_events/opsgenie_alert_resolved.json new file mode 100644 index 0000000..ad0c1d2 --- /dev/null +++ b/testdata/slack_events/opsgenie_alert_resolved.json @@ -0,0 +1,2 @@ + +{"hint": "an edit to resolve an alert from opsgenie", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"type":"message","subtype":"message_changed","message":{"user":"U03RUK7FBUY","type":"message","edited":{"user":"B03RHGBPH2M","ts":"1712916339.000000"},"bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"2ecc71","fallback":"\"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11069: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ba6f8300-b869-4aba-9d02-c142237ae59e-1712912739431","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11069","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","title":"Tags","short":true},{"value":"Datastores Non-Critical","title":"Routed Teams","short":true}],"mrkdwn_in":["text"]}],"ts":"1712912739.723049","source_team":"T9RQLQ0KV","user_team":"T9RQLQ0KV"},"previous_message":{"user":"U03RUK7FBUY","type":"message","ts":"1712912739.723049","bot_id":"B03RHGBPH2M","app_id":"A286WATV2","text":"","team":"T9RQLQ0KV","bot_profile":{"id":"B03RHGBPH2M","app_id":"A286WATV2","name":"Opsgenie for Alert Management","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"},"deleted":false,"updated":1658887059,"team_id":"T9RQLQ0KV"},"attachments":[{"id":1,"color":"F4511E","fallback":"New alert: \"[Grafana]: Firing: Alertconfig Workflow Failed\" \nTags: alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","text":"At least one alertconfig run has failed unexpectedly.\nDashboard: \nPanel: \nSource: ","title":"#11069: [Grafana]: Firing: Alertconfig Workflow Failed","title_link":"https:\/\/opsg.in\/a\/i\/render\/ba6f8300-b869-4aba-9d02-c142237ae59e-1712912739431","author_name":"New Alert created via Grafana - Datastore Slack","callback_id":"bbd4a269-08a9-470e-ba79-ce238ac03dc7_05fa2e9b-bec4-4a7e-842d-36043d267a13_11069","fields":[{"value":"P3","title":"Priority","short":true},{"value":"alertname:Alertconfig Workflow Failed, grafana_folder:Datastores, rule_uid:a7639f7e-6950-41be-850a-b22119f74cbb","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","hidden":true,"ts":"1712916339.000300","event_ts":"1712916339.000300","channel_type":"channel"},"type":"event_callback","event_id":"Ev06TLMY8FJB","event_time":1712916339,"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"} diff --git a/testdata/slack_events/opsgenie_alert_resolved_fyi.json b/testdata/slack_events/opsgenie_alert_resolved_fyi.json new file mode 100644 index 0000000..7b9305f --- /dev/null +++ b/testdata/slack_events/opsgenie_alert_resolved_fyi.json @@ -0,0 +1 @@ +{"hint": "a teeny closed alert message", "token":"redacted","team_id":"T9RQLQ0KV","context_team_id":"T9RQLQ0KV","context_enterprise_id":null,"api_app_id":"A06TYH7CALB","event":{"user":"U03RUK7FBUY","type":"message","ts":"1712925631.682559","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":"2ecc71","fallback":"Alert API closed alert \"[Grafana]: Firing: Alertconfig Workflow Failed\"","text":"Alert API closed alert \"[Grafana]: Firing: Alertconfig Workflow Failed\""}],"channel":"C06U1DDBBU4","event_ts":"1712925631.682559","channel_type":"channel"},"type":"event_callback","event_id":"Ev06U1R10TPV","event_time":1712925631,"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"}