pub struct DashboardFoldersClient { /* private fields */ }
Expand description
The Dashboard Folders API client. Read more at https://coralogix.com/docs/custom-dashboards/
Implementations§
source§impl DashboardFoldersClient
impl DashboardFoldersClient
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 Dashboard Folders API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn create(
&self,
folder: DashboardFolder,
) -> Result<CreateDashboardFolderResponse>
pub async fn create( &self, folder: DashboardFolder, ) -> Result<CreateDashboardFolderResponse>
sourcepub async fn replace(
&self,
folder: DashboardFolder,
) -> Result<ReplaceDashboardFolderResponse>
pub async fn replace( &self, folder: DashboardFolder, ) -> Result<ReplaceDashboardFolderResponse>
sourcepub async fn get(&self, folder_id: String) -> Result<GetDashboardFolderResponse>
pub async fn get(&self, folder_id: String) -> Result<GetDashboardFolderResponse>
sourcepub async fn delete(
&self,
folder_id: String,
) -> Result<DeleteDashboardFolderResponse>
pub async fn delete( &self, folder_id: String, ) -> Result<DeleteDashboardFolderResponse>
Deletes a dashboard folder by its ID.
§Arguments
folder_id
- The ID of theDashboardFolder
to delete.
sourcepub async fn list(&self) -> Result<ListDashboardFoldersResponse>
pub async fn list(&self) -> Result<ListDashboardFoldersResponse>
Lists all dashboard folders.
Auto Trait Implementations§
impl !Freeze for DashboardFoldersClient
impl !RefUnwindSafe for DashboardFoldersClient
impl Send for DashboardFoldersClient
impl Sync for DashboardFoldersClient
impl Unpin for DashboardFoldersClient
impl !UnwindSafe for DashboardFoldersClient
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