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.



2788
2789
2790
2791
# File 'lib/v20210701/models.rb', line 2788

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

Instance Attribute Details

#PathObject

Parameters:

  • Port:

    应用开放的监听端口

  • Path:

    业务指标暴露的url path



2786
2787
2788
# File 'lib/v20210701/models.rb', line 2786

def Path
  @Path
end

#PortObject

Parameters:

  • Port:

    应用开放的监听端口

  • Path:

    业务指标暴露的url path



2786
2787
2788
# File 'lib/v20210701/models.rb', line 2786

def Port
  @Port
end

Instance Method Details

#deserialize(params) ⇒ Object



2793
2794
2795
2796
# File 'lib/v20210701/models.rb', line 2793

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