mss_dataserver.core.validation

Pydantic data validation models.

The validation models are used to validate the data messages sent and received using the websocket interface.

Classes

Event(*, db_id, public_id, start_time, …)

The Event validation model.

MsgCancelIdEnum(value)

The cancel message id enumeration.

MsgCancelPgvTimeseriesPayload(*, nsl_code)

The cancel:pgv_timeseries message payload model.

MsgClassEnum(value)

The websocket message class enumeration.

MsgControlIdEnum(value)

The control message id enumeration.

MsgControlModeDataModeEnum(value)

The control:datamode enumeration.

MsgControlModePayload(*, data_mode)

The control:mode message model.

MsgDataIdEnum(value)

The data message id enumeration.

MsgRequestEventSupplementCategoryEnum(value)

The request:event_supplement_category enumeration.

MsgRequestEventSupplementNameEnum(value)

The request:event_supplement_name enumeration.

MsgRequestEventSupplementPayload(*, …)

The request:event_supplement message payload model.

MsgRequestIdEnum(value)

The request message id enumeration.

MsgRequestPgvTimeseriesPayload(*, nsl_code)

The request:pgv_timeseries message payload model.

MsgSohIdEnum(value)

The SOH message id enumeration.

WSMessage(*, header, payload)

The websocket message model.

WSMessageHeader(*, msg_class, msg_id, …)

The websocket message header model.