/* Copyright 2020 The KEDA Authors. and others that have contributed code to the public domain. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // This file comes from https://github.com/kedacore/keda/blob/main/pkg/scalers/externalscaler/externalscaler.proto syntax = "proto3"; package externalscaler; option go_package = ".;externalscaler"; service ExternalScaler { rpc IsActive(ScaledObjectRef) returns (IsActiveResponse) {} // Commented out since we aren't supporting the streaming scaler interface at the moment // 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 scalerMetadata = 3; } message IsActiveResponse { bool result = 1; } message GetMetricSpecResponse { repeated MetricSpec metricSpecs = 1; } message MetricSpec { string metricName = 1; int64 targetSize = 2; } message GetMetricsRequest { ScaledObjectRef scaledObjectRef = 1; string metricName = 2; } message GetMetricsResponse { repeated MetricValue metricValues = 1; } message MetricValue { string metricName = 1; int64 metricValue = 2; }