forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresourcemetricstatus.json
37 lines (37 loc) · 1.28 KB
/
resourcemetricstatus.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"required": [
"name",
"currentAverageValue"
],
"properties": {
"currentAverageUtilization": {
"description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.",
"type": "integer",
"format": "int32"
},
"currentAverageValue": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"name": {
"description": "name is the name of the resource in question.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}