Class: TencentCloud::Tem::V20210701::EnablePrometheusConf

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

Overview

开启prometheus监控配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port = nil, path = nil) ⇒ EnablePrometheusConf

Returns a new instance of EnablePrometheusConf.



2740
2741
2742
2743
# File 'lib/v20210701/models.rb', line 2740

def initialize(port=nil, path=nil)
  @Port = port
  @Path = path
end

Instance Attribute Details

#PathObject

Parameters:

  • Port:

    应用开放的监听端口

  • Path:

    业务指标暴露的url path



2738
2739
2740
# File 'lib/v20210701/models.rb', line 2738

def Path
  @Path
end

#PortObject

Parameters:

  • Port:

    应用开放的监听端口

  • Path:

    业务指标暴露的url path



2738
2739
2740
# File 'lib/v20210701/models.rb', line 2738

def Port
  @Port
end

Instance Method Details

#deserialize(params) ⇒ Object



2745
2746
2747
2748
# File 'lib/v20210701/models.rb', line 2745

def deserialize(params)
  @Port = params['Port']
  @Path = params['Path']
end