Documentation ¶
Index ¶
- type Scaler
- func (s *Scaler) GetMetricSpec(ctx context.Context, scaledObject *pb.ScaledObjectRef) (*pb.GetMetricSpecResponse, error)
- func (s *Scaler) GetMetrics(ctx context.Context, metricRequest *pb.GetMetricsRequest) (*pb.GetMetricsResponse, error)
- func (s *Scaler) IsActive(ctx context.Context, scaledObject *pb.ScaledObjectRef) (*pb.IsActiveResponse, error)
- func (s *Scaler) ScaleUp(ctx context.Context, project, service, version string) error
- func (s *Scaler) Start()
- func (s *Scaler) StreamIsActive(scaledObject *pb.ScaledObjectRef, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scaler ¶
type Scaler struct {
// contains filtered or unexported fields
}
Scaler is responsible to implement an external-push scaler for keda
func (*Scaler) GetMetricSpec ¶
func (s *Scaler) GetMetricSpec(ctx context.Context, scaledObject *pb.ScaledObjectRef) (*pb.GetMetricSpecResponse, error)
GetMetricSpec defines the average target value for the metric
func (*Scaler) GetMetrics ¶
func (s *Scaler) GetMetrics(ctx context.Context, metricRequest *pb.GetMetricsRequest) (*pb.GetMetricsResponse, error)
GetMetrics returns the total value for the metric
func (*Scaler) IsActive ¶
func (s *Scaler) IsActive(ctx context.Context, scaledObject *pb.ScaledObjectRef) (*pb.IsActiveResponse, error)
IsActive is called by the keda controller to check if keda should scale the deployment from 0 to 1
func (*Scaler) StreamIsActive ¶
func (s *Scaler) StreamIsActive(scaledObject *pb.ScaledObjectRef, epsServer pb.ExternalScaler_StreamIsActiveServer) error
StreamIsActive is called by keda controller once to allow us to stream isActive events to it.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.