pub struct ScopesClient { /* private fields */ }
Expand description
The Scopes Service client. Read more at https://coralogix.com/docs/scopes/
Implementations§
source§impl ScopesClient
impl ScopesClient
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,
display_name: String,
description: Option<String>,
filters: Vec<Filter>,
default_expression: String,
) -> Result<CreateScopeResponse>
pub async fn create( &self, display_name: String, description: Option<String>, filters: Vec<Filter>, default_expression: String, ) -> Result<CreateScopeResponse>
Create a new Scope.
§Arguments
display_name
- The display name of the Scope.description
- The description of the Scope.filters
- The filters of the Scope.default_expression
- The default expression of the Scope.
sourcepub async fn update(
&self,
id: String,
display_name: String,
description: Option<String>,
filters: Vec<Filter>,
default_expression: String,
) -> Result<UpdateScopeResponse>
pub async fn update( &self, id: String, display_name: String, description: Option<String>, filters: Vec<Filter>, default_expression: String, ) -> Result<UpdateScopeResponse>
Update a Scope.
§Arguments
id
- The ID of the Scope to update.display_name
- The display name of the Scope.description
- The description of the Scope.filters
- The filters of the Scope.default_expression
- The default expression of the Scope.
sourcepub async fn delete(&self, id: String) -> Result<DeleteScopeResponse>
pub async fn delete(&self, id: String) -> Result<DeleteScopeResponse>
sourcepub async fn list(&self) -> Result<GetScopesResponse>
pub async fn list(&self) -> Result<GetScopesResponse>
Get a list of all Scopes for your team.
Auto Trait Implementations§
impl !Freeze for ScopesClient
impl !RefUnwindSafe for ScopesClient
impl Send for ScopesClient
impl Sync for ScopesClient
impl Unpin for ScopesClient
impl !UnwindSafe for ScopesClient
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