Class: TencentCloud::Monitor::V20180724::ServiceDiscoveryItem

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

Overview

Prometheus 服务发现信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, namespace = nil, kind = nil, namespaceselector = nil, selector = nil, endpoints = nil, yaml = nil) ⇒ ServiceDiscoveryItem

Returns a new instance of ServiceDiscoveryItem.



14838
14839
14840
14841
14842
14843
14844
14845
14846
# File 'lib/v20180724/models.rb', line 14838

def initialize(name=nil, namespace=nil, kind=nil, namespaceselector=nil, selector=nil, endpoints=nil, yaml=nil)
  @Name = name
  @Namespace = namespace
  @Kind = kind
  @NamespaceSelector = namespaceselector
  @Selector = selector
  @Endpoints = endpoints
  @Yaml = yaml
end

Instance Attribute Details

#EndpointsObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Endpoints
  @Endpoints
end

#KindObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Kind
  @Kind
end

#NameObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Name
  @Name
end

#NamespaceObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Namespace
  @Namespace
end

#NamespaceSelectorObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def NamespaceSelector
  @NamespaceSelector
end

#SelectorObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Selector
  @Selector
end

#YamlObject

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

Parameters:

  • 服务发现名称

  • 服务发现属于的 Namespace

  • 服务发现类型: ServiceMonitor/PodMonitor

  • Namespace 选取方式

  • Label 选取方式

  • Endpoints 信息(PodMonitor 不含该参数)

  • 服务发现对应的配置信息



14836
14837
14838
# File 'lib/v20180724/models.rb', line 14836

def Yaml
  @Yaml
end

Instance Method Details

#deserialize(params) ⇒ Object



14848
14849
14850
14851
14852
14853
14854
14855
14856
# File 'lib/v20180724/models.rb', line 14848

def deserialize(params)
  @Name = params['Name']
  @Namespace = params['Namespace']
  @Kind = params['Kind']
  @NamespaceSelector = params['NamespaceSelector']
  @Selector = params['Selector']
  @Endpoints = params['Endpoints']
  @Yaml = params['Yaml']
end