com.coralogix.zio.k8s.model.autoscaling.v2beta1
ObjectMetricStatus
Companion object ObjectMetricStatus
case class ObjectMetricStatus(averageValue: Optional[Quantity] = Optional.Absent, currentValue: Quantity, metricName: String, selector: Optional[LabelSelector] = Optional.Absent, target: CrossVersionObjectReference) extends Product with Serializable
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
- metricName
metricName is the name of the metric in question.
- Alphabetic
- By Inheritance
- ObjectMetricStatus
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ObjectMetricStatus(averageValue: Optional[Quantity] = Optional.Absent, currentValue: Quantity, metricName: String, selector: Optional[LabelSelector] = Optional.Absent, target: CrossVersionObjectReference)
- metricName
metricName is the name of the metric in question.
Value Members
- val averageValue: Optional[Quantity]
- val currentValue: Quantity
-
def
getAverageValue: IO[K8sFailure, Quantity]
Gets averageValue.
Gets averageValue.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getCurrentValue: IO[K8sFailure, Quantity]
Gets currentValue.
Gets currentValue.
This effect always succeeds, it is safe to use the field currentValue directly.
-
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
getSelector: IO[K8sFailure, LabelSelector]
Gets selector.
Gets selector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getTarget: IO[K8sFailure, CrossVersionObjectReference]
Gets target.
Gets target.
This effect always succeeds, it is safe to use the field target directly.
- val metricName: String
- val selector: Optional[LabelSelector]
- val target: CrossVersionObjectReference