mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 22:37:27 -08:00
Merge pull request #14429 from prometheus/document-info-annotations
Document info-level annotations in query response
This commit is contained in:
commit
06f0f2ef3b
|
@ -25,8 +25,10 @@ Other non-`2xx` codes may be returned for errors occurring before the API
|
|||
endpoint is reached.
|
||||
|
||||
An array of warnings may be returned if there are errors that do
|
||||
not inhibit the request execution. All of the data that was successfully
|
||||
collected will be returned in the data field.
|
||||
not inhibit the request execution. An additional array of info-level
|
||||
annotations may be returned for potential query issues that may or may
|
||||
not be false positives. All of the data that was successfully collected
|
||||
will be returned in the data field.
|
||||
|
||||
The JSON response envelope format is as follows:
|
||||
|
||||
|
@ -40,9 +42,11 @@ The JSON response envelope format is as follows:
|
|||
"errorType": "<string>",
|
||||
"error": "<string>",
|
||||
|
||||
// Only if there were warnings while executing the request.
|
||||
// Only set if there were warnings while executing the request.
|
||||
// There will still be data in the data field.
|
||||
"warnings": ["<string>"]
|
||||
"warnings": ["<string>"],
|
||||
// Only set if there were info-level annnotations while executing the request.
|
||||
"infos": ["<string>"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue