pub struct DataUsageClient { /* private fields */ }
Expand description
A client for the Data Usage API. Read more at https://coralogix.com/docs/user-guides/account-management/payment-and-billing/data-usage/
Implementations§
source§impl DataUsageClient
impl DataUsageClient
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 get_data_usage(
&self,
date_range: Option<DateRange>,
resolution: Option<Duration>,
aggregate: Vec<i32>,
dimension_filters: Vec<Dimension>,
) -> Result<Streaming<GetDataUsageResponse>>
pub async fn get_data_usage( &self, date_range: Option<DateRange>, resolution: Option<Duration>, aggregate: Vec<i32>, dimension_filters: Vec<Dimension>, ) -> Result<Streaming<GetDataUsageResponse>>
Gets the data usage for the provided filters.
§Arguments
date_range
- The date range to get the data usage for.resolution
- The resolution to get the data usage for.aggregate
- The aggregate to get the data usage for.dimension_filters
- The dimension filters to apply.
sourcepub async fn get_spans_count(
&self,
date_range: Option<DateRange>,
resolution: Option<Duration>,
filters: Option<ScopesFilter>,
) -> Result<Streaming<GetSpansCountResponse>>
pub async fn get_spans_count( &self, date_range: Option<DateRange>, resolution: Option<Duration>, filters: Option<ScopesFilter>, ) -> Result<Streaming<GetSpansCountResponse>>
Gets the span count for the provided filters.
§Arguments
date_range
- The date range to get the span count for.resolution
- The resolution to get the span count for.filters
- The filters to apply.
sourcepub async fn get_logs_count(
&self,
date_range: Option<DateRange>,
resolution: Option<Duration>,
filters: Option<ScopesFilter>,
) -> Result<Streaming<GetLogsCountResponse>>
pub async fn get_logs_count( &self, date_range: Option<DateRange>, resolution: Option<Duration>, filters: Option<ScopesFilter>, ) -> Result<Streaming<GetLogsCountResponse>>
Gets the log count for the provided filters.
§Arguments
date_range
- The date range to get the log count for.resolution
- The resolution to get the log count for.filters
- The filters to apply.
sourcepub async fn update_data_usage_metrics_export_status(
&self,
enabled: bool,
) -> Result<UpdateDataUsageMetricsExportStatusResponse>
pub async fn update_data_usage_metrics_export_status( &self, enabled: bool, ) -> Result<UpdateDataUsageMetricsExportStatusResponse>
Updates the data usage metrics export status.
§Arguments
enabled
- Whether to enable or disable the data usage metrics export.
sourcepub async fn get_data_usage_metrics_export_status(
&self,
) -> Result<GetDataUsageMetricsExportStatusResponse>
pub async fn get_data_usage_metrics_export_status( &self, ) -> Result<GetDataUsageMetricsExportStatusResponse>
Gets the data usage metrics export status.
Auto Trait Implementations§
impl !Freeze for DataUsageClient
impl !RefUnwindSafe for DataUsageClient
impl Send for DataUsageClient
impl Sync for DataUsageClient
impl Unpin for DataUsageClient
impl !UnwindSafe for DataUsageClient
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