Class: TencentCloud::Dbbrain::V20210527::IssueTypeInfo

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

Overview

指标信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issuetype = nil, events = nil, totalcount = nil) ⇒ IssueTypeInfo

Returns a new instance of IssueTypeInfo.



5696
5697
5698
5699
5700
# File 'lib/v20210527/models.rb', line 5696

def initialize(issuetype=nil, events=nil, totalcount=nil)
  @IssueType = issuetype
  @Events = events
  @TotalCount = totalcount
end

Instance Attribute Details

#EventsObject

Parameters:

  • IssueType:

    指标分类:AVAILABILITY:可用性,MAINTAINABILITY:可维护性,PERFORMANCE,性能,RELIABILITY可靠性。

  • Events:

    异常事件。

  • TotalCount:

    异常事件总数。



5694
5695
5696
# File 'lib/v20210527/models.rb', line 5694

def Events
  @Events
end

#IssueTypeObject

Parameters:

  • IssueType:

    指标分类:AVAILABILITY:可用性,MAINTAINABILITY:可维护性,PERFORMANCE,性能,RELIABILITY可靠性。

  • Events:

    异常事件。

  • TotalCount:

    异常事件总数。



5694
5695
5696
# File 'lib/v20210527/models.rb', line 5694

def IssueType
  @IssueType
end

#TotalCountObject

Parameters:

  • IssueType:

    指标分类:AVAILABILITY:可用性,MAINTAINABILITY:可维护性,PERFORMANCE,性能,RELIABILITY可靠性。

  • Events:

    异常事件。

  • TotalCount:

    异常事件总数。



5694
5695
5696
# File 'lib/v20210527/models.rb', line 5694

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
# File 'lib/v20210527/models.rb', line 5702

def deserialize(params)
  @IssueType = params['IssueType']
  unless params['Events'].nil?
    @Events = []
    params['Events'].each do |i|
      eventinfo_tmp = EventInfo.new
      eventinfo_tmp.deserialize(i)
      @Events << eventinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
end