pybragerone.models.api.module_events¶
Module alarm / activity list DTOs for BragerOne REST responses.
Classes
|
One module activity (parameter change / remote action) row. |
|
Author of a module activity row when the API returns a user object. |
|
One active or historical module alarm row. |
- class pybragerone.models.api.module_events.ModuleActivity(**data: Any)[source]¶
Bases:
BaseModelOne module activity (parameter change / remote action) row.
Live
POST /v1/modules/activityrows typically include:prevValue(camelCase): scalar previous value —previous_valueprev_value(snake_case): nested param snapshot{P*: {n: {v, u}}}—prev_value_snapshot(distinct from the camelCase scalar)user: either a username string orModuleActivityUser
- Parameters:
- model_config: ClassVar[ConfigDict] = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- prev_value_snapshot: JsonValue¶
- previous_value: JsonValue¶
- user: ModuleActivityUser | str | None¶
- value: JsonValue¶
- class pybragerone.models.api.module_events.ModuleActivityUser(**data: Any)[source]¶
Bases:
BaseModelAuthor of a module activity row when the API returns a user object.