[][src]Struct st2_logformat::LogRecord

pub struct LogRecord {
    pub seq_no: u64,
    pub epoch: u64,
    pub timestamp: Timestamp,
    pub local_worker: Worker,
    pub activity_type: ActivityType,
    pub event_type: EventType,
    pub remote_worker: Option<Worker>,
    pub operator_id: Option<OperatorId>,
    pub channel_id: Option<ChannelId>,
    pub correlator_id: Option<u64>,
    pub length: Option<usize>,
}

A LogRecord constitutes the unified struct representation of log messages from various stream processors.

It is the underlying structure from which the PAG construction starts. If necessary, it can also be serialized e.g. into a msgpack representation.

Fields

seq_no: u64

worker-unique identifier of a message, given in order the events are logged in the computation.

epoch: u64

epoch of the computation this record belongs to

timestamp: Timestamp

Event time in nanoseconds since the Epoch (midnight, January 1, 1970 UTC).

local_worker: Worker

Context this event occured in; denotes which of the parallel timelines it belongs to.

activity_type: ActivityType

Describes the instrumentation point which triggered this event.

event_type: EventType

Identifies which end of an edge this program event belongs to.

remote_worker: Option<Worker>

Similar to local_worker but specifies the worker ID for the other end of a sent/received message.

operator_id: Option<OperatorId>

Unique id for the operator in the dataflow. This only applies for some event types, e.g. scheduling or processing.

channel_id: Option<ChannelId>

Unique id for the channel in the dataflow. This only applies for some event types, e.g. data / control messages.

correlator_id: Option<u64>

correlates remote events belonging together

length: Option<usize>

Number of records to detect skew

Trait Implementations

impl Clone for LogRecord[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for LogRecord[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<LogRecord> for LogRecord[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq<LogRecord> for LogRecord[src]

impl Eq for LogRecord[src]

impl Debug for LogRecord[src]

impl Hash for LogRecord[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Abomonation for LogRecord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Data for T where
    T: Ord + Debug + Data
[src]

impl<T> ExchangeData for T where
    T: Ord + Debug + ExchangeData
[src]

impl<T> Hashable for T where
    T: Hash
[src]

type Output = u64

The type of the output value.

impl<T> Data for T where
    T: 'static + Clone
[src]

impl<T> Data for T where
    T: 'static + Send + Sync + Any + Abomonation

impl<T> ExchangeData for T where
    T: Data + Data, 
[src]