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.
Sourcepub async fn get_enrichment_settings(
&self,
) -> Result<GetCompanyEnrichmentSettingsResponse>
pub async fn get_enrichment_settings( &self, ) -> Result<GetCompanyEnrichmentSettingsResponse>
Retrieves the Enrichment settings for a company.
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