MetricSpec

com.coralogix.zio.k8s.model.autoscaling.v2.MetricSpec
See theMetricSpec companion object

MetricSpec specifies how to scale based on a single metric (only type and one other matching field should be set at once).

Value parameters

type

type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Gets containerResource.

Gets containerResource.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

Gets external.

Gets external.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

Gets object.

Gets object.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

Gets pods.

Gets pods.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

Gets resource.

Gets resource.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled

type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled

This effect always succeeds, it is safe to use the field type directly.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product