public class QueryMetricRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| QueryMetricRequest() | 
| QueryMetricRequest(QueryMetricRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getQuery()Get 查询语句,使用PromQL语法     
- 参考 [语法规则](https://cloud.tencent.com/document/product/614/90334) 文档 | 
| Long | getTime()Get 查询时间,秒级Unix时间戳。为空时代表当前时间戳。 | 
| String | getTopicId()Get 指标主题ID
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。 | 
| void | setQuery(String Query)Set 查询语句,使用PromQL语法     
- 参考 [语法规则](https://cloud.tencent.com/document/product/614/90334) 文档 | 
| void | setTime(Long Time)Set 查询时间,秒级Unix时间戳。为空时代表当前时间戳。 | 
| void | setTopicId(String TopicId)Set 指标主题ID
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic QueryMetricRequest()
public QueryMetricRequest(QueryMetricRequest source)
public String getQuery()
public void setQuery(String Query)
Query - 查询语句,使用PromQL语法 
- 参考 [语法规则](https://cloud.tencent.com/document/product/614/90334) 文档public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 指标主题ID
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。public Long getTime()
public void setTime(Long Time)
Time - 查询时间,秒级Unix时间戳。为空时代表当前时间戳。Copyright © 2025. All rights reserved.