runtimepy.mixins.environment
index
/home/vkottler/src/vkottler/workspace/runtimepy/runtimepy/mixins/environment.py

A module implementing a channel-environment class mixin.

 
Classes
       
builtins.object
ChannelEnvironmentMixin

 
class ChannelEnvironmentMixin(builtins.object)
    ChannelEnvironmentMixin(env: runtimepy.channel.environment.ChannelEnvironment = None, **kwargs) -> None
 
A simple channel-environment mixin.
 
  Methods defined here:
__init__(self, env: runtimepy.channel.environment.ChannelEnvironment = None, **kwargs) -> None
Initialize this instance.
register_channel_metrics(self, name: str, channel: runtimepy.metrics.channel.ChannelMetrics, verb: str) -> None
Register individual channel metrics.
register_connection_metrics(self, metrics: runtimepy.metrics.connection.ConnectionMetrics, namespace: str = 'metrics') -> None
Register connection metrics.
register_task_metrics(self, metrics: runtimepy.metrics.task.PeriodicTaskMetrics, namespace: str = 'metrics') -> None
Register periodic task metrics.

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

Data and other attributes defined here:
__annotations__ = {'env': <class 'runtimepy.channel.environment.ChannelEnvironment'>}

 
Data
        METRICS_MIN_PERIOD_S = 0.1
METRICS_NAME = 'metrics'