Class: TencentCloud::Cls::V20201016::QueryMetricRequest

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

Overview

QueryMetric请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query = nil, topicid = nil, time = nil) ⇒ QueryMetricRequest

Returns a new instance of QueryMetricRequest.



16247
16248
16249
16250
16251
# File 'lib/v20201016/models.rb', line 16247

def initialize(query=nil, topicid=nil, time=nil)
  @Query = query
  @TopicId = topicid
  @Time = time
end

Instance Attribute Details

#Query ⇒ Object

Parameters:

  • Query: —

    查询语句,使用PromQL语法

  • TopicId: —

    指标主题ID

  • Time: —

    查询时间,秒级Unix时间戳。为空时代表当前时间戳。



16245
16246
16247
# File 'lib/v20201016/models.rb', line 16245

def Query
  @Query
end

#Time ⇒ Object

Parameters:

  • Query: —

    查询语句,使用PromQL语法

  • TopicId: —

    指标主题ID

  • Time: —

    查询时间,秒级Unix时间戳。为空时代表当前时间戳。



16245
16246
16247
# File 'lib/v20201016/models.rb', line 16245

def Time
  @Time
end

#TopicId ⇒ Object

Parameters:

  • Query: —

    查询语句,使用PromQL语法

  • TopicId: —

    指标主题ID

  • Time: —

    查询时间,秒级Unix时间戳。为空时代表当前时间戳。



16245
16246
16247
# File 'lib/v20201016/models.rb', line 16245

def TopicId
  @TopicId
end

Instance Method Details

#deserialize(params) ⇒ Object



16253
16254
16255
16256
16257
# File 'lib/v20201016/models.rb', line 16253

def deserialize(params)
  @Query = params['Query']
  @TopicId = params['TopicId']
  @Time = params['Time']
end