-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathexternalscaler.proto
51 lines (39 loc) · 1.11 KB
/
externalscaler.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
syntax = "proto3";
package externalscaler;
option go_package = ".;externalscaler";
service ExternalScaler {
rpc IsActive(ScaledObjectRef) returns (IsActiveResponse) {}
rpc StreamIsActive(ScaledObjectRef) returns (stream IsActiveResponse) {}
rpc GetMetricSpec(ScaledObjectRef) returns (GetMetricSpecResponse) {}
rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {}
}
message ScaledObjectRef {
string name = 1;
string namespace = 2;
map<string, string> scalerMetadata = 3;
}
message IsActiveResponse {
bool result = 1;
}
message GetMetricSpecResponse {
repeated MetricSpec metricSpecs = 1;
}
message MetricSpec {
string metricName = 1;
// deprecated, use targetSizeFloat instead
int64 targetSize = 2;
double targetSizeFloat = 3;
}
message GetMetricsRequest {
ScaledObjectRef scaledObjectRef = 1;
string metricName = 2;
}
message GetMetricsResponse {
repeated MetricValue metricValues = 1;
}
message MetricValue {
string metricName = 1;
// deprecated, use metricValueFloat instead
int64 metricValue = 2;
double metricValueFloat = 3;
}