tencentcloud-sdk-monitor 3.0.912 → 3.0.914
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 +0 -52
- data/lib/v20180724/models.rb +0 -80
- 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: b0f5c905e45a5b947ad7c3ca3d287482ef924f0a
|
4
|
+
data.tar.gz: 2006148efe3c6cbcf24b501c673584f2aa882584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7353f649ea22b7f2aada6c3aeb05761c5f7729572643e7beb47bf8a76a460bed323d2d3ee2716962c07f6d9d3c7f8c2434a9b851a3643c1d61762883d7667273
|
7
|
+
data.tar.gz: 6152fe9194a8cb60e8c3da7d9bb4c21e3e38c64db4ee22df8f2981b2e426e25955e9ad0e6494d29d89150eb0a4bfa2af14f6d321845e48ef8cbd9442fbefd7c3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.914
|
data/lib/v20180724/client.rb
CHANGED
@@ -101,32 +101,6 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
-
# 接口功能是检查是否为prometheus新用户,已有其他功能更加全面的接口替代
|
105
|
-
|
106
|
-
# 判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户
|
107
|
-
|
108
|
-
# @param request: Request instance for CheckIsPrometheusNewUser.
|
109
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::CheckIsPrometheusNewUserRequest`
|
110
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::CheckIsPrometheusNewUserResponse`
|
111
|
-
def CheckIsPrometheusNewUser(request)
|
112
|
-
body = send_request('CheckIsPrometheusNewUser', request.serialize)
|
113
|
-
response = JSON.parse(body)
|
114
|
-
if response['Response'].key?('Error') == false
|
115
|
-
model = CheckIsPrometheusNewUserResponse.new
|
116
|
-
model.deserialize(response['Response'])
|
117
|
-
model
|
118
|
-
else
|
119
|
-
code = response['Response']['Error']['Code']
|
120
|
-
message = response['Response']['Error']['Message']
|
121
|
-
reqid = response['Response']['RequestId']
|
122
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
123
|
-
end
|
124
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
125
|
-
raise e
|
126
|
-
rescue StandardError => e
|
127
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
|
-
end
|
129
|
-
|
130
104
|
# 强制销毁 Grafana 实例
|
131
105
|
|
132
106
|
# @param request: Request instance for CleanGrafanaInstance.
|
@@ -2302,32 +2276,6 @@ module TencentCloud
|
|
2302
2276
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2303
2277
|
end
|
2304
2278
|
|
2305
|
-
# DescribePrometheusRecordRules 接口可完全代替该接口。近30天仅有3次调用,且都是报错请求
|
2306
|
-
|
2307
|
-
# 拉取Prometheus聚合规则yaml列表
|
2308
|
-
|
2309
|
-
# @param request: Request instance for DescribePrometheusRecordRuleYaml.
|
2310
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRuleYamlRequest`
|
2311
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRuleYamlResponse`
|
2312
|
-
def DescribePrometheusRecordRuleYaml(request)
|
2313
|
-
body = send_request('DescribePrometheusRecordRuleYaml', request.serialize)
|
2314
|
-
response = JSON.parse(body)
|
2315
|
-
if response['Response'].key?('Error') == false
|
2316
|
-
model = DescribePrometheusRecordRuleYamlResponse.new
|
2317
|
-
model.deserialize(response['Response'])
|
2318
|
-
model
|
2319
|
-
else
|
2320
|
-
code = response['Response']['Error']['Code']
|
2321
|
-
message = response['Response']['Error']['Message']
|
2322
|
-
reqid = response['Response']['RequestId']
|
2323
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2324
|
-
end
|
2325
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2326
|
-
raise e
|
2327
|
-
rescue StandardError => e
|
2328
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2329
|
-
end
|
2330
|
-
|
2331
2279
|
# 获取聚合规则列表,包含关联集群内crd资源创建的record rule
|
2332
2280
|
|
2333
2281
|
# @param request: Request instance for DescribePrometheusRecordRules.
|
data/lib/v20180724/models.rb
CHANGED
@@ -1170,33 +1170,6 @@ module TencentCloud
|
|
1170
1170
|
end
|
1171
1171
|
end
|
1172
1172
|
|
1173
|
-
# CheckIsPrometheusNewUser请求参数结构体
|
1174
|
-
class CheckIsPrometheusNewUserRequest < TencentCloud::Common::AbstractModel
|
1175
|
-
|
1176
|
-
|
1177
|
-
def initialize()
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
def deserialize(params)
|
1181
|
-
end
|
1182
|
-
end
|
1183
|
-
|
1184
|
-
# CheckIsPrometheusNewUser返回参数结构体
|
1185
|
-
class CheckIsPrometheusNewUserResponse < TencentCloud::Common::AbstractModel
|
1186
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1187
|
-
# @type RequestId: String
|
1188
|
-
|
1189
|
-
attr_accessor :RequestId
|
1190
|
-
|
1191
|
-
def initialize(requestid=nil)
|
1192
|
-
@RequestId = requestid
|
1193
|
-
end
|
1194
|
-
|
1195
|
-
def deserialize(params)
|
1196
|
-
@RequestId = params['RequestId']
|
1197
|
-
end
|
1198
|
-
end
|
1199
|
-
|
1200
1173
|
# CleanGrafanaInstance请求参数结构体
|
1201
1174
|
class CleanGrafanaInstanceRequest < TencentCloud::Common::AbstractModel
|
1202
1175
|
# @param InstanceId: Grafana 实例 ID,例如:grafana-abcdefgh
|
@@ -8326,59 +8299,6 @@ module TencentCloud
|
|
8326
8299
|
end
|
8327
8300
|
end
|
8328
8301
|
|
8329
|
-
# DescribePrometheusRecordRuleYaml请求参数结构体
|
8330
|
-
class DescribePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
|
8331
|
-
# @param InstanceId: 实例id
|
8332
|
-
# @type InstanceId: String
|
8333
|
-
# @param Offset: 分页
|
8334
|
-
# @type Offset: Integer
|
8335
|
-
# @param Limit: 分页
|
8336
|
-
# @type Limit: Integer
|
8337
|
-
# @param Filters: 过滤,当前支持
|
8338
|
-
# Name = Name
|
8339
|
-
# Values = 目标名称列表
|
8340
|
-
# @type Filters: Array
|
8341
|
-
|
8342
|
-
attr_accessor :InstanceId, :Offset, :Limit, :Filters
|
8343
|
-
|
8344
|
-
def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
|
8345
|
-
@InstanceId = instanceid
|
8346
|
-
@Offset = offset
|
8347
|
-
@Limit = limit
|
8348
|
-
@Filters = filters
|
8349
|
-
end
|
8350
|
-
|
8351
|
-
def deserialize(params)
|
8352
|
-
@InstanceId = params['InstanceId']
|
8353
|
-
@Offset = params['Offset']
|
8354
|
-
@Limit = params['Limit']
|
8355
|
-
unless params['Filters'].nil?
|
8356
|
-
@Filters = []
|
8357
|
-
params['Filters'].each do |i|
|
8358
|
-
filter_tmp = Filter.new
|
8359
|
-
filter_tmp.deserialize(i)
|
8360
|
-
@Filters << filter_tmp
|
8361
|
-
end
|
8362
|
-
end
|
8363
|
-
end
|
8364
|
-
end
|
8365
|
-
|
8366
|
-
# DescribePrometheusRecordRuleYaml返回参数结构体
|
8367
|
-
class DescribePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
|
8368
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8369
|
-
# @type RequestId: String
|
8370
|
-
|
8371
|
-
attr_accessor :RequestId
|
8372
|
-
|
8373
|
-
def initialize(requestid=nil)
|
8374
|
-
@RequestId = requestid
|
8375
|
-
end
|
8376
|
-
|
8377
|
-
def deserialize(params)
|
8378
|
-
@RequestId = params['RequestId']
|
8379
|
-
end
|
8380
|
-
end
|
8381
|
-
|
8382
8302
|
# DescribePrometheusRecordRules请求参数结构体
|
8383
8303
|
class DescribePrometheusRecordRulesRequest < TencentCloud::Common::AbstractModel
|
8384
8304
|
# @param InstanceId: Prometheus 实例 ID
|
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.914
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|