File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ export interface PodMetric {
17
17
metadata : {
18
18
name : string ;
19
19
namespace : string ;
20
- selfLink : string ;
20
+ selfLink ? : string ;
21
21
creationTimestamp : string ;
22
+ labels ?: { [ key : string ] : string } ;
22
23
} ;
23
24
timestamp : string ;
24
25
window : string ;
@@ -28,7 +29,7 @@ export interface PodMetric {
28
29
export interface NodeMetric {
29
30
metadata : {
30
31
name : string ;
31
- selfLink : string ;
32
+ selfLink ? : string ;
32
33
creationTimestamp : string ;
33
34
} ;
34
35
timestamp : string ;
@@ -54,18 +55,9 @@ export interface NodeMetricsList {
54
55
items : NodeMetric [ ] ;
55
56
}
56
57
57
- export interface SinglePodMetrics {
58
+ export interface SinglePodMetrics extends PodMetric {
58
59
kind : 'PodMetrics' ;
59
60
apiVersion : 'metrics.k8s.io/v1beta1' ;
60
- metadata : {
61
- name : string ;
62
- namespace : string ;
63
- creationTimestamp : string ;
64
- labels : { [ key : string ] : string } ;
65
- } ;
66
- timestamp : string ;
67
- window : string ;
68
- containers : ContainerMetric [ ] ;
69
61
}
70
62
71
63
export class Metrics {
You can’t perform that action at this time.
0 commit comments