tencentcloud-sdk-cls 3.0.663 → 3.0.665
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201016/client.rb +48 -0
- data/lib/v20201016/models.rb +104 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 261cc1c7dbec15012df4dccd867e63ec2aae2b9e
|
4
|
+
data.tar.gz: 731cd532f59a3d6b5825722400757c54ecf3e0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e648aee416a612fbd8d8f1a072157b4133c686f4a8ec4c50b6dd842ff6a340aa4b2b12a1d9d2c9c894d5ad82e4560f17f51dd97e17b48d48dedb09a6df8d817
|
7
|
+
data.tar.gz: 7fe596a699733b665815b30ef260abb227b98392e7e882e2c307ef7e5ea8d48d93d4c7b4b2368c9d0a829864a743756dbeb42a63df519b32c99998ddb034da36
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.665
|
data/lib/v20201016/client.rb
CHANGED
@@ -1949,6 +1949,54 @@ module TencentCloud
|
|
1949
1949
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1950
1950
|
end
|
1951
1951
|
|
1952
|
+
# 查询指定时刻指标的最新值
|
1953
|
+
|
1954
|
+
# @param request: Request instance for QueryMetric.
|
1955
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::QueryMetricRequest`
|
1956
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::QueryMetricResponse`
|
1957
|
+
def QueryMetric(request)
|
1958
|
+
body = send_request('QueryMetric', request.serialize)
|
1959
|
+
response = JSON.parse(body)
|
1960
|
+
if response['Response'].key?('Error') == false
|
1961
|
+
model = QueryMetricResponse.new
|
1962
|
+
model.deserialize(response['Response'])
|
1963
|
+
model
|
1964
|
+
else
|
1965
|
+
code = response['Response']['Error']['Code']
|
1966
|
+
message = response['Response']['Error']['Message']
|
1967
|
+
reqid = response['Response']['RequestId']
|
1968
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1969
|
+
end
|
1970
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1971
|
+
raise e
|
1972
|
+
rescue StandardError => e
|
1973
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
# 查询指定时间范围内指标的变化趋势
|
1977
|
+
|
1978
|
+
# @param request: Request instance for QueryRangeMetric.
|
1979
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::QueryRangeMetricRequest`
|
1980
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::QueryRangeMetricResponse`
|
1981
|
+
def QueryRangeMetric(request)
|
1982
|
+
body = send_request('QueryRangeMetric', request.serialize)
|
1983
|
+
response = JSON.parse(body)
|
1984
|
+
if response['Response'].key?('Error') == false
|
1985
|
+
model = QueryRangeMetricResponse.new
|
1986
|
+
model.deserialize(response['Response'])
|
1987
|
+
model
|
1988
|
+
else
|
1989
|
+
code = response['Response']['Error']['Code']
|
1990
|
+
message = response['Response']['Error']['Message']
|
1991
|
+
reqid = response['Response']['RequestId']
|
1992
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1993
|
+
end
|
1994
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1995
|
+
raise e
|
1996
|
+
rescue StandardError => e
|
1997
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1998
|
+
end
|
1999
|
+
|
1952
2000
|
# 重试失败的投递任务
|
1953
2001
|
|
1954
2002
|
# @param request: Request instance for RetryShipperTask.
|
data/lib/v20201016/models.rb
CHANGED
@@ -7707,6 +7707,110 @@ module TencentCloud
|
|
7707
7707
|
end
|
7708
7708
|
end
|
7709
7709
|
|
7710
|
+
# QueryMetric请求参数结构体
|
7711
|
+
class QueryMetricRequest < TencentCloud::Common::AbstractModel
|
7712
|
+
# @param Query: 查询语句,使用PromQL语法
|
7713
|
+
# @type Query: String
|
7714
|
+
# @param TopicId: 指标主题ID
|
7715
|
+
# @type TopicId: String
|
7716
|
+
# @param Time: 查询时间,秒级Unix时间戳
|
7717
|
+
# @type Time: Integer
|
7718
|
+
|
7719
|
+
attr_accessor :Query, :TopicId, :Time
|
7720
|
+
|
7721
|
+
def initialize(query=nil, topicid=nil, time=nil)
|
7722
|
+
@Query = query
|
7723
|
+
@TopicId = topicid
|
7724
|
+
@Time = time
|
7725
|
+
end
|
7726
|
+
|
7727
|
+
def deserialize(params)
|
7728
|
+
@Query = params['Query']
|
7729
|
+
@TopicId = params['TopicId']
|
7730
|
+
@Time = params['Time']
|
7731
|
+
end
|
7732
|
+
end
|
7733
|
+
|
7734
|
+
# QueryMetric返回参数结构体
|
7735
|
+
class QueryMetricResponse < TencentCloud::Common::AbstractModel
|
7736
|
+
# @param ResultType: 指标查询结果类型
|
7737
|
+
# @type ResultType: String
|
7738
|
+
# @param Result: 指标查询结果
|
7739
|
+
# @type Result: String
|
7740
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7741
|
+
# @type RequestId: String
|
7742
|
+
|
7743
|
+
attr_accessor :ResultType, :Result, :RequestId
|
7744
|
+
|
7745
|
+
def initialize(resulttype=nil, result=nil, requestid=nil)
|
7746
|
+
@ResultType = resulttype
|
7747
|
+
@Result = result
|
7748
|
+
@RequestId = requestid
|
7749
|
+
end
|
7750
|
+
|
7751
|
+
def deserialize(params)
|
7752
|
+
@ResultType = params['ResultType']
|
7753
|
+
@Result = params['Result']
|
7754
|
+
@RequestId = params['RequestId']
|
7755
|
+
end
|
7756
|
+
end
|
7757
|
+
|
7758
|
+
# QueryRangeMetric请求参数结构体
|
7759
|
+
class QueryRangeMetricRequest < TencentCloud::Common::AbstractModel
|
7760
|
+
# @param TopicId: 指标主题ID
|
7761
|
+
# @type TopicId: String
|
7762
|
+
# @param Query: 查询语句,使用PromQL语法
|
7763
|
+
# @type Query: String
|
7764
|
+
# @param Start: 查询起始时间,秒级Unix时间戳
|
7765
|
+
# @type Start: Integer
|
7766
|
+
# @param End: 查询结束时间,秒级Unix时间戳
|
7767
|
+
# @type End: Integer
|
7768
|
+
# @param Step: 查询时间间隔,单位秒
|
7769
|
+
# @type Step: Integer
|
7770
|
+
|
7771
|
+
attr_accessor :TopicId, :Query, :Start, :End, :Step
|
7772
|
+
|
7773
|
+
def initialize(topicid=nil, query=nil, start=nil, _end=nil, step=nil)
|
7774
|
+
@TopicId = topicid
|
7775
|
+
@Query = query
|
7776
|
+
@Start = start
|
7777
|
+
@End = _end
|
7778
|
+
@Step = step
|
7779
|
+
end
|
7780
|
+
|
7781
|
+
def deserialize(params)
|
7782
|
+
@TopicId = params['TopicId']
|
7783
|
+
@Query = params['Query']
|
7784
|
+
@Start = params['Start']
|
7785
|
+
@End = params['End']
|
7786
|
+
@Step = params['Step']
|
7787
|
+
end
|
7788
|
+
end
|
7789
|
+
|
7790
|
+
# QueryRangeMetric返回参数结构体
|
7791
|
+
class QueryRangeMetricResponse < TencentCloud::Common::AbstractModel
|
7792
|
+
# @param ResultType: 指标查询结果类型
|
7793
|
+
# @type ResultType: String
|
7794
|
+
# @param Result: 指标查询结果
|
7795
|
+
# @type Result: String
|
7796
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7797
|
+
# @type RequestId: String
|
7798
|
+
|
7799
|
+
attr_accessor :ResultType, :Result, :RequestId
|
7800
|
+
|
7801
|
+
def initialize(resulttype=nil, result=nil, requestid=nil)
|
7802
|
+
@ResultType = resulttype
|
7803
|
+
@Result = result
|
7804
|
+
@RequestId = requestid
|
7805
|
+
end
|
7806
|
+
|
7807
|
+
def deserialize(params)
|
7808
|
+
@ResultType = params['ResultType']
|
7809
|
+
@Result = params['Result']
|
7810
|
+
@RequestId = params['RequestId']
|
7811
|
+
end
|
7812
|
+
end
|
7813
|
+
|
7710
7814
|
# RetryShipperTask请求参数结构体
|
7711
7815
|
class RetryShipperTaskRequest < TencentCloud::Common::AbstractModel
|
7712
7816
|
# @param ShipperId: 投递规则ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.665
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|