pub struct HealthClient { /* private fields */ }
Expand description
Provides functionality to perform health related operations, like report and query health. See C# API here.
TODO: Implement full functionality of the HealthClient.
Implementations§
Source§impl HealthClient
impl HealthClient
Sourcepub fn report_health(&self, health_report: &HealthReport) -> Result<()>
pub fn report_health(&self, health_report: &HealthReport) -> Result<()>
Reports health on a Service Fabric entity. See C# API here.
Remarks: When a cluster is secured, the health client needs administrator permission to be able to send the reports. Read more about connecting to a cluster using the FabricClient APIs. For more information about health reporting, see Service Fabric health monitoring.
Source§impl HealthClient
impl HealthClient
Sourcepub async fn get_node_health(
&self,
desc: &NodeHealthQueryDescription,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<NodeHealthResult>
pub async fn get_node_health( &self, desc: &NodeHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<NodeHealthResult>
Gets the health of a node.
See C# API here.
Sourcepub async fn get_cluster_health(
&self,
desc: &ClusterHealthQueryDescription,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<ClusterHealth>
pub async fn get_cluster_health( &self, desc: &ClusterHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<ClusterHealth>
Gets the health of the cluster.
Sourcepub async fn get_application_health(
&self,
desc: &ApplicationHealthQueryDescription,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<ApplicationHealth>
pub async fn get_application_health( &self, desc: &ApplicationHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<ApplicationHealth>
Gets the health of an application.
pub async fn get_partition_health( &self, desc: &PartitionHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<PartitionHealthResult>
Sourcepub async fn get_service_health(
&self,
desc: &ServiceHealthQueryDescription,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<ServiceHealthResult>
pub async fn get_service_health( &self, desc: &ServiceHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<ServiceHealthResult>
Gets the health of a service.
Sourcepub async fn get_replica_health(
&self,
desc: &ReplicaHealthQueryDescription,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<ReplicaHealthResult>
pub async fn get_replica_health( &self, desc: &ReplicaHealthQueryDescription, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<ReplicaHealthResult>
Gets the health of a replica.
Trait Implementations§
Source§impl Clone for HealthClient
impl Clone for HealthClient
Source§fn clone(&self) -> HealthClient
fn clone(&self) -> HealthClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HealthClient
impl Debug for HealthClient
Source§impl From<HealthClient> for IFabricHealthClient4
impl From<HealthClient> for IFabricHealthClient4
Source§fn from(value: HealthClient) -> Self
fn from(value: HealthClient) -> Self
Converts to this type from the input type.
Source§impl From<IFabricHealthClient4> for HealthClient
impl From<IFabricHealthClient4> for HealthClient
Source§fn from(value: IFabricHealthClient4) -> Self
fn from(value: IFabricHealthClient4) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HealthClient
impl RefUnwindSafe for HealthClient
impl Send for HealthClient
impl Sync for HealthClient
impl Unpin for HealthClient
impl UnwindSafe for HealthClient
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