public class MetricSpec extends AbstractModel
Constructor and Description |
---|
MetricSpec() |
MetricSpec(MetricSpec source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
PodsMetricSource |
getPods()
Get 使用自定义指标扩进行自动扩缩容
|
ResourceMetricSource |
getResource()
Get 使用资源指标扩进行自动扩缩容
|
String |
getType()
Get 指标来源类型,支持 Pods/Resource
|
void |
setPods(PodsMetricSource Pods)
Set 使用自定义指标扩进行自动扩缩容
|
void |
setResource(ResourceMetricSource Resource)
Set 使用资源指标扩进行自动扩缩容
|
void |
setType(String Type)
Set 指标来源类型,支持 Pods/Resource
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public MetricSpec()
public MetricSpec(MetricSpec source)
public String getType()
public void setType(String Type)
Type
- 指标来源类型,支持 Pods/Resourcepublic PodsMetricSource getPods()
public void setPods(PodsMetricSource Pods)
Pods
- 使用自定义指标扩进行自动扩缩容public ResourceMetricSource getResource()
public void setResource(ResourceMetricSource Resource)
Resource
- 使用资源指标扩进行自动扩缩容Copyright © 2023. All rights reserved.