Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 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.v1beta1; |
| 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 | import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; |
| 30 | |
| 31 | // Package-wide variables from generator "generated". |
| 32 | option go_package = "v1beta1"; |
| 33 | |
| 34 | // resource usage metrics of a container. |
| 35 | message 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. |
| 44 | message 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. |
| 58 | message 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. |
| 68 | message 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. |
| 82 | message 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 | |