pub struct Container { /* private fields */ }Expand description
Container fields are used for meta information about the specific container that is the source of information.
These fields help correlate data based containers from any runtime.
Implementations§
Source§impl Container
impl Container
Sourcepub fn get_cpu_usage(&self) -> Option<&String>
pub fn get_cpu_usage(&self) -> Option<&String>
Percent CPU used which is normalized by the number of CPU cores and it ranges from 0 to 1. Scaling factor: 1000.
Sourcepub fn set_cpu_usage(&mut self, cpu_usage_arg: String)
pub fn set_cpu_usage(&mut self, cpu_usage_arg: String)
Percent CPU used which is normalized by the number of CPU cores and it ranges from 0 to 1. Scaling factor: 1000.
Sourcepub fn get_disk_read_bytes(&self) -> Option<&u64>
pub fn get_disk_read_bytes(&self) -> Option<&u64>
The total number of bytes (gauge) read successfully (aggregated from all disks) since the last metric collection.
Sourcepub fn set_disk_read_bytes(&mut self, disk_read_bytes_arg: u64)
pub fn set_disk_read_bytes(&mut self, disk_read_bytes_arg: u64)
The total number of bytes (gauge) read successfully (aggregated from all disks) since the last metric collection.
Sourcepub fn get_disk_write_bytes(&self) -> Option<&u64>
pub fn get_disk_write_bytes(&self) -> Option<&u64>
The total number of bytes (gauge) written successfully (aggregated from all disks) since the last metric collection.
Sourcepub fn set_disk_write_bytes(&mut self, disk_write_bytes_arg: u64)
pub fn set_disk_write_bytes(&mut self, disk_write_bytes_arg: u64)
The total number of bytes (gauge) written successfully (aggregated from all disks) since the last metric collection.
Sourcepub fn get_image_name(&self) -> Option<&String>
pub fn get_image_name(&self) -> Option<&String>
Name of the image the container was built on.
Sourcepub fn set_image_name(&mut self, image_name_arg: String)
pub fn set_image_name(&mut self, image_name_arg: String)
Name of the image the container was built on.
Sourcepub fn get_image_tag(&self) -> &Vec<String>
pub fn get_image_tag(&self) -> &Vec<String>
Container image tags.
Sourcepub fn add_image_tag(&mut self, image_tag_arg: String)
pub fn add_image_tag(&mut self, image_tag_arg: String)
Container image tags.
Sourcepub fn get_image_hash_all(&self) -> &Vec<String>
pub fn get_image_hash_all(&self) -> &Vec<String>
An array of digests of the image the container was built on. Each digest consists of the hash algorithm and value in this format: algorithm:value. Algorithm names should align with the field names in the ECS hash field set.
Sourcepub fn add_image_hash_all(&mut self, image_hash_all_arg: String)
pub fn add_image_hash_all(&mut self, image_hash_all_arg: String)
An array of digests of the image the container was built on. Each digest consists of the hash algorithm and value in this format: algorithm:value. Algorithm names should align with the field names in the ECS hash field set.
§Example
[sha256:f8fefc80e3273dc756f288a63945820d6476ad64883892c771b5e2ece6bf1b26]
Sourcepub fn get_labels(&self) -> Option<&Value>
pub fn get_labels(&self) -> Option<&Value>
Image labels.
Sourcepub fn set_labels(&mut self, labels_arg: Value)
pub fn set_labels(&mut self, labels_arg: Value)
Image labels.
Sourcepub fn get_memory_usage(&self) -> Option<&String>
pub fn get_memory_usage(&self) -> Option<&String>
Memory usage percentage and it ranges from 0 to 1. Scaling factor: 1000.
Sourcepub fn set_memory_usage(&mut self, memory_usage_arg: String)
pub fn set_memory_usage(&mut self, memory_usage_arg: String)
Memory usage percentage and it ranges from 0 to 1. Scaling factor: 1000.
Sourcepub fn get_network_ingress_bytes(&self) -> Option<&u64>
pub fn get_network_ingress_bytes(&self) -> Option<&u64>
The number of bytes received (gauge) on all network interfaces by the container since the last metric collection.
Sourcepub fn set_network_ingress_bytes(&mut self, network_ingress_bytes_arg: u64)
pub fn set_network_ingress_bytes(&mut self, network_ingress_bytes_arg: u64)
The number of bytes received (gauge) on all network interfaces by the container since the last metric collection.
Sourcepub fn get_network_egress_bytes(&self) -> Option<&u64>
pub fn get_network_egress_bytes(&self) -> Option<&u64>
The number of bytes (gauge) sent out on all network interfaces by the container since the last metric collection.
Sourcepub fn set_network_egress_bytes(&mut self, network_egress_bytes_arg: u64)
pub fn set_network_egress_bytes(&mut self, network_egress_bytes_arg: u64)
The number of bytes (gauge) sent out on all network interfaces by the container since the last metric collection.
Sourcepub fn get_runtime(&self) -> Option<&String>
pub fn get_runtime(&self) -> Option<&String>
Runtime managing this container.