esppy.connection.ProjectStats

class esppy.connection.ProjectStats(session, filter=None, interval=None, min_cpu=None, limit=20)

Bases: object

Project statistics subscriber

Parameters
sessionrequests.Session or ESP or Project

The object that supplies the ESP session

filterstring, optional

Functional filter to match projects. If a project is given as the first argument, the filter is set to only view that project.

intervalint, optional

The interval in seconds between updates

min_cpuint, optional

The minimum CPU value you want included

limitint, optional

The maximum number of rows to retain in the DataFrame

__init__(self, session, filter=None, interval=None, min_cpu=None, limit=20)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, session[, filter, interval, …])

Initialize self.

close(self)

Stop processing events and close the web socket

start(self)

Initialize the web socket and start it in its own thread

stop(self)

Stop processing events and close the web socket

Attributes

is_active

Is the web socket active?

url

Return the URL of the project statitics