pub struct Events2MetricsClient { /* private fields */ }
Expand description
The Events2Metrics API client. Read more at https://coralogix.com/docs/events2metrics/
Implementations§
source§impl Events2MetricsClient
impl Events2MetricsClient
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 Events2Metrics API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn create(&self, params: E2mCreateParams) -> Result<CreateE2mResponse>
pub async fn create(&self, params: E2mCreateParams) -> Result<CreateE2mResponse>
sourcepub async fn replace(&self, e2m: E2m) -> Result<ReplaceE2mResponse>
pub async fn replace(&self, e2m: E2m) -> Result<ReplaceE2mResponse>
sourcepub async fn delete(&self, id: String) -> Result<DeleteE2mResponse>
pub async fn delete(&self, id: String) -> Result<DeleteE2mResponse>
sourcepub async fn get(&self, id: String) -> Result<GetE2mResponse>
pub async fn get(&self, id: String) -> Result<GetE2mResponse>
sourcepub async fn get_limits(&self) -> Result<GetLimitsResponse>
pub async fn get_limits(&self) -> Result<GetLimitsResponse>
Retrieves the limits associated with this account.
§Returns
The limits associated with this account.
sourcepub async fn list(&self) -> Result<ListE2mResponse>
pub async fn list(&self) -> Result<ListE2mResponse>
sourcepub async fn list_labels_cardinality(
&self,
metric_labels: Vec<MetricLabel>,
query: Query,
) -> Result<ListLabelsCardinalityResponse>
pub async fn list_labels_cardinality( &self, metric_labels: Vec<MetricLabel>, query: Query, ) -> Result<ListLabelsCardinalityResponse>
Lists the cardinality of labels for a given metric.
§Arguments
metric_labels
- The labels of the metric to list cardinality for.query
- The query to filter the labels by.
Auto Trait Implementations§
impl !Freeze for Events2MetricsClient
impl !RefUnwindSafe for Events2MetricsClient
impl Send for Events2MetricsClient
impl Sync for Events2MetricsClient
impl Unpin for Events2MetricsClient
impl !UnwindSafe for Events2MetricsClient
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