Class ServerHealthHttpContext

Inheritance Relationships

Base Type

Class Documentation

class ServerHealthHttpContext : public nvidia::inferenceserver::client::ServerHealthContext

ServerHealthHttpContext is the HTTP instantiation of ServerHealthContext.

Public Functions

Error GetReady(bool *ready)

Contact the inference server and get readiness state.

Return
Error object indicating success or failure of the request.
Parameters
  • ready: Returns the readiness state of the server.

Error GetLive(bool *live)

Contact the inference server and get liveness state.

Return
Error object indicating success or failure of the request.
Parameters
  • ready: Returns the liveness state of the server.

Public Static Functions

static Error Create(std::unique_ptr<ServerHealthContext> *ctx, const std::string &server_url, bool verbose = false)

Create a context that returns health information.

Return
Error object indicating success or failure.
Parameters
  • ctx: Returns a new ServerHealthHttpContext object.
  • server_url: The inference server name and port.
  • verbose: If true generate verbose output when contacting the inference server.