class NodeHealth
Defined at line 37 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/health.h
Represents the health associated with a given inspect_deprecated::Node.
This class supports adding a Node with name "fuchsia.inspect.Health" that
consists of "status" and "message" properties. Nodes implementing
fuchsia.inspect.Health can be aggregated in health checking scripts
inspecttem-wide.
Public Methods
void NodeHealth (::inspect::Node * parent_node)
Constructs a new NodeHealth object that wraps a health designation for the
given node.
The initial status is STARTING_UP.
Defined at line 16 of file ../../zircon/system/ulib/inspect/health.cc
void NodeHealth (::inspect::Node * parent_node, const std::function<zx_time_t ()> & clock_fn)
Constructs a new NodeHealth object, which uses the passed-in clock to
get the needed timestamps. Useful for testing, for example. Does not
take ownership of the clock.
Defined at line 10 of file ../../zircon/system/ulib/inspect/health.cc
void Ok ()
Sets the health of this node to OK, with no message.
Defined at line 21 of file ../../zircon/system/ulib/inspect/health.cc
void StartingUp ()
Sets the health of this node to STARTING_UP, with no message.
Defined at line 26 of file ../../zircon/system/ulib/inspect/health.cc
void StartingUp (const std::string & message)
Sets the health of this node to STARTING_UP, with the given message.
Defined at line 31 of file ../../zircon/system/ulib/inspect/health.cc
void Unhealthy (const std::string & message)
Sets the health of this node to UNHEALTHY, with the given message.
Defined at line 36 of file ../../zircon/system/ulib/inspect/health.cc
void SetStatus (const std::string & status, const std::string & message)
Explicitly sets the status to the given value with the given message.
Defined at line 41 of file ../../zircon/system/ulib/inspect/health.cc
void NodeHealth (NodeHealth && )
Allow moving, disallow copying.
Defined at line 51 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/health.h
void NodeHealth (const NodeHealth & )
Defined at line 52 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/health.h
NodeHealth & operator= (NodeHealth && )
Defined at line 53 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/health.h
NodeHealth & operator= (const NodeHealth & )
Defined at line 54 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/health.h