pub enum MetadataAction {
Delete,
AddAlias {
target_entity_id: EntityId,
},
RemoveAlias {
target_entity_id: EntityId,
},
SetTags {
cardinality: OriginTagCardinality,
tags: TagSet,
},
AttachExternalData {
external_data: ExternalData,
},
}Expand description
A metadata action.
Variants§
Delete
Delete all metadata for the entity.
AddAlias
Adds an alias to the entity.
This can be used to allow for querying for information about an entity, where the information isn’t directly associated with the entity itself. For example, process ID entities usually are aliased to an underlying container ID entity, where the container ID entity itself is the one with associated tags and so on. When querying for the tags of the process ID entity, an alias to the container ID entity can be established to instead allow for getting the container ID entity’s tags.
RemoveAlias
Removes an alias to the entity.
SetTags
Sets the tags for the entity.
This overwrites any existing tags for the entity.
AttachExternalData
Attaches External Data to the entity.
External Data is free-form string data that’s attached to entities from external systems to allow resolving the entity’s ID when it can’t be passed directly to the entity such that the entity can provide it in telemetry payloads itself.
Fields
external_data: ExternalDataExternal Data to attach.
Trait Implementations§
Source§impl Clone for MetadataAction
impl Clone for MetadataAction
Source§fn clone(&self) -> MetadataAction
fn clone(&self) -> MetadataAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for MetadataAction
impl RefUnwindSafe for MetadataAction
impl Send for MetadataAction
impl Sync for MetadataAction
impl Unpin for MetadataAction
impl UnwindSafe for MetadataAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Tracked wrapper. Read more