openpectus.protocol.engine_messages
Classes
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Doesn't extend EngineMessage, because we don't have the engine_id yet |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
|
Base class for protocol messages for both REST and WebSocket communication. |
Functions
|
print message sequence numbers in concise format |
Module Contents
- class openpectus.protocol.engine_messages.EngineMessage(/, **data)
Bases:
openpectus.protocol.messages.MessageBaseBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- sequence_number: int = -1
- engine_id: str = ''
- property ident: str
- Return type:
str
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.EngineControlMessage(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- class openpectus.protocol.engine_messages.EngineDataMessage(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- class openpectus.protocol.engine_messages.PingMsg(/, **data)
Bases:
EngineControlMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- class openpectus.protocol.engine_messages.RegisterEngineMsg(/, **data)
Bases:
openpectus.protocol.messages.MessageBaseDoesn’t extend EngineMessage, because we don’t have the engine_id yet
- Parameters:
data (Any)
- computer_name: str
- uod_name: str
- uod_author_name: str
- uod_author_email: str
- uod_filename: str
- location: str
- engine_version: str
- secret: str = ''
- sequence_number: int = -2
- property ident: str
- Return type:
str
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.UodInfoMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- readings: list[openpectus.protocol.models.ReadingInfo]
- commands: list[openpectus.protocol.models.CommandInfo]
- uod_definition: openpectus.protocol.models.UodDefinition
- plot_configuration: openpectus.protocol.models.PlotConfiguration
- hardware_str: str
- required_roles: set[str]
- data_log_interval_seconds: float
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.TagsUpdatedMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- tags: list[openpectus.protocol.models.TagValue] = []
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.TagsBufferedMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- tags: list[openpectus.protocol.models.TagValue] = []
- tick_time: float
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.RunLogMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- id: str
- run_id: str
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.ErrorLogMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.MethodMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.MethodStateMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- method_state: openpectus.protocol.models.MethodState
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.ControlStateMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- control_state: openpectus.protocol.models.ControlState
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.RunStartedMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- run_id: str
- started_tick: float
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.RunStoppedMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- run_id: str
- method_state: openpectus.protocol.models.MethodState
- archive: str | None
- archive_filename: str | None
- __str__()
- Return type:
str
- class openpectus.protocol.engine_messages.WebPushNotificationMsg(/, **data)
Bases:
EngineMessageBase class for protocol messages for both REST and WebSocket communication.
These inherit from pydantic BaseModel to support automatic (de-)serialization when sent over fastapi_websocket_pubsub. Additionally they support automatic openapi schema generation for use with REST.
Unfortunately, for websocket rpc, (de-)serialization is not automatic but is handled using the openpectus.protocol.serialization module.
- Parameters:
data (Any)
- notification: openpectus.aggregator.models.WebPushNotification
- __str__()
- openpectus.protocol.engine_messages.print_sequence_range(messages)
print message sequence numbers in concise format
- Parameters:
messages (Sequence[EngineMessage])
- Return type:
str