tencentcloud-sdk-monitor 3.0.1024 → 3.0.1026
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +24 -0
- data/lib/v20180724/models.rb +158 -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: 61fbd7376c5f3dafe00a44c6735a81ea1bf9da5b
|
4
|
+
data.tar.gz: e202ba6074bf06c841614e6a9900333b91de4686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e88b7d48bf9d319b5ed95993e3c0e2bfa55f6c752723024b266355bffa72a28183f4a2d51f7422744ab1a110b8d2df353bb3e41cc58c4390b3b134b06531add2
|
7
|
+
data.tar.gz: 4be6d82fc868fbf6ea08e22a7acb36b0f16c39e0252b0a10a5a08a91036bf50b7629c829dae86b92cd49db02a7413ae3de5262e98c5d336236ead23450e9e3f9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1026
|
data/lib/v20180724/client.rb
CHANGED
@@ -223,6 +223,30 @@ module TencentCloud
|
|
223
223
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
224
224
|
end
|
225
225
|
|
226
|
+
# 创建告警条件模板
|
227
|
+
|
228
|
+
# @param request: Request instance for CreateConditionsTemplate.
|
229
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreateConditionsTemplateRequest`
|
230
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreateConditionsTemplateResponse`
|
231
|
+
def CreateConditionsTemplate(request)
|
232
|
+
body = send_request('CreateConditionsTemplate', request.serialize)
|
233
|
+
response = JSON.parse(body)
|
234
|
+
if response['Response'].key?('Error') == false
|
235
|
+
model = CreateConditionsTemplateResponse.new
|
236
|
+
model.deserialize(response['Response'])
|
237
|
+
model
|
238
|
+
else
|
239
|
+
code = response['Response']['Error']['Code']
|
240
|
+
message = response['Response']['Error']['Message']
|
241
|
+
reqid = response['Response']['RequestId']
|
242
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
243
|
+
end
|
244
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
245
|
+
raise e
|
246
|
+
rescue StandardError => e
|
247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
|
+
end
|
249
|
+
|
226
250
|
# 创建集成中心 exporter 集成,因集成较多,建议控制台创建集成。(前提:已授权创建托管 EKS 集群,验证方式:1. 控制台界面确认,未提示授权则表示已授权创建;2. 通过 DescribePrometheusInstanceInitStatus 接口查询集群状态,如果托管集群不存在,可通过 RunPrometheusInstance 接口创建)
|
227
251
|
|
228
252
|
# @param request: Request instance for CreateExporterIntegration.
|
data/lib/v20180724/models.rb
CHANGED
@@ -1880,6 +1880,92 @@ module TencentCloud
|
|
1880
1880
|
end
|
1881
1881
|
end
|
1882
1882
|
|
1883
|
+
# CreateConditionsTemplate请求参数结构体
|
1884
|
+
class CreateConditionsTemplateRequest < TencentCloud::Common::AbstractModel
|
1885
|
+
# @param Module: 固定值,monitor
|
1886
|
+
# @type Module: String
|
1887
|
+
# @param ViewName: 视图名
|
1888
|
+
# @type ViewName: String
|
1889
|
+
# @param GroupName: 组名
|
1890
|
+
# @type GroupName: String
|
1891
|
+
# @param IsUnionRule: 是否为与关系
|
1892
|
+
# @type IsUnionRule: Integer
|
1893
|
+
# @param Remark: 备注
|
1894
|
+
# @type Remark: String
|
1895
|
+
# @param ParentGroupID: 父ID
|
1896
|
+
# @type ParentGroupID: Integer
|
1897
|
+
# @param IsShielded: 是否屏蔽
|
1898
|
+
# @type IsShielded: Integer
|
1899
|
+
# @param ComplexExpression: 复合告警表达式
|
1900
|
+
# @type ComplexExpression: String
|
1901
|
+
# @param Conditions: 指标告警条件
|
1902
|
+
# @type Conditions: Array
|
1903
|
+
# @param EventConditions: 事件告警条件
|
1904
|
+
# @type EventConditions: Array
|
1905
|
+
|
1906
|
+
attr_accessor :Module, :ViewName, :GroupName, :IsUnionRule, :Remark, :ParentGroupID, :IsShielded, :ComplexExpression, :Conditions, :EventConditions
|
1907
|
+
|
1908
|
+
def initialize(_module=nil, viewname=nil, groupname=nil, isunionrule=nil, remark=nil, parentgroupid=nil, isshielded=nil, complexexpression=nil, conditions=nil, eventconditions=nil)
|
1909
|
+
@Module = _module
|
1910
|
+
@ViewName = viewname
|
1911
|
+
@GroupName = groupname
|
1912
|
+
@IsUnionRule = isunionrule
|
1913
|
+
@Remark = remark
|
1914
|
+
@ParentGroupID = parentgroupid
|
1915
|
+
@IsShielded = isshielded
|
1916
|
+
@ComplexExpression = complexexpression
|
1917
|
+
@Conditions = conditions
|
1918
|
+
@EventConditions = eventconditions
|
1919
|
+
end
|
1920
|
+
|
1921
|
+
def deserialize(params)
|
1922
|
+
@Module = params['Module']
|
1923
|
+
@ViewName = params['ViewName']
|
1924
|
+
@GroupName = params['GroupName']
|
1925
|
+
@IsUnionRule = params['IsUnionRule']
|
1926
|
+
@Remark = params['Remark']
|
1927
|
+
@ParentGroupID = params['ParentGroupID']
|
1928
|
+
@IsShielded = params['IsShielded']
|
1929
|
+
@ComplexExpression = params['ComplexExpression']
|
1930
|
+
unless params['Conditions'].nil?
|
1931
|
+
@Conditions = []
|
1932
|
+
params['Conditions'].each do |i|
|
1933
|
+
modifyconditionstemplaterequestcondition_tmp = ModifyConditionsTemplateRequestCondition.new
|
1934
|
+
modifyconditionstemplaterequestcondition_tmp.deserialize(i)
|
1935
|
+
@Conditions << modifyconditionstemplaterequestcondition_tmp
|
1936
|
+
end
|
1937
|
+
end
|
1938
|
+
unless params['EventConditions'].nil?
|
1939
|
+
@EventConditions = []
|
1940
|
+
params['EventConditions'].each do |i|
|
1941
|
+
modifyconditionstemplaterequesteventcondition_tmp = ModifyConditionsTemplateRequestEventCondition.new
|
1942
|
+
modifyconditionstemplaterequesteventcondition_tmp.deserialize(i)
|
1943
|
+
@EventConditions << modifyconditionstemplaterequesteventcondition_tmp
|
1944
|
+
end
|
1945
|
+
end
|
1946
|
+
end
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
# CreateConditionsTemplate返回参数结构体
|
1950
|
+
class CreateConditionsTemplateResponse < TencentCloud::Common::AbstractModel
|
1951
|
+
# @param GroupID: 模板策略组ID
|
1952
|
+
# @type GroupID: Integer
|
1953
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1954
|
+
# @type RequestId: String
|
1955
|
+
|
1956
|
+
attr_accessor :GroupID, :RequestId
|
1957
|
+
|
1958
|
+
def initialize(groupid=nil, requestid=nil)
|
1959
|
+
@GroupID = groupid
|
1960
|
+
@RequestId = requestid
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
def deserialize(params)
|
1964
|
+
@GroupID = params['GroupID']
|
1965
|
+
@RequestId = params['RequestId']
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
|
1883
1969
|
# CreateExporterIntegration请求参数结构体
|
1884
1970
|
class CreateExporterIntegrationRequest < TencentCloud::Common::AbstractModel
|
1885
1971
|
# @param InstanceId: 实例 ID
|
@@ -11120,6 +11206,78 @@ module TencentCloud
|
|
11120
11206
|
end
|
11121
11207
|
end
|
11122
11208
|
|
11209
|
+
# ModifyConditionsTemplateRequestCondition,Condition入参字段值
|
11210
|
+
class ModifyConditionsTemplateRequestCondition < TencentCloud::Common::AbstractModel
|
11211
|
+
# @param CalcPeriod: 统计周期
|
11212
|
+
# @type CalcPeriod: String
|
11213
|
+
# @param CalcType: 统计方式
|
11214
|
+
# @type CalcType: String
|
11215
|
+
# @param ContinuePeriod: 持续周期
|
11216
|
+
# @type ContinuePeriod: String
|
11217
|
+
# @param MetricID: 指标ID
|
11218
|
+
# @type MetricID: Integer
|
11219
|
+
# @param CalcValue: 统计值
|
11220
|
+
# @type CalcValue: String
|
11221
|
+
# @param AlarmNotifyPeriod: 告警通知周期
|
11222
|
+
# @type AlarmNotifyPeriod: String
|
11223
|
+
# @param AlarmNotifyType: 告警通知方式
|
11224
|
+
# @type AlarmNotifyType: Integer
|
11225
|
+
# @param RuleID: 规则ID
|
11226
|
+
# @type RuleID: Integer
|
11227
|
+
|
11228
|
+
attr_accessor :CalcPeriod, :CalcType, :ContinuePeriod, :MetricID, :CalcValue, :AlarmNotifyPeriod, :AlarmNotifyType, :RuleID
|
11229
|
+
|
11230
|
+
def initialize(calcperiod=nil, calctype=nil, continueperiod=nil, metricid=nil, calcvalue=nil, alarmnotifyperiod=nil, alarmnotifytype=nil, ruleid=nil)
|
11231
|
+
@CalcPeriod = calcperiod
|
11232
|
+
@CalcType = calctype
|
11233
|
+
@ContinuePeriod = continueperiod
|
11234
|
+
@MetricID = metricid
|
11235
|
+
@CalcValue = calcvalue
|
11236
|
+
@AlarmNotifyPeriod = alarmnotifyperiod
|
11237
|
+
@AlarmNotifyType = alarmnotifytype
|
11238
|
+
@RuleID = ruleid
|
11239
|
+
end
|
11240
|
+
|
11241
|
+
def deserialize(params)
|
11242
|
+
@CalcPeriod = params['CalcPeriod']
|
11243
|
+
@CalcType = params['CalcType']
|
11244
|
+
@ContinuePeriod = params['ContinuePeriod']
|
11245
|
+
@MetricID = params['MetricID']
|
11246
|
+
@CalcValue = params['CalcValue']
|
11247
|
+
@AlarmNotifyPeriod = params['AlarmNotifyPeriod']
|
11248
|
+
@AlarmNotifyType = params['AlarmNotifyType']
|
11249
|
+
@RuleID = params['RuleID']
|
11250
|
+
end
|
11251
|
+
end
|
11252
|
+
|
11253
|
+
# ModifyConditionsTemplateRequestEventCondition
|
11254
|
+
class ModifyConditionsTemplateRequestEventCondition < TencentCloud::Common::AbstractModel
|
11255
|
+
# @param AlarmNotifyPeriod: 告警通知周期
|
11256
|
+
# @type AlarmNotifyPeriod: String
|
11257
|
+
# @param AlarmNotifyType: 告警通知方式
|
11258
|
+
# @type AlarmNotifyType: String
|
11259
|
+
# @param EventID: 事件ID
|
11260
|
+
# @type EventID: String
|
11261
|
+
# @param RuleID: 规则ID
|
11262
|
+
# @type RuleID: Integer
|
11263
|
+
|
11264
|
+
attr_accessor :AlarmNotifyPeriod, :AlarmNotifyType, :EventID, :RuleID
|
11265
|
+
|
11266
|
+
def initialize(alarmnotifyperiod=nil, alarmnotifytype=nil, eventid=nil, ruleid=nil)
|
11267
|
+
@AlarmNotifyPeriod = alarmnotifyperiod
|
11268
|
+
@AlarmNotifyType = alarmnotifytype
|
11269
|
+
@EventID = eventid
|
11270
|
+
@RuleID = ruleid
|
11271
|
+
end
|
11272
|
+
|
11273
|
+
def deserialize(params)
|
11274
|
+
@AlarmNotifyPeriod = params['AlarmNotifyPeriod']
|
11275
|
+
@AlarmNotifyType = params['AlarmNotifyType']
|
11276
|
+
@EventID = params['EventID']
|
11277
|
+
@RuleID = params['RuleID']
|
11278
|
+
end
|
11279
|
+
end
|
11280
|
+
|
11123
11281
|
# ModifyGrafanaInstance请求参数结构体
|
11124
11282
|
class ModifyGrafanaInstanceRequest < TencentCloud::Common::AbstractModel
|
11125
11283
|
# @param InstanceId: Grafana 实例 ID,例如:grafana-abcdefgh
|
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.1026
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|