Slack And Pagerduty Notification on Icinga2

first create a datafield in icinga director name it enable_pagerduty since that the varname of you assign rule and use type boolean.

than you add the datafield to the service template or any root service template your servicetemplates can inherit from.

look at that thread, adding a field to a command is very similar to adding a field to a service