pub struct Line {
pub run_id: Uuid,
pub time: u128,
pub fetch_index: u64,
pub metric_name: String,
pub metric_kind: MetricKind,
pub value: LineValue,
pub labels: FxHashMap<String, String>,
}Expand description
The structure of a capture file line.
Fields§
§run_id: UuidAn id that is mostly unique to this run, allowing us to distinguish duplications of the same observational setup.
time: u128The time in milliseconds that this line was written.
fetch_index: u64The “fetch index”. Previous versions of lading scraped prometheus metrics from their targets and kept an increment index of polls. Now this records the number of times the internal metrics cache has been flushed.
metric_name: StringThe name of the metric recorded by this line.
metric_kind: MetricKindThe kind of metric recorded by this line.
value: LineValueThe value of the metric on this line.
labels: FxHashMap<String, String>The labels associated with this metric.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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