pub struct EventValidationConfig {
pub received_at: Option<DateTime<Utc>>,
pub max_secs_in_past: Option<i64>,
pub max_secs_in_future: Option<i64>,
pub transaction_timestamp_range: Option<Range<UnixTimestamp>>,
pub is_validated: bool,
}
Expand description
Configuration for validate_event
.
Fields§
§received_at: Option<DateTime<Utc>>
The time at which the event was received in this Relay.
This timestamp is persisted into the event payload.
max_secs_in_past: Option<i64>
The maximum amount of seconds an event can be dated in the past.
If the event’s timestamp is older, the received timestamp is assumed.
max_secs_in_future: Option<i64>
The maximum amount of seconds an event can be predated into the future.
If the event’s timestamp lies further into the future, the received timestamp is assumed.
transaction_timestamp_range: Option<Range<UnixTimestamp>>
Timestamp range in which a transaction must end.
Transactions that finish outside this range are invalid. The check is skipped if no range is provided.
is_validated: bool
Controls whether the event has been validated before, in which case disables validation.
By default, is_validated
is disabled and event validation is run.
Similar to is_renormalize
for normalization, sentry_relay
may configure this value.
Trait Implementations§
source§impl Debug for EventValidationConfig
impl Debug for EventValidationConfig
source§impl Default for EventValidationConfig
impl Default for EventValidationConfig
source§fn default() -> EventValidationConfig
fn default() -> EventValidationConfig
Auto Trait Implementations§
impl Freeze for EventValidationConfig
impl RefUnwindSafe for EventValidationConfig
impl Send for EventValidationConfig
impl Sync for EventValidationConfig
impl Unpin for EventValidationConfig
impl UnwindSafe for EventValidationConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more