bookclerk_library::entities::event_outbox_stats

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

SeaORM entity for the singleton durable event-outbox counters.

Item Kind Summary
Model struct Row shape for this table (DeriveEntityModel).
ColumnIter struct An iterator over the variants of [Column]
Entity struct Generated by sea-orm-macros
PrimaryKeyIter struct An iterator over the variants of [PrimaryKey]
ActiveModel struct Generated by sea-orm-macros
RelationIter struct An iterator over the variants of [Relation]
Column enum Generated by sea-orm-macros
PrimaryKey enum Generated by sea-orm-macros
Relation enum Declared SeaORM relations (this table is a singleton).

Structs

Model

pub struct Model {
    pub id: i64,
    pub retries_total: i64,
    pub suspensions_total: i64,
    pub dead_letters_total: i64,
    pub dispatch_latency_ms_sum: i64,
    pub dispatch_count: i64,
    pub handler_latency_ms_sum: i64,
    pub handler_count: i64,
}

Row shape for this table (DeriveEntityModel).

Fields

  • id: Singleton id; always 1.
  • retries_total: Persisted retry outcomes (including reclaim-as-retry).
  • suspensions_total: Persisted suspended outcomes.
  • dead_letters_total: Transitions into dead_letter.
  • dispatch_latency_ms_sum: Sum of first-dispatch latencies in milliseconds.
  • dispatch_count: Number of first-dispatch samples.
  • handler_latency_ms_sum: Sum of onEvent handler durations in milliseconds.
  • handler_count: Number of handler-duration samples.

Model::into_ex

pub fn into_ex(self) -> Self

Generated by sea-orm-macros

Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

ColumnIter

pub struct ColumnIter {
    /* private fields */
}

An iterator over the variants of Column

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Entity

pub struct Entity;

Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic

PrimaryKeyIter

pub struct PrimaryKeyIter {
    /* private fields */
}

An iterator over the variants of PrimaryKey

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

ActiveModel

pub struct ActiveModel {
    pub id: ActiveValue<i64>,
    pub retries_total: ActiveValue<i64>,
    pub suspensions_total: ActiveValue<i64>,
    pub dead_letters_total: ActiveValue<i64>,
    pub dispatch_latency_ms_sum: ActiveValue<i64>,
    pub dispatch_count: ActiveValue<i64>,
    pub handler_latency_ms_sum: ActiveValue<i64>,
    pub handler_count: ActiveValue<i64>,
}

Generated by sea-orm-macros

Fields

  • id: Generated by sea-orm-macros
  • retries_total: Generated by sea-orm-macros
  • suspensions_total: Generated by sea-orm-macros
  • dead_letters_total: Generated by sea-orm-macros
  • dispatch_latency_ms_sum: Generated by sea-orm-macros
  • dispatch_count: Generated by sea-orm-macros
  • handler_latency_ms_sum: Generated by sea-orm-macros
  • handler_count: Generated by sea-orm-macros

Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

RelationIter

pub struct RelationIter {
    /* private fields */
}

An iterator over the variants of Relation

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Enums

Column

pub enum Column {
    Id,
    RetriesTotal,
    SuspensionsTotal,
    DeadLettersTotal,
    DispatchLatencyMsSum,
    DispatchCount,
    HandlerLatencyMsSum,
    HandlerCount,
}

Generated by sea-orm-macros

Variants

  • Id: Generated by sea-orm-macros
  • RetriesTotal: Generated by sea-orm-macros
  • SuspensionsTotal: Generated by sea-orm-macros
  • DeadLettersTotal: Generated by sea-orm-macros
  • DispatchLatencyMsSum: Generated by sea-orm-macros
  • DispatchCount: Generated by sea-orm-macros
  • HandlerLatencyMsSum: Generated by sea-orm-macros
  • HandlerCount: Generated by sea-orm-macros

Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator

PrimaryKey

pub enum PrimaryKey {
    Id,
}

Generated by sea-orm-macros

Variants

  • Id: Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait

Relation

pub enum Relation {}

Declared SeaORM relations (this table is a singleton).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown