pub struct LogAnalyticsClient<'a> { /* private fields */ }Expand description
Client for Azure Log Analytics ARM management plane.
Implementations§
Source§impl<'a> LogAnalyticsClient<'a>
impl<'a> LogAnalyticsClient<'a>
Sourcepub async fn list_workspaces(&self) -> Result<WorkspaceListResult>
pub async fn list_workspaces(&self) -> Result<WorkspaceListResult>
Gets the workspaces in a subscription.
Sourcepub async fn get_workspace(
&self,
resource_group_name: &str,
workspace_name: &str,
) -> Result<Workspace>
pub async fn get_workspace( &self, resource_group_name: &str, workspace_name: &str, ) -> Result<Workspace>
Gets a workspace instance.
Sourcepub async fn create_workspace(
&self,
resource_group_name: &str,
workspace_name: &str,
body: &WorkspaceCreateRequest,
) -> Result<Workspace>
pub async fn create_workspace( &self, resource_group_name: &str, workspace_name: &str, body: &WorkspaceCreateRequest, ) -> Result<Workspace>
Create or update a workspace.
Sourcepub async fn delete_workspace(
&self,
resource_group_name: &str,
workspace_name: &str,
) -> Result<()>
pub async fn delete_workspace( &self, resource_group_name: &str, workspace_name: &str, ) -> Result<()>
Deletes a workspace resource instance.
Sourcepub async fn query_logs(
&self,
resource_group_name: &str,
workspace_name: &str,
body: &LogQueryBody,
) -> Result<LogQueryResult>
pub async fn query_logs( &self, resource_group_name: &str, workspace_name: &str, body: &LogQueryBody, ) -> Result<LogQueryResult>
Execute a KQL query against a Log Analytics workspace.
Sourcepub async fn list_saved_searches(
&self,
resource_group_name: &str,
workspace_name: &str,
) -> Result<SavedSearchListResult>
pub async fn list_saved_searches( &self, resource_group_name: &str, workspace_name: &str, ) -> Result<SavedSearchListResult>
Gets the saved searches for a given Log Analytics workspace.
Auto Trait Implementations§
impl<'a> Freeze for LogAnalyticsClient<'a>
impl<'a> !RefUnwindSafe for LogAnalyticsClient<'a>
impl<'a> Send for LogAnalyticsClient<'a>
impl<'a> Sync for LogAnalyticsClient<'a>
impl<'a> Unpin for LogAnalyticsClient<'a>
impl<'a> UnsafeUnpin for LogAnalyticsClient<'a>
impl<'a> !UnwindSafe for LogAnalyticsClient<'a>
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