pub struct ResourceMetrics {
pub resource_id: ResourceId,
pub resource_type: String,
pub timestamp: Timestamp,
pub metrics: HashMap<String, MetricValue>,
}
Expand description
Represents metrics for a specific resource at a point in time
Fields§
§resource_id: ResourceId
Unique identifier for this resource
resource_type: String
Type of resource (e.g., “kubernetes-deployment”, “ec2-asg”, “database”)
timestamp: Timestamp
When these metrics were collected
metrics: HashMap<String, MetricValue>
Key-value pairs of metric names to values Examples: “cpu_percent” -> 75.5, “memory_mb” -> 2048.0
Trait Implementations§
Source§impl Clone for ResourceMetrics
impl Clone for ResourceMetrics
Source§fn clone(&self) -> ResourceMetrics
fn clone(&self) -> ResourceMetrics
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 ResourceMetrics
impl Debug for ResourceMetrics
Source§impl<'de> Deserialize<'de> for ResourceMetrics
impl<'de> Deserialize<'de> for ResourceMetrics
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 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