pub struct CollectdPayload {
pub end_time: Option<DateTime<Utc>>,
pub metadata: Option<HashMap<String, TypedValue>>,
pub plugin: Option<String>,
pub plugin_instance: Option<String>,
pub start_time: Option<DateTime<Utc>>,
pub type_: Option<String>,
pub type_instance: Option<String>,
pub values: Option<Vec<CollectdValue>>,
}
Expand description
A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_time: Option<DateTime<Utc>>
The end time of the interval.
metadata: Option<HashMap<String, TypedValue>>
The measurement metadata. Example: “process_id” -> 12345
plugin: Option<String>
The name of the plugin. Example: “disk”.
plugin_instance: Option<String>
The instance name of the plugin Example: “hdcl”.
start_time: Option<DateTime<Utc>>
The start time of the interval.
type_: Option<String>
The measurement type. Example: “memory”.
type_instance: Option<String>
The measurement type instance. Example: “used”.
values: Option<Vec<CollectdValue>>
The measured values during this time interval. Each value must have a different data_source_name.
Trait Implementations§
Source§impl Clone for CollectdPayload
impl Clone for CollectdPayload
Source§fn clone(&self) -> CollectdPayload
fn clone(&self) -> CollectdPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CollectdPayload
impl Debug for CollectdPayload
Source§impl Default for CollectdPayload
impl Default for CollectdPayload
Source§fn default() -> CollectdPayload
fn default() -> CollectdPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectdPayload
impl<'de> Deserialize<'de> for CollectdPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CollectdPayload
impl Serialize for CollectdPayload
impl Part for CollectdPayload
Auto Trait Implementations§
impl Freeze for CollectdPayload
impl RefUnwindSafe for CollectdPayload
impl Send for CollectdPayload
impl Sync for CollectdPayload
impl Unpin for CollectdPayload
impl UnwindSafe for CollectdPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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