com.coralogix.zio.k8s.model.autoscaling.v2beta1
ExternalMetricSource
Companion object ExternalMetricSource
case class ExternalMetricSource(metricName: String, metricSelector: Optional[LabelSelector] = Optional.Absent, targetAverageValue: Optional[Quantity] = Optional.Absent, targetValue: Optional[Quantity] = Optional.Absent) extends Product with Serializable
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). Exactly one "target" type should be set.
- metricName
metricName is the name of the metric in question.
- Alphabetic
- By Inheritance
- ExternalMetricSource
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExternalMetricSource(metricName: String, metricSelector: Optional[LabelSelector] = Optional.Absent, targetAverageValue: Optional[Quantity] = Optional.Absent, targetValue: Optional[Quantity] = Optional.Absent)
- metricName
metricName is the name of the metric in question.
Value Members
-
def
getMetricName: IO[K8sFailure, String]
metricName is the name of the metric in question.
metricName is the name of the metric in question.
This effect always succeeds, it is safe to use the field metricName directly.
-
def
getMetricSelector: IO[K8sFailure, LabelSelector]
Gets metricSelector.
Gets metricSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getTargetAverageValue: IO[K8sFailure, Quantity]
Gets targetAverageValue.
Gets targetAverageValue.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getTargetValue: IO[K8sFailure, Quantity]
Gets targetValue.
Gets targetValue.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val metricName: String
- val metricSelector: Optional[LabelSelector]
- val targetAverageValue: Optional[Quantity]
- val targetValue: Optional[Quantity]