Struct fiberplane_models::providers::Timeseries
source · #[non_exhaustive]pub struct Timeseries {
pub name: String,
pub labels: BTreeMap<String, String>,
pub metrics: Vec<Metric>,
pub otel: OtelMetadata,
pub visible: bool,
}Expand description
A series of metrics over time, with metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§labels: BTreeMap<String, String>§metrics: Vec<Metric>§otel: OtelMetadata§visible: boolWhether the series should be rendered. Can be toggled by the user.
Implementations§
source§impl Timeseries
impl Timeseries
sourcepub fn builder() -> TimeseriesBuilder<((), (), (), (), ())>
pub fn builder() -> TimeseriesBuilder<((), (), (), (), ())>
Create a builder for building Timeseries.
On the builder, call .name(...), .labels(...)(optional), .metrics(...)(optional), .otel(...)(optional), .visible(...) to set the values of the fields.
Finally, call .build() to create the instance of Timeseries.
Trait Implementations§
source§impl Clone for Timeseries
impl Clone for Timeseries
source§fn clone(&self) -> Timeseries
fn clone(&self) -> Timeseries
Returns a copy 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 Timeseries
impl Debug for Timeseries
source§impl Default for Timeseries
impl Default for Timeseries
source§fn default() -> Timeseries
fn default() -> Timeseries
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Timeseries
impl<'de> Deserialize<'de> for Timeseries
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 PartialEq for Timeseries
impl PartialEq for Timeseries
source§fn eq(&self, other: &Timeseries) -> bool
fn eq(&self, other: &Timeseries) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Timeseries
impl Serialize for Timeseries
impl StructuralPartialEq for Timeseries
Auto Trait Implementations§
impl Freeze for Timeseries
impl RefUnwindSafe for Timeseries
impl Send for Timeseries
impl Sync for Timeseries
impl Unpin for Timeseries
impl UnwindSafe for Timeseries
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