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