pub struct DashboardsClient { /* private fields */ }
Expand description
The Dashboards API client. Read more at https://coralogix.com/docs/custom-dashboards/
Implementations§
source§impl DashboardsClient
impl DashboardsClient
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 Dashboards API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn create(
&self,
dashboard: Dashboard,
) -> Result<CreateDashboardResponse>
pub async fn create( &self, dashboard: Dashboard, ) -> Result<CreateDashboardResponse>
sourcepub async fn replace(
&self,
dashboard: Dashboard,
) -> Result<ReplaceDashboardResponse>
pub async fn replace( &self, dashboard: Dashboard, ) -> Result<ReplaceDashboardResponse>
sourcepub async fn get(&self, dashboard_id: String) -> Result<GetDashboardResponse>
pub async fn get(&self, dashboard_id: String) -> Result<GetDashboardResponse>
sourcepub async fn list(&self) -> Result<GetDashboardCatalogResponse>
pub async fn list(&self) -> Result<GetDashboardCatalogResponse>
Lists all dashboards.
sourcepub async fn delete(
&self,
dashboard_id: String,
) -> Result<DeleteDashboardResponse>
pub async fn delete( &self, dashboard_id: String, ) -> Result<DeleteDashboardResponse>
sourcepub async fn pin(&self, dashboard_id: String) -> Result<PinDashboardResponse>
pub async fn pin(&self, dashboard_id: String) -> Result<PinDashboardResponse>
sourcepub async fn unpin(
&self,
dashboard_id: String,
) -> Result<UnpinDashboardResponse>
pub async fn unpin( &self, dashboard_id: String, ) -> Result<UnpinDashboardResponse>
sourcepub async fn assign_to_folder(
&self,
dashboard_id: String,
folder_id: String,
) -> Result<AssignDashboardFolderResponse>
pub async fn assign_to_folder( &self, dashboard_id: String, folder_id: String, ) -> Result<AssignDashboardFolderResponse>
Assigns a dashboard to a folder.
§Arguments
dashboard_id
- The ID of the dashboard to assign.folder_id
- The ID of the folder to assign the dashboard to.
Auto Trait Implementations§
impl !Freeze for DashboardsClient
impl !RefUnwindSafe for DashboardsClient
impl Send for DashboardsClient
impl Sync for DashboardsClient
impl Unpin for DashboardsClient
impl !UnwindSafe for DashboardsClient
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