tencentcloud-sdk-apm 3.0.533 → 3.0.534

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5defb7b45b92f0d3b09697742d4d7a9134cb2702
4
- data.tar.gz: 3164119d1da86bed88a8743c54702c25826d5634
3
+ metadata.gz: afa9c7441c67372b40841e456e36d8e4009850c4
4
+ data.tar.gz: a3b1d9a261afb90bf8c2004e29d91b2b4f09518f
5
5
  SHA512:
6
- metadata.gz: fd0937d658294b94cca685bdb7b81c904464068ac901791eb55874e78b3bbe193b983336a35cc89ef10a66a3f7a6760d0fc9b8ce201aeb87070773a6eedc1686
7
- data.tar.gz: ab2c33adfbf47501e300d25bf7cf569fec75132cfc475f91dfeabebef98b3d6332684095f4f02dd86339e92748e2d198f81802ab5e3ec2c3802bd19f9703cc1e
6
+ metadata.gz: 747261241d251f08d394df22ccb394dc613f2b1ac854ad05be8e017677de3e4d71eca0008c5611cdb308154f321dd370e4b14a11fc0a323d37dc33d3a73e6207
7
+ data.tar.gz: 69d3708f4ce2b42d1c732226a8163c242e358cae72fd17ecc3896f3d55db029afd51d6c40bdbd101ffd9eca4d26f6f0c5aa0d5745dfa63e9440029257ec93f46
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.533
1
+ 3.0.534
@@ -174,6 +174,54 @@ module TencentCloud
174
174
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
175
175
  end
176
176
 
177
+ # 修改Apm实例接口
178
+
179
+ # @param request: Request instance for ModifyApmInstance.
180
+ # @type request: :class:`Tencentcloud::apm::V20210622::ModifyApmInstanceRequest`
181
+ # @rtype: :class:`Tencentcloud::apm::V20210622::ModifyApmInstanceResponse`
182
+ def ModifyApmInstance(request)
183
+ body = send_request('ModifyApmInstance', request.serialize)
184
+ response = JSON.parse(body)
185
+ if response['Response'].key?('Error') == false
186
+ model = ModifyApmInstanceResponse.new
187
+ model.deserialize(response['Response'])
188
+ model
189
+ else
190
+ code = response['Response']['Error']['Code']
191
+ message = response['Response']['Error']['Message']
192
+ reqid = response['Response']['RequestId']
193
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
194
+ end
195
+ rescue TencentCloud::Common::TencentCloudSDKException => e
196
+ raise e
197
+ rescue StandardError => e
198
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
+ end
200
+
201
+ # apm销毁实例
202
+
203
+ # @param request: Request instance for TerminateApmInstance.
204
+ # @type request: :class:`Tencentcloud::apm::V20210622::TerminateApmInstanceRequest`
205
+ # @rtype: :class:`Tencentcloud::apm::V20210622::TerminateApmInstanceResponse`
206
+ def TerminateApmInstance(request)
207
+ body = send_request('TerminateApmInstance', request.serialize)
208
+ response = JSON.parse(body)
209
+ if response['Response'].key?('Error') == false
210
+ model = TerminateApmInstanceResponse.new
211
+ model.deserialize(response['Response'])
212
+ model
213
+ else
214
+ code = response['Response']['Error']['Code']
215
+ message = response['Response']['Error']['Message']
216
+ reqid = response['Response']['RequestId']
217
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
218
+ end
219
+ rescue TencentCloud::Common::TencentCloudSDKException => e
220
+ raise e
221
+ rescue StandardError => e
222
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
+ end
224
+
177
225
 
178
226
  end
179
227
  end
@@ -924,6 +924,105 @@ module TencentCloud
924
924
  end
925
925
  end
926
926
 
