Class: TencentCloud::Cls::V20201016::InstanceData

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

Overview

云产品指标订阅预览结果实例信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metricname = nil, clsmetricname = nil, namespace = nil, dimensions = nil, period = nil, value = nil, errmsg = nil) ⇒ InstanceData

Returns a new instance of InstanceData.



11754
11755
11756
11757
11758
11759
11760
11761
11762
# File 'lib/v20201016/models.rb', line 11754

def initialize(metricname=nil, clsmetricname=nil, namespace=nil, dimensions=nil, period=nil, value=nil, errmsg=nil)
  @MetricName = metricname
  @CLSMetricName = clsmetricname
  @Namespace = namespace
  @Dimensions = dimensions
  @Period = period
  @Value = value
  @ErrMsg = errmsg
end

Instance Attribute Details

#CLSMetricName ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def CLSMetricName
  @CLSMetricName
end

#Dimensions ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def Dimensions
  @Dimensions
end

#ErrMsg ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def ErrMsg
  @ErrMsg
end

#MetricName ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def MetricName
  @MetricName
end

#Namespace ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def Namespace
  @Namespace
end

#Period ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def Period
  @Period
end

#Value ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetricName: —

    云监控指标名称

  • CLSMetricName: —

    CLS指标名称

  • Namespace: —

    云产品命名空间

  • Dimensions: —

    实例信息

  • Period: —

    周期,单位:秒

  • Value: —

    指标统计值

  • ErrMsg: —

    错误信息



11752
11753
11754
# File 'lib/v20201016/models.rb', line 11752

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
# File 'lib/v20201016/models.rb', line 11764

def deserialize(params)
  @MetricName = params['MetricName']
  @CLSMetricName = params['CLSMetricName']
  @Namespace = params['Namespace']
  unless params['Dimensions'].nil?
    @Dimensions = []
    params['Dimensions'].each do |i|
      dimension_tmp = Dimension.new
      dimension_tmp.deserialize(i)
      @Dimensions << dimension_tmp
    end
  end
  @Period = params['Period']
  @Value = params['Value']
  @ErrMsg = params['ErrMsg']
end