Returns the metrics for a specified resource uid
GET/v1/metrics/:resourceKind/:resourceUid/values
Returns the metrics for a specified resource uid
Request
Path Parameters
Possible values: [pod
, namespace
, spectrocluster
, machine
, project
]
Query Parameters
Default value: all
multiple metric kinds can be provided with comma separated
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Default value: 1
period in minutes, group the data point by the specified period
Deprecated. includeMasterMachines in boolean, group the data point by including control plane nodes if set to true
includeControlPlaneMachines in boolean, group the data point by including control plane nodes if set to true
if true then api returns only aggregation values, else api returns all data points by default
Header Parameters
Scope the request to the specified project uid
Responses
- 200
An array of metric items
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
items
object[]
required
aggregation
object
Aggregation values
points
object[]
{
"items": [
{
"aggregation": {
"avg": 0,
"count": 0,
"max": 0,
"min": 0,
"sum": 0
},
"kind": "string",
"points": [
{
"avg": 0,
"count": 0,
"max": 0,
"min": 0,
"sum": 0,
"timestamp": 0,
"value": 0
}
],
"unit": "string"
}
]
}