HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
dtm.EventObjects.AdminStatData Class Reference

AdminStatData event object, for admin fetch stat fields and possible data from any threaded classes instances. More...

Inheritance diagram for dtm.EventObjects.AdminStatData:
Collaboration diagram for dtm.EventObjects.AdminStatData:

Public Member Functions

def __init__ (self, className, statFieldsDic=None)
 constructor initialize task's fields More...
 
def toJSON (self)
 

Public Attributes

 className
 
 fields
 The stat fields to fetch, if empty - all fields pairs returned. More...
 

Static Public Attributes

string FIELD_CLIENTS_LIST = "clients"
 

Detailed Description

AdminStatData event object, for admin fetch stat fields and possible data from any threaded classes instances.

Used for request and response.

Definition at line 959 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dtm.EventObjects.AdminStatData.__init__ (   self,
  className,
  statFieldsDic = None 
)

constructor initialize task's fields

Parameters
classNamename of target class
statFieldsDicstat fields to fetch key is field name, if empty - all fields pairs returned

Definition at line 968 of file EventObjects.py.

968  def __init__(self, className, statFieldsDic=None):
969 
971  self.className = className
972 
974  self.fields = {}
975  if statFieldsDic is not None:
976  self.fields = statFieldsDic
977 
978 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ toJSON()

def dtm.EventObjects.AdminStatData.toJSON (   self)

Definition at line 979 of file EventObjects.py.

979  def toJSON(self):
980  return json.dumps(self, default=lambda o: o.__dict__, sort_keys=True, indent=4)
981 
982 
983 

Member Data Documentation

◆ className

dtm.EventObjects.AdminStatData.className

Definition at line 971 of file EventObjects.py.

◆ FIELD_CLIENTS_LIST

string dtm.EventObjects.AdminStatData.FIELD_CLIENTS_LIST = "clients"
static

Definition at line 961 of file EventObjects.py.

◆ fields

dtm.EventObjects.AdminStatData.fields

The stat fields to fetch, if empty - all fields pairs returned.

Definition at line 974 of file EventObjects.py.


The documentation for this class was generated from the following file: