mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
add http status code to APIResponse
This commit is contained in:
parent
00c093074c
commit
b01d7ac59d
3 changed files with 26 additions and 23 deletions
|
|
@ -60,4 +60,7 @@ type APIResponse struct {
|
|||
ErrorType ErrorType `json:"errorType"`
|
||||
// Error is the error message, if this is an error response.
|
||||
Error string `json:"error"`
|
||||
|
||||
// StatusCode is the HTTP status code of the response.
|
||||
HTTPStatusCode int `json:"httpStatusCode"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue