Get both scorecards (7-day and 30-day) of one node (GetScorecard)
GET/scorecards/:nodeId
Returns the 7d and the 30d scorecard of the node, in that order. A scorecard exists from the first observation recorded for the node, so a node nothing was observed about answers not-found.
Request
Responses
- 200
- 400
- 404
- 422
- 500
The node's scorecards.
malformed-request-query: the query string carries a NUL character (U+0000), rejected by the NUL middleware before the handler.
not-found (ErrNotFound): no observation has been recorded for this node yet.
validation-failed (ErrValidation): the nodeId is not 1 to 64 characters from A-Z a-z 0-9 . _ - starting with a letter or digit (a ':' is refused too).
internal-error: the handler panicked (the recoverer middleware answers) or the use case returned an error no problem maps to. The detail never leaks internals; the real error is logged.