tencentcloud-sdk-monitor 3.0.652 → 3.0.653
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/v20180724/client.rb +24 -0
- data/lib/v20180724/models.rb +85 -2
- 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: 41f9ba327af359a473ce5e79ac55bd58a30de7fe
|
4
|
+
data.tar.gz: 9481a2d49a495931b33a450734bd927319ca9454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27049b1f04328aa8a5f2a6ee932685cd9add4e6f590e427ac975fc8e856c780174449ad9648e5b15780f089a9ffaaacf25d195cc13d6819755fa7710a05bc255
|
7
|
+
data.tar.gz: dc8342c0960660b8cb577fd5b2415008ea48a31eb1a1af1270f114cabe5967e52117a2e8611373a78f24429641e4636997b70abddb7ade2474b578705733f5b2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.653
|
data/lib/v20180724/client.rb
CHANGED
@@ -2201,6 +2201,30 @@ module TencentCloud
|
|
2201
2201
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2202
2202
|
end
|
2203
2203
|
|
2204
|
+
# 列出 Prometheus 服务所有可用的地域
|
2205
|
+
|
2206
|
+
# @param request: Request instance for DescribePrometheusRegions.
|
2207
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRegionsRequest`
|
2208
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRegionsResponse`
|
2209
|
+
def DescribePrometheusRegions(request)
|
2210
|
+
body = send_request('DescribePrometheusRegions', request.serialize)
|
2211
|
+
response = JSON.parse(body)
|
2212
|
+
if response['Response'].key?('Error') == false
|
2213
|
+
model = DescribePrometheusRegionsResponse.new
|
2214
|
+
model.deserialize(response['Response'])
|
2215
|
+
model
|
2216
|
+
else
|
2217
|
+
code = response['Response']['Error']['Code']
|
2218
|
+
message = response['Response']['Error']['Message']
|
2219
|
+
reqid = response['Response']['RequestId']
|
2220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2221
|
+
end
|
2222
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2223
|
+
raise e
|
2224
|
+
rescue StandardError => e
|
2225
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2226
|
+
end
|
2227
|
+
|
2204
2228
|
# 列出 Prometheus 抓取任务
|
2205
2229
|
|
2206
2230
|
# @param request: Request instance for DescribePrometheusScrapeJobs.
|
data/lib/v20180724/models.rb
CHANGED
@@ -7896,6 +7896,49 @@ module TencentCloud
|
|
7896
7896
|
end
|
7897
7897
|
end
|
7898
7898
|
|
7899
|
+
# DescribePrometheusRegions请求参数结构体
|
7900
|
+
class DescribePrometheusRegionsRequest < TencentCloud::Common::AbstractModel
|
7901
|
+
# @param PayMode: 1-预付费,2-后付费,3-全地域(不填默认全地域)
|
7902
|
+
# @type PayMode: Integer
|
7903
|
+
|
7904
|
+
attr_accessor :PayMode
|
7905
|
+
|
7906
|
+
def initialize(paymode=nil)
|
7907
|
+
@PayMode = paymode
|
7908
|
+
end
|
7909
|
+
|
7910
|
+
def deserialize(params)
|
7911
|
+
@PayMode = params['PayMode']
|
7912
|
+
end
|
7913
|
+
end
|
7914
|
+
|
7915
|
+
# DescribePrometheusRegions返回参数结构体
|
7916
|
+
class DescribePrometheusRegionsResponse < TencentCloud::Common::AbstractModel
|
7917
|
+
# @param RegionSet: 区域列表
|
7918
|
+
# @type RegionSet: Array
|
7919
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7920
|
+
# @type RequestId: String
|
7921
|
+
|
7922
|
+
attr_accessor :RegionSet, :RequestId
|
7923
|
+
|
7924
|
+
def initialize(regionset=nil, requestid=nil)
|
7925
|
+
@RegionSet = regionset
|
7926
|
+
@RequestId = requestid
|
7927
|
+
end
|
7928
|
+
|
7929
|
+
def deserialize(params)
|
7930
|
+
unless params['RegionSet'].nil?
|
7931
|
+
@RegionSet = []
|
7932
|
+
params['RegionSet'].each do |i|
|
7933
|
+
prometheusregionitem_tmp = PrometheusRegionItem.new
|
7934
|
+
prometheusregionitem_tmp.deserialize(i)
|
7935
|
+
@RegionSet << prometheusregionitem_tmp
|
7936
|
+
end
|
7937
|
+
end
|
7938
|
+
@RequestId = params['RequestId']
|
7939
|
+
end
|
7940
|
+
end
|
7941
|
+
|
7899
7942
|
# DescribePrometheusScrapeJobs请求参数结构体
|
7900
7943
|
class DescribePrometheusScrapeJobsRequest < TencentCloud::Common::AbstractModel
|
7901
7944
|
# @param InstanceId: 实例 ID
|
@@ -9009,9 +9052,9 @@ module TencentCloud
|
|
9009
9052
|
# @type VpcId: String
|
9010
9053
|
# @param SubnetIds: 子网 ID 数组
|
9011
9054
|
# @type SubnetIds: Array
|
9012
|
-
# @param InternetUrl: Grafana
|
9055
|
+
# @param InternetUrl: Grafana 公网地址
|
9013
9056
|
# @type InternetUrl: String
|
9014
|
-
# @param InternalUrl: Grafana
|
9057
|
+
# @param InternalUrl: Grafana 内网地址
|
9015
9058
|
# @type InternalUrl: String
|
9016
9059
|
# @param CreatedAt: 创建时间
|
9017
9060
|
# @type CreatedAt: String
|
@@ -11900,6 +11943,46 @@ module TencentCloud
|
|
11900
11943
|
end
|
11901
11944
|
end
|
11902
11945
|
|
11946
|
+
# DescribePrometheusRegions 响应结构体
|
11947
|
+
class PrometheusRegionItem < TencentCloud::Common::AbstractModel
|
11948
|
+
# @param Region: 区域
|
11949
|
+
# @type Region: String
|
11950
|
+
# @param RegionId: 区域 ID
|
11951
|
+
# @type RegionId: Integer
|
11952
|
+
# @param RegionState: 区域状态( 0: 不可用;1: 可用)
|
11953
|
+
# @type RegionState: Integer
|
11954
|
+
# @param RegionName: 区域名(中文)
|
11955
|
+
# @type RegionName: String
|
11956
|
+
# @param RegionShortName: 区域名(英文缩写)
|
11957
|
+
# @type RegionShortName: String
|
11958
|
+
# @param Area: 区域所在大区名
|
11959
|
+
# @type Area: String
|
11960
|
+
# @param RegionPayMode: 1-仅支持预付费,2-仅支持后付费,3-支持两种计费模式实例
|
11961
|
+
# @type RegionPayMode: Integer
|
11962
|
+
|
11963
|
+
attr_accessor :Region, :RegionId, :RegionState, :RegionName, :RegionShortName, :Area, :RegionPayMode
|
11964
|
+
|
11965
|
+
def initialize(region=nil, regionid=nil, regionstate=nil, regionname=nil, regionshortname=nil, area=nil, regionpaymode=nil)
|
11966
|
+
@Region = region
|
11967
|
+
@RegionId = regionid
|
11968
|
+
@RegionState = regionstate
|
11969
|
+
@RegionName = regionname
|
11970
|
+
@RegionShortName = regionshortname
|
11971
|
+
@Area = area
|
11972
|
+
@RegionPayMode = regionpaymode
|
11973
|
+
end
|
11974
|
+
|
11975
|
+
def deserialize(params)
|
11976
|
+
@Region = params['Region']
|
11977
|
+
@RegionId = params['RegionId']
|
11978
|
+
@RegionState = params['RegionState']
|
11979
|
+
@RegionName = params['RegionName']
|
11980
|
+
@RegionShortName = params['RegionShortName']
|
11981
|
+
@Area = params['Area']
|
11982
|
+
@RegionPayMode = params['RegionPayMode']
|
11983
|
+
end
|
11984
|
+
end
|
11985
|
+
|
11903
11986
|
# prometheus 报警规则 KV 参数
|
11904
11987
|
class PrometheusRuleKV < TencentCloud::Common::AbstractModel
|
11905
11988
|
# @param Key: 键
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.653
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|