927
+ # ModifyApmInstance请求参数结构体
928
+ class ModifyApmInstanceRequest < TencentCloud::Common::AbstractModel
929
+ # @param InstanceId: 实例ID
930
+ # @type InstanceId: String
931
+ # @param Name: 实例名
932
+ # @type Name: String
933
+ # @param Tags: 标签列表
934
+ # @type Tags: Array
935
+ # @param Description: 实例详情
936
+ # @type Description: String
937
+ # @param TraceDuration: Trace数据保存时长
938
+ # @type TraceDuration: Integer
939
+ # @param OpenBilling: 是否开启计费
940
+ # @type OpenBilling: Boolean
941
+ # @param SpanDailyCounters: 实例上报额度
942
+ # @type SpanDailyCounters: Integer
943
+ # @param ErrRateThreshold: 错误率阈值
944
+ # @type ErrRateThreshold: Integer
945
+ # @param SampleRate: 采样率
946
+ # @type SampleRate: Integer
947
+ # @param ErrorSample: 是否开启错误采样 0 关 1 开
948
+ # @type ErrorSample: Integer
949
+ # @param SlowRequestSavedThreshold: 慢请求阈值
950
+ # @type SlowRequestSavedThreshold: Integer
951
+ # @param IsRelatedLog: 是否开启日志功能 0 关 1 开
952
+ # @type IsRelatedLog: Integer
953
+ # @param LogRegion: 日志地域
954
+ # @type LogRegion: String
955
+ # @param LogTopicID: CLS日志主题ID | ES 索引名
956
+ # @type LogTopicID: String
957
+ # @param LogSet: CLS日志集 | ES集群ID
958
+ # @type LogSet: String
959
+ # @param LogSource: CLS | ES
960
+ # @type LogSource: String
961
+
962
+ attr_accessor :InstanceId, :Name, :Tags, :Description, :TraceDuration, :OpenBilling, :SpanDailyCounters, :ErrRateThreshold, :SampleRate, :ErrorSample, :SlowRequestSavedThreshold, :IsRelatedLog, :LogRegion, :LogTopicID, :LogSet, :LogSource
963
+
964
+ def initialize(instanceid=nil, name=nil, tags=nil, description=nil, traceduration=nil, openbilling=nil, spandailycounters=nil, errratethreshold=nil, samplerate=nil, errorsample=nil, slowrequestsavedthreshold=nil, isrelatedlog=nil, logregion=nil, logtopicid=nil, logset=nil, logsource=nil)
965
+ @InstanceId = instanceid
966
+ @Name = name
967
+ @Tags = tags
968
+ @Description = description
969
+ @TraceDuration = traceduration
970
+ @OpenBilling = openbilling
971
+ @SpanDailyCounters = spandailycounters
972
+ @ErrRateThreshold = errratethreshold
973
+ @SampleRate = samplerate
974
+ @ErrorSample = errorsample
975
+ @SlowRequestSavedThreshold = slowrequestsavedthreshold
976
+ @IsRelatedLog = isrelatedlog
977
+ @LogRegion = logregion
978
+ @LogTopicID = logtopicid
979
+ @LogSet = logset
980
+ @LogSource = logsource
981
+ end
982
+
983
+ def deserialize(params)
984
+ @InstanceId = params['InstanceId']
985
+ @Name = params['Name']
986
+ unless params['Tags'].nil?
987
+ @Tags = []
988
+ params['Tags'].each do |i|
989
+ apmtag_tmp = ApmTag.new
990
+ apmtag_tmp.deserialize(i)
991
+ @Tags << apmtag_tmp
992
+ end
993
+ end
994
+ @Description = params['Description']
995
+ @TraceDuration = params['TraceDuration']
996
+ @OpenBilling = params['OpenBilling']
997
+ @SpanDailyCounters = params['SpanDailyCounters']
998
+ @ErrRateThreshold = params['ErrRateThreshold']
999
+ @SampleRate = params['SampleRate']
1000
+ @ErrorSample = params['ErrorSample']
1001
+ @SlowRequestSavedThreshold = params['SlowRequestSavedThreshold']
1002
+ @IsRelatedLog = params['IsRelatedLog']
1003
+ @LogRegion = params['LogRegion']
1004
+ @LogTopicID = params['LogTopicID']
1005
+ @LogSet = params['LogSet']
1006
+ @LogSource = params['LogSource']
1007
+ end
1008
+ end
1009
+
1010
+ # ModifyApmInstance返回参数结构体
1011
+ class ModifyApmInstanceResponse < TencentCloud::Common::AbstractModel
1012
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1013
+ # @type RequestId: String
1014
+
1015
+ attr_accessor :RequestId
1016
+
1017
+ def initialize(requestid=nil)
1018
+ @RequestId = requestid
1019
+ end
1020
+
1021
+ def deserialize(params)
1022
+ @RequestId = params['RequestId']
1023
+ end
1024
+ end
1025
+
927
1026
  # sql排序字段
928
1027
  class OrderBy < TencentCloud::Common::AbstractModel
929
1028
  # @param Key: 需要排序的字段
@@ -968,6 +1067,38 @@ module TencentCloud
968
1067
  end
969
1068
  end
970
1069
 
1070
+ # TerminateApmInstance请求参数结构体
1071
+ class TerminateApmInstanceRequest < TencentCloud::Common::AbstractModel
1072
+ # @param InstanceId: 实例ID
1073
+ # @type InstanceId: String
1074
+
1075
+ attr_accessor :InstanceId
1076
+
1077
+ def initialize(instanceid=nil)
1078
+ @InstanceId = instanceid
1079
+ end
1080
+
1081
+ def deserialize(params)
1082
+ @InstanceId = params['InstanceId']
1083
+ end
1084
+ end
1085
+
1086
+ # TerminateApmInstance返回参数结构体
1087
+ class TerminateApmInstanceResponse < TencentCloud::Common::AbstractModel
1088
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1089
+ # @type RequestId: String
1090
+
1091
+ attr_accessor :RequestId
1092
+
1093
+ def initialize(requestid=nil)
1094
+ @RequestId = requestid
1095
+ end
1096
+
1097
+ def deserialize(params)
1098
+ @RequestId = params['RequestId']
1099
+ end
1100
+ end
1101
+
971
1102
  end
972
1103
  end
973
1104
  end
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.533
4
+ version: 3.0.534
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-03-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common