tencentcloud-sdk-apm 3.0.1090 → 3.0.1091

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: 4671a0c295608502a8c838950fa79e5caa955971
4
- data.tar.gz: 697b0f7b59d739c3d78c12dbe880ce364e2974b9
3
+ metadata.gz: 7254ef0566eb6f81ea771563a12056659d5d8465
4
+ data.tar.gz: 2fa24a32dd062b0f3271380f08f209d5597b8ae8
5
5
  SHA512:
6
- metadata.gz: 4f12899b67c168de0123fb37e35fc50d72aba230d30c16694e4accf1cd1172959b50c9fd5dbe623aaa85329751a29def76c475ea8827422af3a6735e01d47766
7
- data.tar.gz: f0804deb093b69267fe2017059e25448965816190c6ef4d1ba790f87b647d202fcb1d0f4ad17c444295a3b3f15e8924dca6ea4d7fd5177aeec7298b41c79f2c5
6
+ metadata.gz: 050ba634b11c005ff2ec6b9e3798605674dfa3e34aa1c90fc56780c518e993b2f38834d2fd4c0c281192580a30d537334c8f12d433f20e20c69ccc9a2788065a
7
+ data.tar.gz: 969e4508ba04f3a08ef8163abc486f10fa2df1f048edacdbb31c39d25a7a14a1a8a91b6b421d86449135b7308e8a43251ffaeed71cabfe719982f5c5184d825c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1090
1
+ 3.0.1091
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建事件任务
57
+
58
+ # @param request: Request instance for CreateProfileTask.
59
+ # @type request: :class:`Tencentcloud::apm::V20210622::CreateProfileTaskRequest`
60
+ # @rtype: :class:`Tencentcloud::apm::V20210622::CreateProfileTaskResponse`
61
+ def CreateProfileTask(request)
62
+ body = send_request('CreateProfileTask', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateProfileTaskResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 获取 APM 接入点
57
81
 
58
82
  # @param request: Request instance for DescribeApmAgent.
@@ -554,6 +554,70 @@ module TencentCloud
554
554
  end
555
555
  end
556
556
 
557
+ # CreateProfileTask请求参数结构体
558
+ class CreateProfileTaskRequest < TencentCloud::Common::AbstractModel
559
+ # @param ServiceName: 应用名称
560
+ # @type ServiceName: String
561
+ # @param InstanceId: APM业务系统ID
562
+ # @type InstanceId: String
563
+ # @param ServiceInstance: 应用实例(在线)
564
+ # @type ServiceInstance: String
565
+ # @param Event: 事件类型(cpu、alloc)
566
+ # @type Event: String
567
+ # @param Duration: 任务持续时长(单位:毫秒),范围限制在5~180秒
568
+ # @type Duration: Integer
569
+ # @param AllTimes: 执行次数,范围限制在1~100次
570
+ # @type AllTimes: Integer
571
+ # @param StartTime: 开始时间戳,0代表从当前开始(单位:秒)
572
+ # @type StartTime: Integer
573
+ # @param TaskInterval: 任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
574
+ # @type TaskInterval: Integer
575
+
576
+ attr_accessor :ServiceName, :InstanceId, :ServiceInstance, :Event, :Duration, :AllTimes, :StartTime, :TaskInterval
577
+
578
+ def initialize(servicename=nil, instanceid=nil, serviceinstance=nil, event=nil, duration=nil, alltimes=nil, starttime=nil, taskinterval=nil)
579
+ @ServiceName = servicename
580
+ @InstanceId = instanceid
581
+ @ServiceInstance = serviceinstance
582
+ @Event = event
583
+ @Duration = duration
584
+ @AllTimes = alltimes
585
+ @StartTime = starttime
586
+ @TaskInterval = taskinterval
587
+ end
588
+
589
+ def deserialize(params)
590
+ @ServiceName = params['ServiceName']
591
+ @InstanceId = params['InstanceId']
592
+ @ServiceInstance = params['ServiceInstance']
593
+ @Event = params['Event']
594
+ @Duration = params['Duration']
595
+ @AllTimes = params['AllTimes']
596
+ @StartTime = params['StartTime']
597
+ @TaskInterval = params['TaskInterval']
598
+ end
599
+ end
600
+
601
+ # CreateProfileTask返回参数结构体
602
+ class CreateProfileTaskResponse < TencentCloud::Common::AbstractModel
603
+ # @param TaskId: 任务ID
604
+ # @type TaskId: Integer
605
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
606
+ # @type RequestId: String
607
+
608
+ attr_accessor :TaskId, :RequestId
609
+
610
+ def initialize(taskid=nil, requestid=nil)
611
+ @TaskId = taskid
612
+ @RequestId = requestid
613
+ end
614
+
615
+ def deserialize(params)
616
+ @TaskId = params['TaskId']
617
+ @RequestId = params['RequestId']
618
+ end
619
+ end
620
+
557
621
  # DescribeApmAgent请求参数结构体
558
622
  class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
559
623
  # @param InstanceId: 业务系统 ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1090
4
+ version: 3.0.1091
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-06-27 00:00:00.000000000 Z
11
+ date: 2025-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common