Class: TencentCloud::Monitor::V20180724::PrometheusAlertManagerConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180724/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.



13072
13073
13074
13075
13076
# File 'lib/v20180724/models.rb', line 13072

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



13070
13071
13072
# File 'lib/v20180724/models.rb', line 13070

def ClusterId
  @ClusterId
end

#ClusterTypeObject

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

Parameters:

  • Url:

    alertmanager url

  • ClusterType:

    alertmanager部署所在集群类型

  • ClusterId:

    alertmanager部署所在集群ID



13070
13071
13072
# File 'lib/v20180724/models.rb', line 13070

def ClusterType
  @ClusterType
end

#UrlObject

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

Parameters:

  • Url:

    alertmanager url

  • ClusterType:

    alertmanager部署所在集群类型

  • ClusterId:

    alertmanager部署所在集群ID



13070
13071
13072
# File 'lib/v20180724/models.rb', line 13070

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



13078
13079
13080
13081
13082
# File 'lib/v20180724/models.rb', line 13078

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