Class MetricSpec

    • 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 - 使用资源指标扩进行自动扩缩容