Debian Codegraph @

pkg/apis/metrics/v1alpha1/generated.proto

raw
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = "proto2";
21
22 package k8s.io.metrics.pkg.apis.metrics.v1alpha1;
23
24 import "k8s.io/api/core/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
26 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
28 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
29
30 // Package-wide variables from generator "generated".
31 option go_package = "k8s.io/metrics/pkg/apis/metrics/v1alpha1";
32
33 // ContainerMetrics sets resource usage metrics of a container.
34 message ContainerMetrics {
35 // Container name corresponding to the one from pod.spec.containers.
36 optional string name = 1;
37
38 // The memory usage is the memory working set.
39 map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> usage = 2;
40 }
41
42 // NodeMetrics sets resource usage metrics of a node.
43 message NodeMetrics {
44 // Standard object's metadata.
45 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
46 // +optional
47 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
48
49 // The following fields define time interval from which metrics were
50 // collected from the interval [Timestamp-Window, Timestamp].
51 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timestamp = 2;
52
53 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
54
55 // The memory usage is the memory working set.
56 map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> usage = 4;
57 }
58
59 // NodeMetricsList is a list of NodeMetrics.
60 message NodeMetricsList {
61 // Standard list metadata.
62 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
63 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
64
65 // List of node metrics.
66 repeated NodeMetrics items = 2;
67 }
68
69 // PodMetrics sets resource usage metrics of a pod.
70 message PodMetrics {
71 // Standard object's metadata.
72 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
73 // +optional
74 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
75
76 // The following fields define time interval from which metrics were
77 // collected from the interval [Timestamp-Window, Timestamp].
78 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timestamp = 2;
79
80 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
81
82 // Metrics for all containers are collected within the same time window.
83 // +listType=atomic
84 repeated ContainerMetrics containers = 4;
85 }
86
87 // PodMetricsList is a list of PodMetrics.
88 message PodMetricsList {
89 // Standard list metadata.
90 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
91 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
92
93 // List of pod metrics.
94 repeated PodMetrics items = 2;
95 }
96