HealthCheck::Diagnostic::RemoteHealth - Get results from an HTTP HealthCheck
version v0.1.2
Returns the decoded JSON object from a HTTP HealthCheck endpoint.
$health_check->register(
HealthCheck::Diagnostic::RemoteHealth->new(
url => "https://example.com/healthz",
)
);
Takes in a url
to a HealthCheck JSON endpoint
and checks to see if a connection can be made.
If the connection fails or the JSON object cannot be decoded,
the status
is set to "CRITICAL".
If both the connection succeeds and the JSON object is successfully decoded,
it returns the decoded JSON object from the remote endpoint.
This diagnostic inherits all attributes from
HealthCheck::Diagnostic::WebRequest in addition to its own.
status_code
is by default set to "200, 503".
The URL to the remote HealthCheck JSON endpoint. This typically ends in "/healthz".
Grant Street Group [email protected]
This software is Copyright (c) 2021 - 2024 by Grant Street Group.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)