pub struct EventsClient { /* private fields */ }Expand description
The Events API client.
Implementations§
Source§impl EventsClient
impl EventsClient
Sourcepub fn new(region: CoralogixRegion, auth_context: AuthContext) -> Result<Self>
pub fn new(region: CoralogixRegion, auth_context: AuthContext) -> Result<Self>
Creates a new client for the Events API.
§Arguments
region- The region to connect to.auth_context- The authentication context to use.
Sourcepub async fn get(
&self,
id: Option<String>,
order_bys: Vec<OrderBy>,
pagination: Option<PaginationRequest>,
) -> Result<GetEventResponse>
pub async fn get( &self, id: Option<String>, order_bys: Vec<OrderBy>, pagination: Option<PaginationRequest>, ) -> Result<GetEventResponse>
Gets a single event by ID.
§Arguments
id- The ID of the event to get.order_bys- The order by fields to use.pagination- The pagination request to use.
Sourcepub async fn batch_get(
&self,
ids: Vec<String>,
order_bys: Vec<OrderBy>,
pagination: Option<PaginationRequest>,
filter: Option<EventsQueryFilter>,
) -> Result<BatchGetEventResponse>
pub async fn batch_get( &self, ids: Vec<String>, order_bys: Vec<OrderBy>, pagination: Option<PaginationRequest>, filter: Option<EventsQueryFilter>, ) -> Result<BatchGetEventResponse>
Gets multiple events by their IDs.
§Arguments
ids- The IDs of the events to get.order_bys- The order by fields to use.pagination- The pagination request to use.filter- The filter to use.
Sourcepub async fn list(
&self,
filter: Option<EventsFilter>,
order_bys: Vec<OrderBy>,
pagination: Option<PaginationRequest>,
) -> Result<ListEventsResponse>
pub async fn list( &self, filter: Option<EventsFilter>, order_bys: Vec<OrderBy>, pagination: Option<PaginationRequest>, ) -> Result<ListEventsResponse>
Lists events based on the provided filter criteria.
§Arguments
filter- The filter to use.order_bys- The order by fields to use.pagination- The pagination request to use.
Sourcepub async fn list_count(
&self,
filter: Option<EventsFilter>,
) -> Result<ListEventsCountResponse>
pub async fn list_count( &self, filter: Option<EventsFilter>, ) -> Result<ListEventsCountResponse>
Sourcepub async fn get_statistics(
&self,
filter: Option<EventsFilter>,
) -> Result<GetEventsStatisticsResponse>
pub async fn get_statistics( &self, filter: Option<EventsFilter>, ) -> Result<GetEventsStatisticsResponse>
Auto Trait Implementations§
impl !Freeze for EventsClient
impl !RefUnwindSafe for EventsClient
impl Send for EventsClient
impl Sync for EventsClient
impl Unpin for EventsClient
impl UnsafeUnpin for EventsClient
impl !UnwindSafe for EventsClient
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