Class MetricSpec
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tcm.v20210413.models.MetricSpec
-
public class MetricSpec extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsMetricSource
getPods()
Get 使用自定义指标扩进行自动扩缩容ResourceMetricSource
getResource()
Get 使用资源指标扩进行自动扩缩容String
getType()
Get 指标来源类型,支持 Pods/Resourcevoid
setPods(PodsMetricSource Pods)
Set 使用自定义指标扩进行自动扩缩容void
setResource(ResourceMetricSource Resource)
Set 使用资源指标扩进行自动扩缩容void
setType(String Type)
Set 指标来源类型,支持 Pods/Resourcevoid
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
MetricSpec
public MetricSpec()
-
MetricSpec
public 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.
-
-
Method Detail
-
getType
public String getType()
Get 指标来源类型,支持 Pods/Resource- Returns:
- Type 指标来源类型,支持 Pods/Resource
-
setType
public void setType(String Type)
Set 指标来源类型,支持 Pods/Resource- Parameters:
Type
- 指标来源类型,支持 Pods/Resource
-
getPods
public PodsMetricSource getPods()
Get 使用自定义指标扩进行自动扩缩容- Returns:
- Pods 使用自定义指标扩进行自动扩缩容
-
setPods
public void setPods(PodsMetricSource Pods)
Set 使用自定义指标扩进行自动扩缩容- Parameters:
Pods
- 使用自定义指标扩进行自动扩缩容
-
getResource
public ResourceMetricSource getResource()
Get 使用资源指标扩进行自动扩缩容- Returns:
- Resource 使用资源指标扩进行自动扩缩容
-
setResource
public void setResource(ResourceMetricSource Resource)
Set 使用资源指标扩进行自动扩缩容- Parameters:
Resource
- 使用资源指标扩进行自动扩缩容
-
-