4.3.2.4. Notifier

class dyn.tm.accounts.Notifier(*args, **kwargs)[source]

DynECT System Notifier

__init__(*args, **kwargs)[source]

Create a new Notifier object

Parameters:
  • label – The label used to identify this Notifier
  • recipients – List of Recipients attached to this Notifier
  • services – List of services attached to this Notifier
  • notifier_id – The system id of this Notifier
delete()[source]

Delete this Notifier from the Dynect System

label

The label used to identify this Notifier

notifier_id

The unique System id for this Notifier

recipients

List of Recipients attached to this Notifier

services

List of services attached to this Notifier

4.3.2.4.1. Notifier Examples

The following examples highlight how to use the Notifier class to get/create Notifier‘s on the dyn.tm System and how to edit these objects from within a Python script.

4.3.2.4.1.1. Creating a new Notifier

The following example shows how to create a new Notifier on the dyn.tm System and how to edit some of the fields using the returned Notifier object.

>>> from dyn.tm.accounts import Notifier
>>> # Create a dyn.tmSession
>>> new_notif = Notifier(label='notifierlabel')
>>> new_notif.services
[]
>>> new_notif.recipients
[]
>>> # Probably want to include more

4.3.2.4.1.2. Getting an Existing Notifier

The following example shows how to get an existing Notifier from the dyn.tm System and how to edit some of the same fields mentioned above.

>>> from dyn.tm.accounts import Notifier
>>> # Create a dyn.tmSession
>>> # Note that in order to get a Notifier you will need the ID of that Notifier
>>> my_notif = Notifier(my_notifier_id)
>>> my_notif.services
[]
>>> my_notif.recipients
[]
>>> # Probably want to include more