4.3.2.4. Notifier¶
-
class
dyn.tm.accounts.
Notifier
(*args, **kwargs)[source]¶ DynECT System Notifier
-
notifier_id
¶ The unique System id for 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