Class: TencentCloud::Apm::V20210622::ApmMetricRecord

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

Overview

指标列表单元

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields = nil, tags = nil) ⇒ ApmMetricRecord

Returns a new instance of ApmMetricRecord.



891
892
893
894
# File 'lib/v20210622/models.rb', line 891

def initialize(fields=nil, tags=nil)
  @Fields = fields
  @Tags = tags
end

Instance Attribute Details

#FieldsObject

Parameters:

  • Fields:

    field数组,用于指标的查询结果

  • Tags:

    tag数组,用于区分 Groupby 的对象



889
890
891
# File 'lib/v20210622/models.rb', line 889

def Fields
  @Fields
end

#TagsObject

Parameters:

  • Fields:

    field数组,用于指标的查询结果

  • Tags:

    tag数组,用于区分 Groupby 的对象



889
890
891
# File 'lib/v20210622/models.rb', line 889

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
# File 'lib/v20210622/models.rb', line 896

def deserialize(params)
  unless params['Fields'].nil?
    @Fields = []
    params['Fields'].each do |i|
      apmfield_tmp = ApmField.new
      apmfield_tmp.deserialize(i)
      @Fields << apmfield_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      apmtag_tmp = ApmTag.new
      apmtag_tmp.deserialize(i)
      @Tags << apmtag_tmp
    end
  end
end