pub struct ProcessMetadata {Show 13 fields
pub process_id: Uuid,
pub exe: String,
pub username: String,
pub realname: String,
pub computer: String,
pub distro: String,
pub cpu_brand: String,
pub tsc_frequency: i64,
pub start_time: DateTime<Utc>,
pub start_ticks: i64,
pub parent_process_id: Option<Uuid>,
pub properties: Arc<Vec<u8>>,
pub audience: Arc<str>,
}Expand description
Analytics-optimized process metadata.
This struct is designed for analytics use cases where process properties need to be
efficiently serialized to JSONB format multiple times. Unlike ProcessInfo, which
uses HashMap<String, String> for properties, this struct stores pre-serialized
JSONB data to eliminate redundant serialization overhead.
Fields§
§process_id: Uuid§exe: String§username: String§realname: String§computer: String§distro: String§cpu_brand: String§tsc_frequency: i64§start_time: DateTime<Utc>§start_ticks: i64§parent_process_id: Option<Uuid>§properties: Arc<Vec<u8>>§audience: Arc<str>The owning process’s own audience column – always present, never empty. A process
registered through the HTTP ingestion path always carries a real, non-NULL audience
column now: a credential with no bound audience is stamped with the resolved deployment
default explicitly. Only a legacy, pre-v8 row keeps a NULL column; every producer of
this struct resolves that case to MICROMEGAS_DEFAULT_AUDIENCE before it gets here, so
the Option stops at the database boundary either way. Appended last: a required field
with no default, so the compiler enumerates every construction site.
Trait Implementations§
Source§impl Clone for ProcessMetadata
impl Clone for ProcessMetadata
Source§fn clone(&self) -> ProcessMetadata
fn clone(&self) -> ProcessMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessMetadata
impl RefUnwindSafe for ProcessMetadata
impl Send for ProcessMetadata
impl Sync for ProcessMetadata
impl Unpin for ProcessMetadata
impl UnsafeUnpin for ProcessMetadata
impl UnwindSafe for ProcessMetadata
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
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>,
Layered].