File tree 1 file changed +7
-6
lines changed
src/sentry/workflow_engine/migration_helpers
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
MAX_ACTIONS = 3
8
8
9
+ ACTION_TYPE_TO_STRING = {
10
+ AlertRuleTriggerAction .Type .PAGERDUTY .value : "PagerDuty" ,
11
+ AlertRuleTriggerAction .Type .SLACK .value : "Slack" ,
12
+ AlertRuleTriggerAction .Type .MSTEAMS .value : "Microsoft Teams" ,
13
+ AlertRuleTriggerAction .Type .OPSGENIE .value : "Opsgenie" ,
14
+ }
15
+
9
16
10
17
def get_action_description (action : AlertRuleTriggerAction ) -> str :
11
18
"""
12
19
Returns a human readable action description
13
20
"""
14
- ACTION_TYPE_TO_STRING = {
15
- AlertRuleTriggerAction .Type .PAGERDUTY .value : "PagerDuty" ,
16
- AlertRuleTriggerAction .Type .SLACK .value : "Slack" ,
17
- AlertRuleTriggerAction .Type .MSTEAMS .value : "Microsoft Teams" ,
18
- AlertRuleTriggerAction .Type .OPSGENIE .value : "Opsgenie" ,
19
- }
20
21
21
22
if action .type == AlertRuleTriggerAction .Type .EMAIL .value :
22
23
if action .target :
You can’t perform that action at this time.
0 commit comments