pub struct EnrichmentsClient { /* private fields */ }
Expand description
The Custom Enrichments API client. Read more at https://coralogix.com/docs/custom-enrichment-api/
Implementations§
source§impl EnrichmentsClient
impl EnrichmentsClient
sourcepub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
pub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
Creates a new client for the Enrichments API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn add(
&self,
enrichment_mapping: Vec<EnrichmentMapping>,
) -> Result<AddEnrichmentsResponse>
pub async fn add( &self, enrichment_mapping: Vec<EnrichmentMapping>, ) -> Result<AddEnrichmentsResponse>
sourcepub async fn update(
&self,
enrichment_type: EnrichmentType,
field_mappings: Vec<EnrichmentFieldDefinition>,
) -> Result<AtomicOverwriteEnrichmentsResponse>
pub async fn update( &self, enrichment_type: EnrichmentType, field_mappings: Vec<EnrichmentFieldDefinition>, ) -> Result<AtomicOverwriteEnrichmentsResponse>
Updates the mappings for an enrichment.
§Arguments
enrichment_type
- The type of enrichment to update.field_mappings
- The associated field mappings.
sourcepub async fn delete(
&self,
enrichment_ids: Vec<u32>,
) -> Result<RemoveEnrichmentsResponse>
pub async fn delete( &self, enrichment_ids: Vec<u32>, ) -> Result<RemoveEnrichmentsResponse>
Removes all enrichment mappings from the provided id.
§Arguments
ids
- The ids to remove mappings from.
sourcepub async fn list(&self) -> Result<GetEnrichmentsResponse>
pub async fn list(&self) -> Result<GetEnrichmentsResponse>
Retrieves the all enrichments.
sourcepub async fn get_limits(&self) -> Result<GetEnrichmentLimitResponse>
pub async fn get_limits(&self) -> Result<GetEnrichmentLimitResponse>
Retrieves the Enrichment limits.
Auto Trait Implementations§
impl !Freeze for EnrichmentsClient
impl !RefUnwindSafe for EnrichmentsClient
impl Send for EnrichmentsClient
impl Sync for EnrichmentsClient
impl Unpin for EnrichmentsClient
impl !UnwindSafe for EnrichmentsClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request