All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.autoscaling.v2.ExternalMetricSource Maven / Gradle / Ivy

package io.k8s.api.autoscaling.v2;

/**
 * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
 */
public class ExternalMetricSource {
  public MetricIdentifier metric;

  public MetricTarget target;

  public ExternalMetricSource metric(MetricIdentifier metric) {
    this.metric = metric;
    return this;
  }

  public ExternalMetricSource target(MetricTarget target) {
    this.target = target;
    return this;
  }

  public static ExternalMetricSource externalMetricSource() {
    return new ExternalMetricSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy