tencentcloud-sdk-apm 3.0.1002 → 3.0.1004

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: b353f9534973f71b9a856539f64c7964b85bf1bd
4
- data.tar.gz: 0c4b84d003fcdebd0a45cec2b88855e046c93801
3
+ metadata.gz: bd11efe3b20b8b654a219b38a28e0b710eda5e1c
4
+ data.tar.gz: 472d2472fc085213b98ddbfe86670e5314b26fd7
5
5
  SHA512:
6
- metadata.gz: f15acbd112dc7ddb1bd28b2bf0b0e5282cab3cf409363747ab93b216410cfc37730ed7080580ef4e356c30807814c96779bea71f11d433248053f974a9738054
7
- data.tar.gz: 43fffe887ebc5afb972e6f74c71b0364e0a3110c68e7e493237273248ff3b2cd4576cab07a36a3d5a56af079a05dc33dac10c94f4e162d0249bf4cc222dc3555
6
+ metadata.gz: 323ab07d59cc63a1345e9ebfac6d856def30bb15960bfcda10b0b02ad915e12c39ec0552fcb60dc456fb5961d4d292b13df4aeac3373e063c9bdf19cad1de239
7
+ data.tar.gz: 0cef00c31e2ffee21f2cf5f961365a807ecc23c8ffb105a6696f12b1b653bec62b59c855c3a23caa6025b124144cde2ecbb47ba6f314a6465c32b4b859f36266
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1002
1
+ 3.0.1004
@@ -150,6 +150,30 @@ module TencentCloud
150
150
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
151
151
  end
152
152
 
153
+ # 通用查询 OpenTelemetry 调用链列表
154
+
155
+ # @param request: Request instance for DescribeGeneralOTSpanList.
156
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeGeneralOTSpanListRequest`
157
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeGeneralOTSpanListResponse`
158
+ def DescribeGeneralOTSpanList(request)
159
+ body = send_request('DescribeGeneralOTSpanList', request.serialize)
160
+ response = JSON.parse(body)
161
+ if response['Response'].key?('Error') == false
162
+ model = DescribeGeneralOTSpanListResponse.new
163
+ model.deserialize(response['Response'])
164
+ model
165
+ else
166
+ code = response['Response']['Error']['Code']
167
+ message = response['Response']['Error']['Message']
168
+ reqid = response['Response']['RequestId']
169
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
170
+ end
171
+ rescue TencentCloud::Common::TencentCloudSDKException => e
172
+ raise e
173
+ rescue StandardError => e
174
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
175
+ end
176
+
153
177
  # 通用查询调用链列表
154
178
 
155
179
  # @param request: Request instance for DescribeGeneralSpanList.
@@ -248,7 +248,8 @@ module TencentCloud
248
248
  # @type Name: String
249
249
  # @param Description: 业务系统描述信息
250
250
  # @type Description: String
251
- # @param Status: 业务系统状态
251
+ # @param Status: 业务系统状态。{
252
+ # 1: 初始化中; 2: 运行中; 4: 限流}
252
253
  # @type Status: Integer
253
254
  # @param Region: 业务系统所属地域
254
255
  # @type Region: String
@@ -314,10 +315,17 @@ module TencentCloud
314
315
  # @type IsInstrumentationVulnerabilityScan: Integer
315
316
  # @param IsSqlInjectionAnalysis: 是否开启 SQL 注入分析(0=关, 1=开)
316
317
  # @type IsSqlInjectionAnalysis: Integer
318
+ # @param StopReason: 限流原因。{
319
+ # 1: 正式版限额;
320
+ # 2: 试用版限额;
321
+ # 4: 试用版到期;
322
+ # 8: 账号欠费
323
+ # }
324
+ # @type StopReason: Integer
317
325
 
318
- attr_accessor :InstanceId, :Name, :Description, :Status, :Region, :Tags, :AppId, :CreateUin, :AmountOfUsedStorage, :ServiceCount, :CountOfReportSpanPerDay, :TraceDuration, :SpanDailyCounters, :BillingInstance, :ErrRateThreshold, :SampleRate, :ErrorSample, :SlowRequestSavedThreshold, :LogRegion, :LogSource, :IsRelatedLog, :LogTopicID, :ClientCount, :TotalCount, :LogSet, :MetricDuration, :CustomShowTags, :PayMode, :PayModeEffective, :ResponseDurationWarningThreshold, :Free, :DefaultTSF, :IsRelatedDashboard, :DashboardTopicID, :IsInstrumentationVulnerabilityScan, :IsSqlInjectionAnalysis
326
+ attr_accessor :InstanceId, :Name, :Description, :Status, :Region, :Tags, :AppId, :CreateUin, :AmountOfUsedStorage, :ServiceCount, :CountOfReportSpanPerDay, :TraceDuration, :SpanDailyCounters, :BillingInstance, :ErrRateThreshold, :SampleRate, :ErrorSample, :SlowRequestSavedThreshold, :LogRegion, :LogSource, :IsRelatedLog, :LogTopicID, :ClientCount, :TotalCount, :LogSet, :MetricDuration, :CustomShowTags, :PayMode, :PayModeEffective, :ResponseDurationWarningThreshold, :Free, :DefaultTSF, :IsRelatedDashboard, :DashboardTopicID, :IsInstrumentationVulnerabilityScan, :IsSqlInjectionAnalysis, :StopReason
319
327
 
320
- def initialize(instanceid=nil, name=nil, description=nil, status=nil, region=nil, tags=nil, appid=nil, createuin=nil, amountofusedstorage=nil, servicecount=nil, countofreportspanperday=nil, traceduration=nil, spandailycounters=nil, billinginstance=nil, errratethreshold=nil, samplerate=nil, errorsample=nil, slowrequestsavedthreshold=nil, logregion=nil, logsource=nil, isrelatedlog=nil, logtopicid=nil, clientcount=nil, totalcount=nil, logset=nil, metricduration=nil, customshowtags=nil, paymode=nil, paymodeeffective=nil, responsedurationwarningthreshold=nil, free=nil, defaulttsf=nil, isrelateddashboard=nil, dashboardtopicid=nil, isinstrumentationvulnerabilityscan=nil, issqlinjectionanalysis=nil)
328
+ def initialize(instanceid=nil, name=nil, description=nil, status=nil, region=nil, tags=nil, appid=nil, createuin=nil, amountofusedstorage=nil, servicecount=nil, countofreportspanperday=nil, traceduration=nil, spandailycounters=nil, billinginstance=nil, errratethreshold=nil, samplerate=nil, errorsample=nil, slowrequestsavedthreshold=nil, logregion=nil, logsource=nil, isrelatedlog=nil, logtopicid=nil, clientcount=nil, totalcount=nil, logset=nil, metricduration=nil, customshowtags=nil, paymode=nil, paymodeeffective=nil, responsedurationwarningthreshold=nil, free=nil, defaulttsf=nil, isrelateddashboard=nil, dashboardtopicid=nil, isinstrumentationvulnerabilityscan=nil, issqlinjectionanalysis=nil, stopreason=nil)
321
329
  @InstanceId = instanceid
322
330
  @Name = name
323
331
  @Description = description
@@ -354,6 +362,7 @@ module TencentCloud
354
362
  @DashboardTopicID = dashboardtopicid
355
363
  @IsInstrumentationVulnerabilityScan = isinstrumentationvulnerabilityscan
356
364
  @IsSqlInjectionAnalysis = issqlinjectionanalysis
365
+ @StopReason = stopreason
357
366
  end
358
367
 
359
368
  def deserialize(params)
@@ -400,6 +409,7 @@ module TencentCloud
400
409
  @DashboardTopicID = params['DashboardTopicID']
401
410
  @IsInstrumentationVulnerabilityScan = params['IsInstrumentationVulnerabilityScan']
402
411
  @IsSqlInjectionAnalysis = params['IsSqlInjectionAnalysis']
412
+ @StopReason = params['StopReason']
403
413
  end
404
414
  end
405
415
 
@@ -786,6 +796,94 @@ module TencentCloud
786
796
  end
