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
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn create(&self, slo: ServiceSlo) -> Result<CreateServiceSloResponse>
pub async fn create(&self, slo: ServiceSlo) -> Result<CreateServiceSloResponse>
sourcepub async fn update(&self, slo: ServiceSlo) -> Result<ReplaceServiceSloResponse>
pub async fn update(&self, slo: ServiceSlo) -> Result<ReplaceServiceSloResponse>
sourcepub async fn delete(&self, id: String) -> Result<DeleteServiceSloResponse>
pub async fn delete(&self, id: String) -> Result<DeleteServiceSloResponse>
sourcepub async fn get(&self, id: String) -> Result<GetServiceSloResponse>
pub async fn get(&self, id: String) -> Result<GetServiceSloResponse>
Auto Trait Implementations§
impl !Freeze for SloClient
impl !RefUnwindSafe for SloClient
impl Send for SloClient
impl Sync for SloClient
impl Unpin 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