pub struct SloClient { /* private fields */ }Expand description
The Service Line Objectives (SLO) client. Read more at https://coralogix.com/docs/slo-management-api/
Implementations§
Source§impl SloClient
impl SloClient
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 SLO.
§Arguments
auth_context- TheAuthContextto use for authentication.region- TheCoralogixRegionto connect to.
Sourcepub async fn create(&self, slo: Slo) -> Result<CreateSloResponse>
pub async fn create(&self, slo: Slo) -> Result<CreateSloResponse>
Sourcepub async fn update(&self, slo: Slo) -> Result<ReplaceSloResponse>
pub async fn update(&self, slo: Slo) -> Result<ReplaceSloResponse>
Sourcepub async fn delete(&self, id: String) -> Result<DeleteSloResponse>
pub async fn delete(&self, id: String) -> Result<DeleteSloResponse>
Sourcepub async fn get(&self, id: String) -> Result<GetSloResponse>
pub async fn get(&self, id: String) -> Result<GetSloResponse>
Sourcepub async fn list(
&self,
filters: Option<SloFilters>,
) -> Result<ListSlosResponse>
pub async fn list( &self, filters: Option<SloFilters>, ) -> Result<ListSlosResponse>
Auto Trait Implementations§
impl !Freeze for SloClient
impl !RefUnwindSafe for SloClient
impl Send for SloClient
impl Sync for SloClient
impl Unpin for SloClient
impl UnsafeUnpin for SloClient
impl !UnwindSafe for SloClient
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