tcex.tcex_notification_v2 module

TcEx Notification Module

class tcex.tcex_notification_v2.TcExNotificationV2(tcex)[source]

Bases: object

TcEx Notification Class

org(notification_type, priority='Low')[source]

Set vars for the passed in data. Used for org notification.

{
    "notificationType": notification_type,
    "priority": priority
    "isOrganization": true
}
Parameters:
  • notification_type (str) – The notification type.
  • priority (str) – The priority: Low, Medium, High.
recipients(notification_type, recipients, priority='Low')[source]

Set vars for the passed in data. Used for one or more recipient notification.

{
    "notificationType": notification_type,
    "priority": priority
    "isOrganization": false,
    "recipients": recipients
}
Parameters:
  • notification_type (str) – The type of notification being sent.
  • recipients (str) – A comma delimited string of recipients.
  • priority (str) – The priority: Low, Medium, High.
send(message)[source]

Send our message

Parameters:message (str) – The message to be sent.
Returns:The response from the request.
Return type:requests.models.Response