Class: TencentCloud::Dbbrain::V20210527::MetricThreshold
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::MetricThreshold
- Defined in:
- lib/v20210527/models.rb
Overview
自治指标阈值
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(metric = nil, threshold = nil, duration = nil) ⇒ MetricThreshold
constructor
A new instance of MetricThreshold.
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
#Duration ⇒ Object
5955 5956 5957 |
# File 'lib/v20210527/models.rb', line 5955 def Duration @Duration end |
#Metric ⇒ Object
5955 5956 5957 |
# File 'lib/v20210527/models.rb', line 5955 def Metric @Metric end |
#Threshold ⇒ Object
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 |