DebugInfoHandler

Struct DebugInfoHandler 

Source
pub struct DebugInfoHandler { /* private fields */ }
Expand description

Debug info handler

Implementations§

Source§

impl DebugInfoHandler

Source

pub fn new(client: RestClient) -> Self

Source

pub async fn create(&self, request: DebugInfoRequest) -> Result<DebugInfoStatus>

Start debug info collection

Source

pub async fn status(&self, task_id: &str) -> Result<DebugInfoStatus>

Get debug info collection status

Source

pub async fn list(&self) -> Result<Vec<DebugInfoStatus>>

List all debug info tasks

Source

pub async fn download(&self, task_id: &str) -> Result<Vec<u8>>

Download debug info package

Source

pub async fn cancel(&self, task_id: &str) -> Result<()>

Cancel debug info collection

Source

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

Source

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

Source

pub async fn node(&self) -> Result<Value>

Get node debug info - GET /v1/debuginfo/node (DEPRECATED) Use nodes_debuginfo_binary() for the new endpoint

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub async fn node_bdb_binary(&self, bdb_uid: u32) -> Result<Vec<u8>>

Get node debug info for a specific database as binary - GET /v1/debuginfo/node/bdb/{uid} (DEPRECATED) Returns a tar.gz file - Use database_debuginfo_binary() instead

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,