class HealthAlert

Defined at line 2975 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

Payload of a proactive health alert emitted by a driver via `OnHealthAlert`.

"Upstream" is what the driver depends on (parents: buses, clocks, power

domains, composite parents). "Downstream" is what depends on the driver

(children / consumers).

Public Members

static const fidl_type_t * FidlType

Public Methods

void HealthAlert ()
const ::fuchsia::driver::framework::HealthCheckResponse & self_fault ()

The driver detected an internal hardware or software fault, or

recovered from a previously reported fault (when `conditions` is empty).

Edge-triggered: send when the driver's overall status worsens

(OK->DEGRADED, DEGRADED->UNHEALTHY) and again with empty `conditions`

when it recovers; never per occurrence of an already-reported condition.

Defined at line 3026 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

bool is_upstream_neighbor_fault ()

Defined at line 3032 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

::fuchsia::driver::framework::HealthCheckResponse & downstream_neighbor_fault ()

The driver cannot make progress because a downstream consumer

(child/client) is wedged or failing to drain queues/buffers.

Defined at line 3053 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

const ::fuchsia::driver::framework::HealthCheckResponse & downstream_neighbor_fault ()

The driver cannot make progress because a downstream consumer

(child/client) is wedged or failing to drain queues/buffers.

Defined at line 3060 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

fidl_xunion_tag_t Ordinal ()

You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need

access to the raw integral ordinal value.

Defined at line 3083 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

void ~HealthAlert ()
void HealthAlert (HealthAlert && )
HealthAlert & operator= (HealthAlert && )
HealthAlert WithSelfFault (::fuchsia::driver::framework::HealthCheckResponse && )
HealthAlert WithUpstreamNeighborFault (::fuchsia::driver::framework::HealthCheckResponse && )
HealthAlert WithDownstreamNeighborFault (::fuchsia::driver::framework::HealthCheckResponse && )
::std::unique_ptr<HealthAlert> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, HealthAlert * value, size_t offset)
zx_status_t Clone (HealthAlert * result)
bool has_invalid_tag ()

Defined at line 3005 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

bool is_self_fault ()

Defined at line 3009 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

::fuchsia::driver::framework::HealthCheckResponse & self_fault ()

The driver detected an internal hardware or software fault, or

recovered from a previously reported fault (when `conditions` is empty).

Edge-triggered: send when the driver's overall status worsens

(OK->DEGRADED, DEGRADED->UNHEALTHY) and again with empty `conditions`

when it recovers; never per occurrence of an already-reported condition.

Defined at line 3016 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

HealthAlert & set_self_fault (::fuchsia::driver::framework::HealthCheckResponse value)
HealthAlert & set_downstream_neighbor_fault (::fuchsia::driver::framework::HealthCheckResponse value)
HealthAlert & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
::fuchsia::driver::framework::HealthCheckResponse & upstream_neighbor_fault ()

The driver cannot make progress because an upstream dependency

(parent/bus/clock/power/register provider) is unresponsive or invalid.

Defined at line 3036 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

const ::fuchsia::driver::framework::HealthCheckResponse & upstream_neighbor_fault ()

The driver cannot make progress because an upstream dependency

(parent/bus/clock/power/register provider) is unresponsive or invalid.

Defined at line 3043 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

bool is_downstream_neighbor_fault ()

Defined at line 3049 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

::fuchsia::driver::framework::HealthAlert::Tag Which ()

Defined at line 3067 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

const std::vector<uint8_t> * UnknownBytes ()

Defined at line 3086 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

HealthAlert & set_upstream_neighbor_fault (::fuchsia::driver::framework::HealthCheckResponse value)

Enumerations

enum Tag : fidl_xunion_tag_t
Name Value Comments
kUnknown 0 --
kSelfFault 1

0x1

kUpstreamNeighborFault 2

0x2

kDownstreamNeighborFault 3

0x3

Invalid ::std::numeric_limits<::fidl_union_tag_t>::max() --

Defined at line 2989 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/hlcpp/fuchsia/driver/framework/cpp/fidl.h

Friends

class Equality