787
797
  end
788
798
 
799
+ # DescribeGeneralOTSpanList请求参数结构体
800
+ class DescribeGeneralOTSpanListRequest < TencentCloud::Common::AbstractModel
801
+ # @param InstanceId: 业务系统 ID
802
+ # @type InstanceId: String
803
+ # @param StartTime: Span 查询开始时间戳(单位:秒)
804
+ # @type StartTime: Integer
805
+ # @param EndTime: Span 查询结束时间戳(单位:秒)
806
+ # @type EndTime: Integer
807
+ # @param Filters: 通用过滤参数
808
+ # @type Filters: Array
809
+ # @param OrderBy: 排序
810
+ # 现支持的 Key 有:
811
+
812
+ # - startTime(开始时间)
813
+ # - endTime(结束时间)
814
+ # - duration(响应时间)
815
+
816
+ # 现支持的 Value 有:
817
+
818
+ # - desc(降序排序)
819
+ # - asc(升序排序)
820
+ # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
821
+ # @param BusinessName: 业务自身服务名,控制台用户请填写taw
822
+ # @type BusinessName: String
823
+ # @param Limit: 单页项目个数,默认为10000,合法取值范围为0~10000
824
+ # @type Limit: Integer
825
+ # @param Offset: 分页
826
+ # @type Offset: Integer
827
+
828
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Filters, :OrderBy, :BusinessName, :Limit, :Offset
829
+
830
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, filters=nil, orderby=nil, businessname=nil, limit=nil, offset=nil)
831
+ @InstanceId = instanceid
832
+ @StartTime = starttime
833
+ @EndTime = endtime
834
+ @Filters = filters
835
+ @OrderBy = orderby
836
+ @BusinessName = businessname
837
+ @Limit = limit
838
+ @Offset = offset
839
+ end
840
+
841
+ def deserialize(params)
842
+ @InstanceId = params['InstanceId']
843
+ @StartTime = params['StartTime']
844
+ @EndTime = params['EndTime']
845
+ unless params['Filters'].nil?
846
+ @Filters = []
847
+ params['Filters'].each do |i|
848
+ filter_tmp = Filter.new
849
+ filter_tmp.deserialize(i)
850
+ @Filters << filter_tmp
851
+ end
852
+ end
853
+ unless params['OrderBy'].nil?
854
+ @OrderBy = OrderBy.new
855
+ @OrderBy.deserialize(params['OrderBy'])
856
+ end
857
+ @BusinessName = params['BusinessName']
858
+ @Limit = params['Limit']
859
+ @Offset = params['Offset']
860
+ end
861
+ end
862
+
863
+ # DescribeGeneralOTSpanList返回参数结构体
864
+ class DescribeGeneralOTSpanListResponse < TencentCloud::Common::AbstractModel
865
+ # @param TotalCount: 总数量
866
+ # @type TotalCount: Integer
867
+ # @param Spans: 装有查询结果 Spans 的 Trace 结构体。OpenTelemetry 标准 Trace 结构体哈希后的字符串,先将 Trace 利用 ptrace.JSONMarshaler 转换成 Json 字符串,再用 gzip 压缩,最后转换成 base64 标准的字符串。
868
+ # @type Spans: String
869
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
870
+ # @type RequestId: String
871
+
872
+ attr_accessor :TotalCount, :Spans, :RequestId
873
+
874
+ def initialize(totalcount=nil, spans=nil, requestid=nil)
875
+ @TotalCount = totalcount
876
+ @Spans = spans
877
+ @RequestId = requestid
878
+ end
879
+
880
+ def deserialize(params)
881
+ @TotalCount = params['TotalCount']
882
+ @Spans = params['Spans']
883
+ @RequestId = params['RequestId']
884
+ end
885
+ end
886
+
789
887
  # DescribeGeneralSpanList请求参数结构体
790
888
  class DescribeGeneralSpanListRequest < TencentCloud::Common::AbstractModel
791
889
  # @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.1002
4
+ version: 3.0.1004
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-02-20 00:00:00.000000000 Z
11
+ date: 2025-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common