Skip to content

Latest commit

 

History

History
62 lines (34 loc) · 2.29 KB

HealthApi.md

File metadata and controls

62 lines (34 loc) · 2.29 KB

\HealthApi

All URIs are relative to http://localhost

Method HTTP request Description
GetInstanceMetrics Get /health/metrics Show instance metrics (experimental)
GetInstanceStatus Get /health/status Check health status of this instance

GetInstanceMetrics

GetInstanceMetrics()

Show instance metrics (experimental)

This endpoint returns an instance's metrics, such as average response time, status code distribution, hits per second and so on. The return values are currently not documented as this endpoint is still experimental. The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:health:stats\"], \"actions\": [\"get\"], \"effect\": \"allow\" }

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetInstanceStatus

InlineResponse200 GetInstanceStatus()

Check health status of this instance

This endpoint returns { \"status\": \"ok\" }. This status let's you know that the HTTP server is up and running. This status does currently not include checks whether the database connection is up and running. This endpoint does not require the X-Forwarded-Proto header when TLS termination is set. Be aware that if you are running multiple nodes of ORY Hydra, the health status will never refer to the cluster state, only to a single instance.

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]