pub struct MetricsRecordBuilder {Show 14 fields
pub process_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub stream_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub block_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub insert_times: PrimitiveBuilder<TimestampNanosecondType>,
pub exes: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub usernames: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub computers: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub times: PrimitiveBuilder<TimestampNanosecondType>,
pub targets: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub names: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub units: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub values: PrimitiveBuilder<Float64Type>,
pub properties: PropertySetJsonbDictionaryBuilder,
pub process_properties: GenericByteDictionaryBuilder<Int32Type, GenericBinaryType<i32>>,
}Expand description
A builder for creating a RecordBatch of metrics.
Fields§
§process_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§stream_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§block_ids: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§insert_times: PrimitiveBuilder<TimestampNanosecondType>§exes: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§usernames: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§computers: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§times: PrimitiveBuilder<TimestampNanosecondType>§targets: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§names: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§units: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§values: PrimitiveBuilder<Float64Type>§properties: PropertySetJsonbDictionaryBuilder§process_properties: GenericByteDictionaryBuilder<Int32Type, GenericBinaryType<i32>>Implementations§
Source§impl MetricsRecordBuilder
impl MetricsRecordBuilder
pub fn with_capacity(capacity: usize) -> MetricsRecordBuilder
pub fn len(&self) -> i64
pub fn is_empty(&self) -> bool
pub fn get_time_range(&self) -> Option<TimeRange>
pub fn append(&mut self, row: &Measure<'_>) -> Result<(), Error>
Sourcepub fn append_entry_only(&mut self, row: &Measure<'_>) -> Result<(), Error>
pub fn append_entry_only(&mut self, row: &Measure<'_>) -> Result<(), Error>
Append only per-entry variable data (optimized for batch processing)
Sourcepub fn fill_constant_columns(
&mut self,
process: &ProcessMetadata,
stream_id: &str,
block_id: &str,
insert_time: i64,
entry_count: usize,
) -> Result<(), Error>
pub fn fill_constant_columns( &mut self, process: &ProcessMetadata, stream_id: &str, block_id: &str, insert_time: i64, entry_count: usize, ) -> Result<(), Error>
Batch fill all constant columns for all entries in block
pub fn finish(self) -> Result<RecordBatch, Error>
Auto Trait Implementations§
impl Freeze for MetricsRecordBuilder
impl RefUnwindSafe for MetricsRecordBuilder
impl Send for MetricsRecordBuilder
impl Sync for MetricsRecordBuilder
impl Unpin for MetricsRecordBuilder
impl UnsafeUnpin for MetricsRecordBuilder
impl UnwindSafe for MetricsRecordBuilder
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
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
Converts
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>
Converts
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].