Module event

Modules§

array
This module contains the definitions and wrapper types for handling arrays of type Event, in the various forms they may appear.
discriminant
lua
merge_state
metric
proto
util

Structs§

BatchNotifier
A batch notifier contains the status of the current batch along with a one-shot notifier to send that status back to the source. It is shared among all events of a batch.
BatchStatusReceiver
A convenience newtype wrapper for the one-shot receiver for an individual batch status.
DatadogMetricOriginMetadata
Metric Origin metadata for submission to Datadog.
EventFinalizer
An event finalizer is the shared data required to handle tracking the status of an event, and updating the status of a batch with that when the event is dropped.
EventFinalizers
A collection of event finalizers.
EventMetadata
The event metadata structure is a Arc wrapper around the actual metadata to avoid cloning the underlying data until it becomes necessary to provide a mut copy.
KeyString
The key type value. This is a simple zero-overhead wrapper set up to make it explicit that object keys are read-only and their underlying type is opaque and may change for efficiency.
LogEvent
Metric
A metric.
MetricTags
Tags for a metric series.
TraceEvent
Traces are a newtype of LogEvent
WithMetadata
This is a simple wrapper to allow attaching EventMetadata to any other type. This is primarily used in conversion functions, such as impl From<X> for WithMetadata<Y>.

Enums§

BatchStatus
The status of an individual batch.
Event
EventArray
An array of one of the Event variants exclusively.
EventMutRef
A wrapper for mutable references to inner event types, where reconstituting a full Event from a LogEvent or Metric might be inconvenient.
EventRef
A wrapper for references to inner event types, where reconstituting a full Event from a LogEvent or Metric might be inconvenient.
EventStatus
The status of an individual event.
MetricKind
Metric kind.
MetricValue
Metric value. Container for the actual value of a metric.
StatisticKind
Type of statistics to generate for a distribution.
TargetEvents
Value
The main value type used in Vector events, and VRL.
VrlTarget
An adapter to turn Events into vrl_lib::Targets.

Constants§

PARTIAL

Traits§

EstimatedJsonEncodedSizeOf
Return the estimated size of a type in bytes when encoded as JSON.
EventContainer
The core trait to abstract over any type that may work as an array of events. This is effectively the same as the standard IntoIterator<Item = Event> implementations, but that would conflict with the base implementation for the type aliases below.
Finalizable
An object that can be finalized.
MaybeAsLogMut

Functions§

into_event_stream
Turn a container into a futures stream over the contained Event type. This would ideally be implemented as a default method on trait EventContainer, but the required feature (associated type defaults) is still unstable. See https://github.com/rust-lang/rust/issues/29661

Type Aliases§

LogArray
The type alias for an array of LogEvent elements.
MetricArray
The type alias for an array of Metric elements.
ObjectMap
The storage mapping for the Object variant.
TraceArray
The type alias for an array of TraceEvent elements.