Debian Codegraph @

pkg/apis/external_metrics/v1beta1/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.external_metrics.v1beta1;
23
24 import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
25 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
28
29 // Package-wide variables from generator "generated".
30 option go_package = "k8s.io/metrics/pkg/apis/external_metrics/v1beta1";
31
32 // ExternalMetricValue is a metric value for external metric
33 // A single metric value is identified by metric name and a set of string labels.
34 // For one metric there can be multiple values with different sets of labels.
35 message ExternalMetricValue {
36 // the name of the metric
37 optional string metricName = 1;
38
39 // a set of labels that identify a single time series for the metric
40 map<string, string> metricLabels = 2;
41
42 // indicates the time at which the metrics were produced
43 optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timestamp = 3;
44
45 // indicates the window ([Timestamp-Window, Timestamp]) from
46 // which these metrics were calculated, when returning rate
47 // metrics calculated from cumulative metrics (or zero for
48 // non-calculated instantaneous metrics).
49 optional int64 window = 4;
50
51 // the value of the metric
52 optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 5;
53 }
54
55 // ExternalMetricValueList is a list of values for a given metric for some set labels
56 message ExternalMetricValueList {
57 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
58
59 // value of the metric matching a given set of labels
60 repeated ExternalMetricValue items = 2;
61 }
62