Class: TencentCloud::Tke::V20180525::PrometheusAlertManagerConfig

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

Overview

告警渠道使用自建alertmanager的配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url = nil, clustertype = nil, clusterid = nil) ⇒ PrometheusAlertManagerConfig

Returns a new instance of PrometheusAlertManagerConfig.



16135
16136
16137
16138
16139
# File 'lib/v20180525/models.rb', line 16135

def initialize(url=nil, clustertype=nil, clusterid=nil)
  @Url = url
  @ClusterType = clustertype
  @ClusterId = clusterid
end

Instance Attribute Details

#ClusterIdObject

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

Parameters:

  • Url:

    alertmanager url

  • ClusterType:

    alertmanager部署所在集群类型

  • ClusterId:

    alertmanager部署所在集群ID



16133
16134
16135
# File 'lib/v20180525/models.rb', line 16133

def ClusterId
  @ClusterId
end

#ClusterTypeObject

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

Parameters:

  • Url:

    alertmanager url

  • ClusterType:

    alertmanager部署所在集群类型

  • ClusterId:

    alertmanager部署所在集群ID



16133
16134
16135
# File 'lib/v20180525/models.rb', line 16133

def ClusterType
  @ClusterType
end

#UrlObject

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

Parameters:

  • Url:

    alertmanager url

  • ClusterType:

    alertmanager部署所在集群类型

  • ClusterId:

    alertmanager部署所在集群ID



16133
16134
16135
# File 'lib/v20180525/models.rb', line 16133

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



16141
16142
16143
16144
16145
# File 'lib/v20180525/models.rb', line 16141

def deserialize(params)
  @Url = params['Url']
  @ClusterType = params['ClusterType']
  @ClusterId = params['ClusterId']
end