pub struct CloudResourceContext {
pub cloud_account_id: Annotated<String>,
pub cloud_provider: Annotated<String>,
pub cloud_platform: Annotated<String>,
pub cloud_region: Annotated<String>,
pub cloud_availability_zone: Annotated<String>,
pub host_id: Annotated<String>,
pub host_type: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Cloud Resource Context.
This context describes the cloud resource the event originated from.
Example:
"cloud_resource": {
"cloud.account.id": "499517922981",
"cloud.provider": "aws",
"cloud.platform": "aws_ec2",
"cloud.region": "us-east-1",
"cloud.vavailability_zone": "us-east-1e",
"host.id": "i-07d3301208fe0a55a",
"host.type": "t2.large"
}
Fields§
§cloud_account_id: Annotated<String>
The cloud account ID the resource is assigned to.
cloud_provider: Annotated<String>
Name of the cloud provider.
cloud_platform: Annotated<String>
The cloud platform in use. The prefix of the service SHOULD match the one specified in cloud_provider.
cloud_region: Annotated<String>
The geographical region the resource is running.
cloud_availability_zone: Annotated<String>
The zone where the resource is running.
host_id: Annotated<String>
Unique host ID.
host_type: Annotated<String>
Machine type of the host.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for CloudResourceContext
impl Clone for CloudResourceContext
source§fn clone(&self) -> CloudResourceContext
fn clone(&self) -> CloudResourceContext
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 CloudResourceContext
impl Debug for CloudResourceContext
source§impl Default for CloudResourceContext
impl Default for CloudResourceContext
source§fn default() -> CloudResourceContext
fn default() -> CloudResourceContext
Returns the “default value” for a type. Read more
source§impl DefaultContext for CloudResourceContext
impl DefaultContext for CloudResourceContext
source§fn default_key() -> &'static str
fn default_key() -> &'static str
The default key at which this context resides in
Contexts
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
Converts this context type from a generic context type. Read more
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
Casts a reference to this context type from a generic context type. Read more
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
Casts a mutable reference to this context type from a generic context type. Read more
source§fn into_context(self) -> Context
fn into_context(self) -> Context
Boxes this context type in the generic context wrapper. Read more
source§impl Empty for CloudResourceContext
impl Empty for CloudResourceContext
source§impl FromValue for CloudResourceContext
impl FromValue for CloudResourceContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for CloudResourceContext
impl IntoValue for CloudResourceContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§impl PartialEq for CloudResourceContext
impl PartialEq for CloudResourceContext
source§impl ProcessValue for CloudResourceContext
impl ProcessValue for CloudResourceContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for CloudResourceContext
Auto Trait Implementations§
impl Freeze for CloudResourceContext
impl RefUnwindSafe for CloudResourceContext
impl Send for CloudResourceContext
impl Sync for CloudResourceContext
impl Unpin for CloudResourceContext
impl UnwindSafe for CloudResourceContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)