Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayStrategyAutoScalerConfigMetric

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201207/models.rb

Overview

弹性伸缩配置指标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, resourcename = nil, targettype = nil, targetvalue = nil) ⇒ CloudNativeAPIGatewayStrategyAutoScalerConfigMetric

Returns a new instance of CloudNativeAPIGatewayStrategyAutoScalerConfigMetric.



952
953
954
955
956
957
# File 'lib/v20201207/models.rb', line 952

def initialize(type=nil, resourcename=nil, targettype=nil, targetvalue=nil)
  @Type = type
  @ResourceName = resourcename
  @TargetType = targettype
  @TargetValue = targetvalue
end

Instance Attribute Details

#ResourceNameObject

  • Resource

  • cpu

  • memory

Parameters:

  • Type:

    指标类型

  • ResourceName:

    指标资源名称

  • TargetType:

    指标目标类型,目前只支持百分比Utilization

  • TargetValue:

    指标目标值



950
951
952
# File 'lib/v20201207/models.rb', line 950

def ResourceName
  @ResourceName
end

#TargetTypeObject

  • Resource

  • cpu

  • memory

Parameters:

  • Type:

    指标类型

  • ResourceName:

    指标资源名称

  • TargetType:

    指标目标类型,目前只支持百分比Utilization

  • TargetValue:

    指标目标值



950
951
952
# File 'lib/v20201207/models.rb', line 950

def TargetType
  @TargetType
end

#TargetValueObject

  • Resource

  • cpu

  • memory

Parameters:

  • Type:

    指标类型

  • ResourceName:

    指标资源名称

  • TargetType:

    指标目标类型,目前只支持百分比Utilization

  • TargetValue:

    指标目标值



950
951
952
# File 'lib/v20201207/models.rb', line 950

def TargetValue
  @TargetValue
end

#TypeObject

  • Resource

  • cpu

  • memory

Parameters:

  • Type:

    指标类型

  • ResourceName:

    指标资源名称

  • TargetType:

    指标目标类型,目前只支持百分比Utilization

  • TargetValue:

    指标目标值



950
951
952
# File 'lib/v20201207/models.rb', line 950

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



959
960
961
962
963
964
# File 'lib/v20201207/models.rb', line 959

def deserialize(params)
  @Type = params['Type']
  @ResourceName = params['ResourceName']
  @TargetType = params['TargetType']
  @TargetValue = params['TargetValue']
end