harp_apps.storage.models.metrics

Inheritance diagram of harp_apps.storage.models.metrics

class Metric[source]

Bases: Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
name
class MetricValue[source]

Bases: Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

created_at
metric: Mapped[Metric]
metric_id
value
class MetricValuesRepository[source]

Bases: Repository[MetricValue]

Type

alias of MetricValue

class MetricsRepository[source]

Bases: Repository[Metric]

Type

alias of Metric

__init__(session_factory, /)[source]
async insert_values(values, /, session)[source]
Parameters:

values (dict)