Debian Codegraph @

pkg/apis/custom_metrics/v1beta2/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.custom_metrics.v1beta2;
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/custom_metrics/v1beta2";
32
33 // MetricIdentifier identifies a metric by name and, optionally, selector
34 message MetricIdentifier {
35 // name is the name of the given metric
36 optional string name = 1;
37
38 // selector represents the label selector that could be used to select
39 // this metric, and will generally just be the selector passed in to
40 // the query used to fetch this metric.
41 // When left blank, only the metric's Name will be used to gather metrics.
42 // +optional
43 optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
44 }
45
46 // MetricListOptions is used to select metrics by their label selectors
47 message MetricListOptions {
48 // A selector to restrict the list of returned objects by their labels.
49 // Defaults to everything.
50 // +optional
51 optional string labelSelector = 1;
52
53 // A selector to restrict the list of returned metrics by their labels
54 // +optional
55 optional string metricLabelSelector = 2;
56 }
57
58 // MetricValue is the metric value for some object
59 message MetricValue {
60 // a reference to the described object
61 optional .k8s.io.api.core.v1.ObjectReference describedObject = 1;
62
63 optional MetricIdentifier metric = 2;
64
65 // indicates the time at which the metrics were produced
66 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timestamp = 3;
67
68 // indicates the window ([Timestamp-Window, Timestamp]) from
69 // which these metrics were calculated, when returning rate
70 // metrics calculated from cumulative metrics (or zero for
71 // non-calculated instantaneous metrics).
72 optional int64 windowSeconds = 4;
73
74 // the value of the metric for this
75 optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 5;
76 }
77
78 // MetricValueList is a list of values for a given metric for some set of objects
79 message MetricValueList {
80 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
81
82 // the value of the metric across the described objects
83 repeated MetricValue items = 2;
84 }
85