AdminSuspend event object, for admin suspend command.
More...
AdminSuspend event object, for admin suspend command.
Definition at line 1042 of file EventObjects.py.
◆ __init__()
def dtm.EventObjects.AdminSuspend.__init__ |
( |
|
self, |
|
|
|
suspendType = SUSPEND |
|
) |
| |
constructor initialize task's fields
- Parameters
-
command | the command code for state operation |
className | name of target class |
Definition at line 1052 of file EventObjects.py.
1052 def __init__(self, suspendType=SUSPEND):
1055 self.suspendType = suspendType
def __init__(self)
constructor
◆ isSuspend()
def dtm.EventObjects.AdminSuspend.isSuspend |
( |
|
self | ) |
|
Definition at line 1058 of file EventObjects.py.
1058 def isSuspend(self):
1059 return self.suspendType == self.SUSPEND
◆ toJSON()
def dtm.EventObjects.AdminSuspend.toJSON |
( |
|
self | ) |
|
Definition at line 1062 of file EventObjects.py.
1063 return json.dumps(self, default=
lambda o: o.__dict__, sort_keys=
True, indent=4)
◆ RUN
int dtm.EventObjects.AdminSuspend.RUN = 1 |
|
static |
◆ SUSPEND
int dtm.EventObjects.AdminSuspend.SUSPEND = 0 |
|
static |
◆ suspendType
dtm.EventObjects.AdminSuspend.suspendType |
The documentation for this class was generated from the following file: