Class: TencentCloud::Monitor::V20180724::DescribePrometheusAlertGroupsResponse

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

Overview

DescribePrometheusAlertGroups返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alertgroupset = nil, totalcount = nil, requestid = nil) ⇒ DescribePrometheusAlertGroupsResponse

Returns a new instance of DescribePrometheusAlertGroupsResponse.



8155
8156
8157
8158
8159
# File 'lib/v20180724/models.rb', line 8155

def initialize(alertgroupset=nil, totalcount=nil, requestid=nil)
  @AlertGroupSet = alertgroupset
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#AlertGroupSetObject

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

Parameters:

  • 告警分组信息

  • 告警分组总数

  • 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8153
8154
8155
# File 'lib/v20180724/models.rb', line 8153

def AlertGroupSet
  @AlertGroupSet
end

#RequestIdObject

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

Parameters:

  • 告警分组信息

  • 告警分组总数

  • 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8153
8154
8155
# File 'lib/v20180724/models.rb', line 8153

def RequestId
  @RequestId
end

#TotalCountObject

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

Parameters:

  • 告警分组信息

  • 告警分组总数

  • 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8153
8154
8155
# File 'lib/v20180724/models.rb', line 8153

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
# File 'lib/v20180724/models.rb', line 8161

def deserialize(params)
  unless params['AlertGroupSet'].nil?
    @AlertGroupSet = []
    params['AlertGroupSet'].each do |i|
      prometheusalertgroupset_tmp = PrometheusAlertGroupSet.new
      prometheusalertgroupset_tmp.deserialize(i)
      @AlertGroupSet << prometheusalertgroupset_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end