tencentcloud-sdk-cls 3.0.712 → 3.0.714

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdad479ed4d5301091601c349abb7f79498baf2b
4
- data.tar.gz: 89341b4a91b5dee6ecf8cd1d9c9098fd6261c37d
3
+ metadata.gz: 92cba1f521900539384a7502d06f41a8d72c84cc
4
+ data.tar.gz: 6b1ee97794ff1fce64aa46194ef8b5213efba2d2
5
5
  SHA512:
6
- metadata.gz: 6b047ebdbb2637e5dc6a49e23c8b4edede80c346a6a3ba3cb531a33ce98588bae679120a69ea84a6608d0add63e33f95d1318b689b7d52b755cabf07e42fe9e1
7
- data.tar.gz: d4b71940eb8f0526eb0e8a1b0631d7b0c7a611a0788350c7e0acd2338d4986f0ed03c4ade06872079cf43c052898c92eda06a2d4afb8c5fcf6f100412d1cd560
6
+ metadata.gz: d2ce0945a6ff5d0f286a0ced6240dcd1759ac64a5a18cd5963067bea6a6e5cde983dc8007dfe0f1c9586e722be3e9bdb98c7b22331937a9ad13dc94e8d59d5d5
7
+ data.tar.gz: 3460af082e42cb6eff83d2cc8abc70fceddb8afaa407b84d85b65b2d1f240868e8effb01da35dc8135f003b053e26a670cac7caa55e28a128d9bc4f0807b1a51
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.712
1
+ 3.0.714
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 本接口用于创建投递SCF任务
321
+
322
+ # @param request: Request instance for CreateDeliverCloudFunction.
323
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateDeliverCloudFunctionRequest`
324
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateDeliverCloudFunctionResponse`
325
+ def CreateDeliverCloudFunction(request)
326
+ body = send_request('CreateDeliverCloudFunction', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreateDeliverCloudFunctionResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 本接口仅创建下载任务,任务返回的下载地址,请用户调用DescribeExports查看任务列表。其中有下载地址CosPath参数。参考文档https://cloud.tencent.com/document/product/614/56449
321
345
 
322
346
  # @param request: Request instance for CreateExport.
@@ -1435,40 +1435,30 @@ module TencentCloud
1435
1435
  # @type MonitorTime: :class:`Tencentcloud::Cls.v20201016.models.MonitorTime`
1436
1436
  # @param TriggerCount: 持续周期。持续满足触发条件TriggerCount个周期后,再进行告警;最小值为1,最大值为10。
1437
1437
  # @type TriggerCount: Integer
1438
- # @param AlarmPeriod: 告警重复的周期。
1439
-
1440
- # 单位是分钟。
1441
-
1442
- # 取值范围是0~1440。
1438
+ # @param AlarmPeriod: 告警重复的周期,单位是分钟。取值范围是0~1440。
1443
1439
  # @type AlarmPeriod: Integer
1444
1440
  # @param AlarmNoticeIds: 关联的告警通知模板列表。
1445
1441
  # @type AlarmNoticeIds: Array
1446
- # @param Condition: 触发条件。
1447
-
1442
+ # @param Condition: 触发条件
1448
1443
  # 注意:
1449
-
1450
1444
  # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
1451
1445
  # @type Condition: String
1452
- # @param AlarmLevel: 告警级别。
1453
-
1446
+ # @param AlarmLevel: 告警级别
1454
1447
  # 0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
1455
-
1456
1448
  # 注意:
1457
1449
  # - 不填则默认为0。
1458
1450
  # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
1459
1451
  # @type AlarmLevel: Integer
1460
- # @param MultiConditions: 多触发条件。
1461
-
1452
+ # @param MultiConditions: 多触发条件
1462
1453
  # 注意:
1463
1454
  # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
1464
1455
 
1465
1456
 
1466
1457
  # @type MultiConditions: Array
1467
1458
  # @param Status: 是否开启告警策略。
1468
-
1469
1459
  # 默认值为true
1470
1460
  # @type Status: Boolean
1471
- # @param Enable: 是否开启告警策略。默认值为true
1461
+ # @param Enable: 该参数已废弃,请使用Status参数控制是否开启告警策略。
1472
1462
  # @type Enable: Boolean
1473
1463
  # @param MessageTemplate: 用户自定义告警内容
1474
1464
  # @type MessageTemplate: String
@@ -1477,7 +1467,6 @@ module TencentCloud
1477
1467
  # @param Analysis: 多维分析
1478
1468
  # @type Analysis: Array
1479
1469
  # @param GroupTriggerStatus: 分组触发状态。
1480
-
1481
1470
  # 默认值false
1482
1471
  # @type GroupTriggerStatus: Boolean
1483
1472
  # @param GroupTriggerCondition: 分组触发条件。
@@ -1487,17 +1476,12 @@ module TencentCloud
1487
1476
  # 最大支持10个标签键值对,并且不能有重复的键值对。
1488
1477
  # @type Tags: Array
1489
1478
  # @param MonitorObjectType: 监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。
1490
-
1491
1479
  # 不填则默认为0。
1492
-
1493
1480
  # 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。
1494
1481
  # @type MonitorObjectType: Integer
1495
1482
  # @param Classifications: 告警附加分类信息列表。
1496
-
1497
1483
  # Classifications元素个数不能超过20个。
1498
-
1499
- # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,字符规则 ^[a-z]([a-z0-9_]{0,49})$。
1500
-
1484
+ # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 `^[a-z]([a-z0-9_]{0,49})$`。
1501
1485
  # Classifications元素的Value长度不能超过200个字符。
1502
1486
  # @type Classifications: Array
1503
1487
 
@@ -2019,6 +2003,58 @@ module TencentCloud
2019
2003
  end
2020
2004
  end
2021
2005
 
2006
+ # CreateDeliverCloudFunction请求参数结构体
2007
+ class CreateDeliverCloudFunctionRequest < TencentCloud::Common::AbstractModel
2008
+ # @param TopicId: 投递规则属于的 topic id
2009
+ # @type TopicId: String
2010
+ # @param FunctionName: 投递的云函数名字
2011
+ # @type FunctionName: String
2012
+ # @param Namespace: 命名空间
2013
+ # @type Namespace: String
2014
+ # @param Qualifier: 函数版本
2015
+ # @type Qualifier: String
2016
+ # @param Timeout: 投递最长等待时间,单位:秒
2017
+ # @type Timeout: Integer
2018
+ # @param MaxMsgNum: 投递最大消息数
2019
+ # @type MaxMsgNum: Integer
2020
+
2021
+ attr_accessor :TopicId, :FunctionName, :Namespace, :Qualifier, :Timeout, :MaxMsgNum
2022
+
2023
+ def initialize(topicid=nil, functionname=nil, namespace=nil, qualifier=nil, timeout=nil, maxmsgnum=nil)
2024
+ @TopicId = topicid
2025
+ @FunctionName = functionname
2026
+ @Namespace = namespace
2027
+ @Qualifier = qualifier
2028
+ @Timeout = timeout
2029
+ @MaxMsgNum = maxmsgnum
2030
+ end
2031
+
2032
+ def deserialize(params)
2033
+ @TopicId = params['TopicId']
2034
+ @FunctionName = params['FunctionName']
2035
+ @Namespace = params['Namespace']
2036
+ @Qualifier = params['Qualifier']
2037
+ @Timeout = params['Timeout']
2038
+ @MaxMsgNum = params['MaxMsgNum']
2039
+ end
2040
+ end
2041
+
2042
+ # CreateDeliverCloudFunction返回参数结构体
2043
+ class CreateDeliverCloudFunctionResponse < TencentCloud::Common::AbstractModel
2044
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2045
+ # @type RequestId: String
2046
+
2047
+ attr_accessor :RequestId
2048
+
2049
+ def initialize(requestid=nil)
2050
+ @RequestId = requestid
2051
+ end
2052
+
2053
+ def deserialize(params)
2054
+ @RequestId = params['RequestId']
2055
+ end
2056
+ end
2057
+
2022
2058
  # CreateExport请求参数结构体
2023
2059
  class CreateExportRequest < TencentCloud::Common::AbstractModel
2024
2060
  # @param TopicId: 日志主题ID
@@ -6520,7 +6556,7 @@ module TencentCloud
6520
6556
  # @type AlarmTargets: Array
6521
6557
  # @param Status: 是否开启告警策略。
6522
6558
  # @type Status: Boolean
6523
- # @param Enable: 是否开启告警策略。默认值为true
6559
+ # @param Enable: 该参数已废弃,请使用Status参数控制是否开启告警策略。
6524
6560
  # @type Enable: Boolean
6525
6561
  # @param MessageTemplate: 用户自定义告警内容
6526
6562
  # @type MessageTemplate: String
@@ -8211,13 +8247,13 @@ module TencentCloud
8211
8247
  # @param MetricName: 指标名称
8212
8248
  # @type MetricName: String
8213
8249
  # @param MetricNames: 指标名称
8214
- # BizType为1时,优先使用MetricNames字段信息。多指标只能填充到MetricNames字段,单指标建议填充到MetricNames字段
8250
+ # BizType为1时,优先使用MetricNames字段多指标只能填充到MetricNames字段,单指标建议填充到MetricName字段
8215
8251
  # @type MetricNames: Array
8216
- # @param MetricLabels: 指标项
8252
+ # @param MetricLabels: 指标标签,从SQL结果字段中选择,一般是分组(group by) 的字段。
8217
8253
  # @type MetricLabels: Array
8218
- # @param CustomTime: 自定义时间
8254
+ # @param CustomTime: 指标时间戳,默认值为SQL查询时间范围的左侧时间点,您也可以指定其他字段(类型为uinx时间,精度毫秒)为指标时间戳。
8219
8255
  # @type CustomTime: String
8220
- # @param CustomMetricLabels: 自定义标签
8256
+ # @param CustomMetricLabels: 除了MetricLabels,您还可以使用该参数,为指标补充静态的标签。
8221
8257
  # @type CustomMetricLabels: Array
8222
8258
 
8223
8259
  attr_accessor :TopicId, :Region, :BizType, :MetricName, :MetricNames, :MetricLabels, :CustomTime, :CustomMetricLabels
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.712
4
+ version: 3.0.714
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-11-24 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common