Attention
This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.
harp_apps.sqlalchemy_storage.models¶
- class Base[source]¶
Bases:
AsyncAttrs,DeclarativeBaseA 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.
- metadata: ClassVar[MetaData] = MetaData()¶
Refers to the
_schema.MetaDatacollection that will be used for new_schema.Tableobjects.See also
orm_declarative_metadata
- registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>¶
Refers to the
_orm.registryin use where new_orm.Mapperobjects will be associated.
- class Blob[source]¶
Bases:
BaseA 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.
- content_type¶
- created_at¶
- data¶
- id¶
- class BlobsRepository[source]¶
Bases:
Repository[Blob]
- class FlagsRepository[source]¶
Bases:
Repository
- class Message[source]¶
Bases:
BaseA 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.
- body¶
- created_at¶
- headers¶
- id¶
- kind¶
- summary¶
- transaction: Mapped[Transaction]¶
- transaction_id¶
- class MessagesRepository[source]¶
Bases:
Repository[Message]
- class Metric[source]¶
Bases:
BaseA 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:
BaseA 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_id¶
- value¶
- class MetricValuesRepository[source]¶
Bases:
Repository[MetricValue]- Type¶
alias of
MetricValue
- class MetricsRepository[source]¶
Bases:
Repository[Metric]
- class Tag[source]¶
Bases:
BaseA 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 TagValue[source]¶
Bases:
BaseA 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¶
- tag_id¶
- value¶
- class Transaction[source]¶
Bases:
BaseA 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.
- elapsed¶
- endpoint¶
- finished_at¶
- id¶
- started_at¶
- property tags¶
- tpdex¶
- type¶
- x_cached¶
- x_method¶
- x_no_cache¶
- x_status_class¶
- class TransactionsRepository[source]¶
Bases:
Repository[Transaction]- Type¶
alias of
Transaction
- async create(values, /, *, session=None)[source]¶
- Parameters:
values (dict | Transaction)
- async set_tags(transaction, tags, /, *, session=None)[source]¶
- Parameters:
transaction (Transaction)
tags (dict)
- class User[source]¶
Bases:
BaseA 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¶
- username¶
- class UserFlag[source]¶
Bases:
BaseA 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¶
- transaction: Mapped[Transaction]¶
- transaction_id¶
- type¶
- user_id¶
- class UsersRepository[source]¶
Bases:
Repository
Submodules¶
- harp_apps.sqlalchemy_storage.models.base
- harp_apps.sqlalchemy_storage.models.blobs
- harp_apps.sqlalchemy_storage.models.flags
- harp_apps.sqlalchemy_storage.models.messages
- harp_apps.sqlalchemy_storage.models.metrics
- harp_apps.sqlalchemy_storage.models.tags
- harp_apps.sqlalchemy_storage.models.transactions
- harp_apps.sqlalchemy_storage.models.users