pub struct Cloud { /* private fields */ }Expand description
Fields related to the cloud or infrastructure the events are coming from.
Implementations§
Source§impl Cloud
impl Cloud
Sourcepub fn get_provider(&self) -> Option<&String>
pub fn get_provider(&self) -> Option<&String>
Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean.
Sourcepub fn set_provider(&mut self, provider_arg: String)
pub fn set_provider(&mut self, provider_arg: String)
Sourcepub fn get_availability_zone(&self) -> Option<&String>
pub fn get_availability_zone(&self) -> Option<&String>
Availability zone in which this host, resource, or service is located.
Sourcepub fn set_availability_zone(&mut self, availability_zone_arg: String)
pub fn set_availability_zone(&mut self, availability_zone_arg: String)
Sourcepub fn get_region(&self) -> Option<&String>
pub fn get_region(&self) -> Option<&String>
Region in which this host, resource, or service is located.
Sourcepub fn set_region(&mut self, region_arg: String)
pub fn set_region(&mut self, region_arg: String)
Sourcepub fn get_instance_id(&self) -> Option<&String>
pub fn get_instance_id(&self) -> Option<&String>
Instance ID of the host machine.
Sourcepub fn set_instance_id(&mut self, instance_id_arg: String)
pub fn set_instance_id(&mut self, instance_id_arg: String)
Sourcepub fn get_instance_name(&self) -> Option<&String>
pub fn get_instance_name(&self) -> Option<&String>
Instance name of the host machine.
Sourcepub fn set_instance_name(&mut self, instance_name_arg: String)
pub fn set_instance_name(&mut self, instance_name_arg: String)
Instance name of the host machine.
Sourcepub fn get_machine_type(&self) -> Option<&String>
pub fn get_machine_type(&self) -> Option<&String>
Machine type of the host machine.
Sourcepub fn set_machine_type(&mut self, machine_type_arg: String)
pub fn set_machine_type(&mut self, machine_type_arg: String)
Sourcepub fn get_account_id(&self) -> Option<&String>
pub fn get_account_id(&self) -> Option<&String>
The cloud account or organization id used to identify different entities in a multi-tenant environment.
Examples: AWS account id, Google Cloud ORG Id, or other unique identifier.
Sourcepub fn set_account_id(&mut self, account_id_arg: String)
pub fn set_account_id(&mut self, account_id_arg: String)
The cloud account or organization id used to identify different entities in a multi-tenant environment.
Examples: AWS account id, Google Cloud ORG Id, or other unique identifier.
§Example
666777888999
Sourcepub fn get_account_name(&self) -> Option<&String>
pub fn get_account_name(&self) -> Option<&String>
The cloud account name or alias used to identify different entities in a multi-tenant environment.
Examples: AWS account name, Google Cloud ORG display name.
Sourcepub fn set_account_name(&mut self, account_name_arg: String)
pub fn set_account_name(&mut self, account_name_arg: String)
The cloud account name or alias used to identify different entities in a multi-tenant environment.
Examples: AWS account name, Google Cloud ORG display name.
§Example
elastic-dev
Sourcepub fn get_service_name(&self) -> Option<&String>
pub fn get_service_name(&self) -> Option<&String>
The cloud service name is intended to distinguish services running on different platforms within a provider, eg AWS EC2 vs Lambda, GCP GCE vs App Engine, Azure VM vs App Server.
Examples: app engine, app service, cloud run, fargate, lambda.
Sourcepub fn set_service_name(&mut self, service_name_arg: String)
pub fn set_service_name(&mut self, service_name_arg: String)
The cloud service name is intended to distinguish services running on different platforms within a provider, eg AWS EC2 vs Lambda, GCP GCE vs App Engine, Azure VM vs App Server.
Examples: app engine, app service, cloud run, fargate, lambda.
§Example
lambda
Sourcepub fn get_project_id(&self) -> Option<&String>
pub fn get_project_id(&self) -> Option<&String>
The cloud project identifier.
Examples: Google Cloud Project id, Azure Project id.
Sourcepub fn set_project_id(&mut self, project_id_arg: String)
pub fn set_project_id(&mut self, project_id_arg: String)
The cloud project identifier.
Examples: Google Cloud Project id, Azure Project id.
§Example
my-project
Sourcepub fn get_project_name(&self) -> Option<&String>
pub fn get_project_name(&self) -> Option<&String>
The cloud project name.
Examples: Google Cloud Project name, Azure Project name.
Sourcepub fn set_project_name(&mut self, project_name_arg: String)
pub fn set_project_name(&mut self, project_name_arg: String)
The cloud project name.
Examples: Google Cloud Project name, Azure Project name.
§Example
my project