pub struct DebugInfoHandler { /* private fields */ }
Expand description
Debug info handler
Implementations§
Source§impl DebugInfoHandler
impl DebugInfoHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn create(&self, request: DebugInfoRequest) -> Result<DebugInfoStatus>
pub async fn create(&self, request: DebugInfoRequest) -> Result<DebugInfoStatus>
Start debug info collection
Sourcepub async fn status(&self, task_id: &str) -> Result<DebugInfoStatus>
pub async fn status(&self, task_id: &str) -> Result<DebugInfoStatus>
Get debug info collection status
Sourcepub async fn list(&self) -> Result<Vec<DebugInfoStatus>>
pub async fn list(&self) -> Result<Vec<DebugInfoStatus>>
List all debug info tasks
Sourcepub async fn all(&self) -> Result<Value>
pub async fn all(&self) -> Result<Value>
Get all debug info across nodes - GET /v1/debuginfo/all (DEPRECATED) Use cluster_debuginfo_binary() for the new endpoint
Sourcepub async fn all_bdb(&self, bdb_uid: u32) -> Result<Value>
pub async fn all_bdb(&self, bdb_uid: u32) -> Result<Value>
Get all debug info for a specific database - GET /v1/debuginfo/all/bdb/{uid} (DEPRECATED) Use database_debuginfo_binary() for the new endpoint
Sourcepub async fn node(&self) -> Result<Value>
pub async fn node(&self) -> Result<Value>
Get node debug info - GET /v1/debuginfo/node (DEPRECATED) Use nodes_debuginfo_binary() for the new endpoint
Sourcepub async fn node_bdb(&self, bdb_uid: u32) -> Result<Value>
pub async fn node_bdb(&self, bdb_uid: u32) -> Result<Value>
Get node debug info for a specific database - GET /v1/debuginfo/node/bdb/{uid} (DEPRECATED) Use database_debuginfo_binary() for the new endpoint
Sourcepub async fn cluster_debuginfo_binary(&self) -> Result<Vec<u8>>
pub async fn cluster_debuginfo_binary(&self) -> Result<Vec<u8>>
Get cluster debug info package as binary - GET /v1/cluster/debuginfo Returns a tar.gz file containing all cluster debug information
Sourcepub async fn nodes_debuginfo_binary(&self) -> Result<Vec<u8>>
pub async fn nodes_debuginfo_binary(&self) -> Result<Vec<u8>>
Get all nodes debug info package as binary - GET /v1/nodes/debuginfo Returns a tar.gz file containing debug information from all nodes
Sourcepub async fn node_debuginfo_binary(&self, node_uid: u32) -> Result<Vec<u8>>
pub async fn node_debuginfo_binary(&self, node_uid: u32) -> Result<Vec<u8>>
Get specific node debug info package as binary - GET /v1/nodes/{uid}/debuginfo Returns a tar.gz file containing debug information from a specific node
Sourcepub async fn databases_debuginfo_binary(&self) -> Result<Vec<u8>>
pub async fn databases_debuginfo_binary(&self) -> Result<Vec<u8>>
Get all databases debug info package as binary - GET /v1/bdbs/debuginfo Returns a tar.gz file containing debug information from all databases
Sourcepub async fn database_debuginfo_binary(&self, bdb_uid: u32) -> Result<Vec<u8>>
pub async fn database_debuginfo_binary(&self, bdb_uid: u32) -> Result<Vec<u8>>
Get specific database debug info package as binary - GET /v1/bdbs/{uid}/debuginfo Returns a tar.gz file containing debug information from a specific database
Sourcepub async fn all_binary(&self) -> Result<Vec<u8>>
pub async fn all_binary(&self) -> Result<Vec<u8>>
Get all debug info as binary - GET /v1/debuginfo/all (DEPRECATED) Returns a tar.gz file - Use cluster_debuginfo_binary() instead
Sourcepub async fn all_bdb_binary(&self, bdb_uid: u32) -> Result<Vec<u8>>
pub async fn all_bdb_binary(&self, bdb_uid: u32) -> Result<Vec<u8>>
Get all debug info for a specific database as binary - GET /v1/debuginfo/all/bdb/{uid} (DEPRECATED) Returns a tar.gz file - Use database_debuginfo_binary() instead
Sourcepub async fn node_binary(&self) -> Result<Vec<u8>>
pub async fn node_binary(&self) -> Result<Vec<u8>>
Get node debug info as binary - GET /v1/debuginfo/node (DEPRECATED) Returns a tar.gz file - Use nodes_debuginfo_binary() instead