pub struct ViewsClient { /* private fields */ }Expand description
The Views API client. Read more at https://coralogix.com/docs/user-guides/monitoring-and-insights/explore-screen/custom-views//
Implementations§
Source§impl ViewsClient
impl ViewsClient
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 Views API.
§Arguments
auth_context- TheAuthContextto use for authentication.region- TheCoralogixRegionto connect to.
Sourcepub async fn create(&self, view: View) -> Result<CreateViewResponse>
pub async fn create(&self, view: View) -> Result<CreateViewResponse>
Sourcepub async fn replace(&self, view: View) -> Result<ReplaceViewResponse>
pub async fn replace(&self, view: View) -> Result<ReplaceViewResponse>
Sourcepub async fn delete(&self, id: i32) -> Result<DeleteViewResponse>
pub async fn delete(&self, id: i32) -> Result<DeleteViewResponse>
Auto Trait Implementations§
impl !Freeze for ViewsClient
impl !RefUnwindSafe for ViewsClient
impl Send for ViewsClient
impl Sync for ViewsClient
impl Unpin for ViewsClient
impl UnsafeUnpin for ViewsClient
impl !UnwindSafe for ViewsClient
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