$appContext
$appContext : \CloudMunch\helper\CloudMunch\AppContext
Class NotificationHandler This class provides the service methods for the apps to send notifications on cloudmunch
__construct(\CloudMunch\helper\CloudMunch\loghandling\LogHandler $logHandler, \CloudMunch\helper\CloudMunch\AppContext $appContext, \CloudMunch\helper\CloudMunch\datamanager\CMDataManager $cmDataManager = null)
Constructor to initialise application context , log handling and CloudMunch data manager.
| \CloudMunch\helper\CloudMunch\loghandling\LogHandler | $logHandler | |
| \CloudMunch\helper\CloudMunch\AppContext | $appContext | |
| \CloudMunch\helper\CloudMunch\datamanager\CMDataManager | $cmDataManager |
sendSlackNotification(string $message, string $status = "ERROR", string $channel = "support", string $from = null, string $to = null)
Send notification to a selected channel on slack
| string | $message | : Notification message. |
| string | $status | : Status level of message : ERROR/WARNING/INFO |
| string | $channel | : Channel to send notification |
| string | $from | : From user |
| string | $to | : To address to be notified |