Struct opentelemetry_sdk::metrics::data::ResourceMetrics
source · pub struct ResourceMetrics {
pub resource: Resource,
pub scope_metrics: Vec<ScopeMetrics>,
}
Expand description
A collection of ScopeMetrics and the associated Resource that created them.
Fields§
§resource: Resource
The entity that collected the metrics.
scope_metrics: Vec<ScopeMetrics>
The collection of metrics with unique Scopes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceMetrics
impl !RefUnwindSafe for ResourceMetrics
impl Send for ResourceMetrics
impl Sync for ResourceMetrics
impl Unpin for ResourceMetrics
impl !UnwindSafe for ResourceMetrics
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