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.



5769
5770
5771
5772
5773
# File 'lib/v20210527/models.rb', line 5769

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:

    异常事件总数。



5767
5768
5769
# File 'lib/v20210527/models.rb', line 5767

def Events
  @Events
end

#IssueTypeObject

Parameters:

  • IssueType:

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

  • Events:

    异常事件。

  • TotalCount:

    异常事件总数。



5767
5768
5769
# File 'lib/v20210527/models.rb', line 5767

def IssueType
  @IssueType
end

#TotalCountObject

Parameters:

  • IssueType:

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

  • Events:

    异常事件。

  • TotalCount:

    异常事件总数。



5767
5768
5769
# File 'lib/v20210527/models.rb', line 5767

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
# File 'lib/v20210527/models.rb', line 5775

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