Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Metrics *metrics.MetricsManager H *herodot.JSONWriter W firewall.Firewall }
func (*Handler) Health ¶
func (h *Handler) Health(rw http.ResponseWriter, r *http.Request, _ httprouter.Params)
swagger:route GET /health health
Check health status of instance
Responses: 204: emptyResponse 500: genericError
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *httprouter.Router)
func (*Handler) Statistics ¶ added in v0.9.10
func (h *Handler) Statistics(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
swagger:route GET /health/stats health getStatistics
Show instance statistics ¶
The subject making the request needs to be assigned to a policy containing:
```
{ "resources": ["rn:hydra:health:stats"], "actions": ["get"], "effect": "allow" }
```
Consumes: - application/json Produces: - application/json Schemes: http, https Security: oauth2: hydra.health Responses: 200: clientsList 401: genericError 403: genericError 500: genericError
Click to show internal directories.
Click to hide internal directories.