rrmsutils.models.analytics package

Submodules

rrmsutils.models.analytics.configuration module

Copyright (C) 2024 RidgeRun, LLC (http://www.ridgerun.com) All Rights Reserved.

The contents of this software are proprietary and confidential to RidgeRun, LLC. No part of this program may be photocopied, reproduced or translated into another programming language without prior written consent of RidgeRun, LLC. The user is free to modify the source code after obtaining a software license from RidgeRun. All source code changes must be provided back to RidgeRun without any encumbrance.

class rrmsutils.models.analytics.configuration.Configuration(*, move_camera: ServiceConfiguration, record: ServiceConfiguration)

Bases: BaseModel

Services configuration

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'move_camera': FieldInfo(annotation=ServiceConfiguration, required=True), 'record': FieldInfo(annotation=ServiceConfiguration, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

move_camera: ServiceConfiguration
record: ServiceConfiguration
class rrmsutils.models.analytics.configuration.ServiceConfiguration(*, enable: bool, port: int, ip: str, time_threshold: int)

Bases: BaseModel

Configuration of service to move the camera

enable: bool
ip: str
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'enable': FieldInfo(annotation=bool, required=True), 'ip': FieldInfo(annotation=str, required=True), 'port': FieldInfo(annotation=int, required=True), 'time_threshold': FieldInfo(annotation=int, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

port: int
time_threshold: int

Module contents