scistag.vislog.visual_log_service.VisualLogService

class VisualLogService(log)[source]

Bases: object

Hosts the VisualLog as web service and enables the user to interact with the data.

Parameters

log (VisualLog) – Defines the log which is being hosted

Methods

get_index

Returns the most recent index.html

get_pid

Returns the log's process id :return: The log's process ID

live

Returns the most recent liveView.html :return:

trigger_event

Is called when an event is triggered.

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

log

The log we are hosting

get_index()[source]

Returns the most recent index.html

Return type

bytes

get_pid()[source]

Returns the log’s process id :return: The log’s process ID

live()[source]

Returns the most recent liveView.html :return:

trigger_event(*args, **params)[source]

Is called when an event is triggered.

Adds the event the log’s event list and handled it upon the next re-execution.

Parameters

params – The query parameters

log

The log we are hosting