Class: TencentCloud::Dbbrain::V20210527::MetricThreshold

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

Overview

自治指标阈值

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metric = nil, threshold = nil, duration = nil) ⇒ MetricThreshold

Returns a new instance of MetricThreshold.



5957
5958
5959
5960
5961
# File 'lib/v20210527/models.rb', line 5957

def initialize(metric=nil, threshold=nil, duration=nil)
  @Metric = metric
  @Threshold = threshold
  @Duration = duration
end

Instance Attribute Details

#DurationObject

Parameters:

  • Metric:

    指标。

  • Threshold:

    阈值。

  • Duration:

    时间间隔。



5955
5956
5957
# File 'lib/v20210527/models.rb', line 5955

def Duration
  @Duration
end

#MetricObject

Parameters:

  • Metric:

    指标。

  • Threshold:

    阈值。

  • Duration:

    时间间隔。



5955
5956
5957
# File 'lib/v20210527/models.rb', line 5955

def Metric
  @Metric
end

#ThresholdObject

Parameters:

  • Metric:

    指标。

  • Threshold:

    阈值。

  • Duration:

    时间间隔。



5955
5956
5957
# File 'lib/v20210527/models.rb', line 5955

def Threshold
  @Threshold
end

Instance Method Details

#deserialize(params) ⇒ Object



5963
5964
5965
5966
5967
# File 'lib/v20210527/models.rb', line 5963

def deserialize(params)
  @Metric = params['Metric']
  @Threshold = params['Threshold']
  @Duration = params['Duration']
end