tencentcloud-sdk-apm 3.0.663 → 3.0.664
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210622/client.rb +24 -0
- data/lib/v20210622/models.rb +282 -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: e3ef31b00edbd5a0a397c821f812e727fd50130d
|
4
|
+
data.tar.gz: 4407797dc654986469cd804b09b0e57dd9a068c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 018d35d79565f0b206f52c888b0b34163dcef9de4df7a010a0b75aea6f68babd680ede004bb26759fc1021bee8978e988b413e0b44c2696585fa910473041ffa
|
7
|
+
data.tar.gz: 98e042edeb43ce47e5b315283120a9ecd874f7ca30e6f47c48ab3a470ebf5d66b9a74b59da94a0f16b90f1a28a55b063e8e0c30f349d56b089807a250311cc52
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.664
|
data/lib/v20210622/client.rb
CHANGED
@@ -126,6 +126,30 @@ module TencentCloud
|
|
126
126
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
127
127
|
end
|
128
128
|
|
129
|
+
# 通用查询调用链列表
|
130
|
+
|
131
|
+
# @param request: Request instance for DescribeGeneralSpanList.
|
132
|
+
# @type request: :class:`Tencentcloud::apm::V20210622::DescribeGeneralSpanListRequest`
|
133
|
+
# @rtype: :class:`Tencentcloud::apm::V20210622::DescribeGeneralSpanListResponse`
|
134
|
+
def DescribeGeneralSpanList(request)
|
135
|
+
body = send_request('DescribeGeneralSpanList', request.serialize)
|
136
|
+
response = JSON.parse(body)
|
137
|
+
if response['Response'].key?('Error') == false
|
138
|
+
model = DescribeGeneralSpanListResponse.new
|
139
|
+
model.deserialize(response['Response'])
|
140
|
+
model
|
141
|
+
else
|
142
|
+
code = response['Response']['Error']['Code']
|
143
|
+
message = response['Response']['Error']['Message']
|
144
|
+
reqid = response['Response']['RequestId']
|
145
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
146
|
+
end
|
147
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
148
|
+
raise e
|
149
|
+
rescue StandardError => e
|
150
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
151
|
+
end
|
152
|
+
|
129
153
|
# 拉取通用指标列表
|
130
154
|
|
131
155
|
# @param request: Request instance for DescribeMetricRecords.
|
data/lib/v20210622/models.rb
CHANGED
@@ -655,6 +655,91 @@ module TencentCloud
|
|
655
655
|
end
|
656
656
|
end
|
657
657
|
|
658
|
+
# DescribeGeneralSpanList请求参数结构体
|
659
|
+
class DescribeGeneralSpanListRequest < TencentCloud::Common::AbstractModel
|
660
|
+
# @param Offset: 分页
|
661
|
+
# @type Offset: Integer
|
662
|
+
# @param Limit: 列表项个数
|
663
|
+
# @type Limit: Integer
|
664
|
+
# @param OrderBy: 排序
|
665
|
+
# @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
|
666
|
+
# @param StartTime: span查询开始时间戳(单位:秒)
|
667
|
+
# @type StartTime: Integer
|
668
|
+
# @param InstanceId: 实例名
|
669
|
+
# @type InstanceId: String
|
670
|
+
# @param Filters: 通用过滤参数
|
671
|
+
# @type Filters: Array
|
672
|
+
# @param BusinessName: 业务自身服务名
|
673
|
+
# @type BusinessName: String
|
674
|
+
# @param EndTime: span查询结束时间戳(单位:秒)
|
675
|
+
# @type EndTime: Integer
|
676
|
+
|
677
|
+
attr_accessor :Offset, :Limit, :OrderBy, :StartTime, :InstanceId, :Filters, :BusinessName, :EndTime
|
678
|
+
|
679
|
+
def initialize(offset=nil, limit=nil, orderby=nil, starttime=nil, instanceid=nil, filters=nil, businessname=nil, endtime=nil)
|
680
|
+
@Offset = offset
|
681
|
+
@Limit = limit
|
682
|
+
@OrderBy = orderby
|
683
|
+
@StartTime = starttime
|
684
|
+
@InstanceId = instanceid
|
685
|
+
@Filters = filters
|
686
|
+
@BusinessName = businessname
|
687
|
+
@EndTime = endtime
|
688
|
+
end
|
689
|
+
|
690
|
+
def deserialize(params)
|
691
|
+
@Offset = params['Offset']
|
692
|
+
@Limit = params['Limit']
|
693
|
+
unless params['OrderBy'].nil?
|
694
|
+
@OrderBy = OrderBy.new
|
695
|
+
@OrderBy.deserialize(params['OrderBy'])
|
696
|
+
end
|
697
|
+
@StartTime = params['StartTime']
|
698
|
+
@InstanceId = params['InstanceId']
|
699
|
+
unless params['Filters'].nil?
|
700
|
+
@Filters = []
|
701
|
+
params['Filters'].each do |i|
|
702
|
+
filter_tmp = Filter.new
|
703
|
+
filter_tmp.deserialize(i)
|
704
|
+
@Filters << filter_tmp
|
705
|
+
end
|
706
|
+
end
|
707
|
+
@BusinessName = params['BusinessName']
|
708
|
+
@EndTime = params['EndTime']
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
# DescribeGeneralSpanList返回参数结构体
|
713
|
+
class DescribeGeneralSpanListResponse < TencentCloud::Common::AbstractModel
|
714
|
+
# @param TotalCount: 总数量
|
715
|
+
# @type TotalCount: Integer
|
716
|
+
# @param Spans: Span分页列表
|
717
|
+
# @type Spans: Array
|
718
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
719
|
+
# @type RequestId: String
|
720
|
+
|
721
|
+
attr_accessor :TotalCount, :Spans, :RequestId
|
722
|
+
|
723
|
+
def initialize(totalcount=nil, spans=nil, requestid=nil)
|
724
|
+
@TotalCount = totalcount
|
725
|
+
@Spans = spans
|
726
|
+
@RequestId = requestid
|
727
|
+
end
|
728
|
+
|
729
|
+
def deserialize(params)
|
730
|
+
@TotalCount = params['TotalCount']
|
731
|
+
unless params['Spans'].nil?
|
732
|
+
@Spans = []
|
733
|
+
params['Spans'].each do |i|
|
734
|
+
span_tmp = Span.new
|
735
|
+
span_tmp.deserialize(i)
|
736
|
+
@Spans << span_tmp
|
737
|
+
end
|
738
|
+
end
|
739
|
+
@RequestId = params['RequestId']
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
658
743
|
# DescribeMetricRecords请求参数结构体
|
659
744
|
class DescribeMetricRecordsRequest < TencentCloud::Common::AbstractModel
|
660
745
|
# @param Filters: 过滤条件
|
@@ -1101,6 +1186,203 @@ module TencentCloud
|
|
1101
1186
|
end
|
1102
1187
|
end
|
1103
1188
|
|
1189
|
+
# Span对象
|
1190
|
+
|
1191
|
+
class Span < TencentCloud::Common::AbstractModel
|
1192
|
+
# @param TraceID: Trace Id
|
1193
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1194
|
+
# @type TraceID: String
|
1195
|
+
# @param Logs: 日志
|
1196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1197
|
+
# @type Logs: Array
|
1198
|
+
# @param Tags: 标签
|
1199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1200
|
+
# @type Tags: Array
|
1201
|
+
# @param Process: 上报应用服务信息
|
1202
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1203
|
+
# @type Process: :class:`Tencentcloud::Apm.v20210622.models.SpanProcess`
|
1204
|
+
# @param Timestamp: 产生时间戳(毫秒)
|
1205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1206
|
+
# @type Timestamp: Integer
|
1207
|
+
# @param OperationName: Span名称
|
1208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1209
|
+
# @type OperationName: String
|
1210
|
+
# @param References: 关联关系
|
1211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1212
|
+
# @type References: Array
|
1213
|
+
# @param StartTime: 产生时间戳(微秒)
|
1214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1215
|
+
# @type StartTime: Integer
|
1216
|
+
# @param Duration: 持续耗时(微妙)
|
1217
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1218
|
+
# @type Duration: Integer
|
1219
|
+
# @param SpanID: Span Id
|
1220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1221
|
+
# @type SpanID: String
|
1222
|
+
# @param StartTimeMillis: 产生时间戳(毫秒)
|
1223
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1224
|
+
# @type StartTimeMillis: Integer
|
1225
|
+
|
1226
|
+
attr_accessor :TraceID, :Logs, :Tags, :Process, :Timestamp, :OperationName, :References, :StartTime, :Duration, :SpanID, :StartTimeMillis
|
1227
|
+
|
1228
|
+
def initialize(traceid=nil, logs=nil, tags=nil, process=nil, timestamp=nil, operationname=nil, references=nil, starttime=nil, duration=nil, spanid=nil, starttimemillis=nil)
|
1229
|
+
@TraceID = traceid
|
1230
|
+
@Logs = logs
|
1231
|
+
@Tags = tags
|
1232
|
+
@Process = process
|
1233
|
+
@Timestamp = timestamp
|
1234
|
+
@OperationName = operationname
|
1235
|
+
@References = references
|
1236
|
+
@StartTime = starttime
|
1237
|
+
@Duration = duration
|
1238
|
+
@SpanID = spanid
|
1239
|
+
@StartTimeMillis = starttimemillis
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
def deserialize(params)
|
1243
|
+
@TraceID = params['TraceID']
|
1244
|
+
unless params['Logs'].nil?
|
1245
|
+
@Logs = []
|
1246
|
+
params['Logs'].each do |i|
|
1247
|
+
spanlog_tmp = SpanLog.new
|
1248
|
+
spanlog_tmp.deserialize(i)
|
1249
|
+
@Logs << spanlog_tmp
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
unless params['Tags'].nil?
|
1253
|
+
@Tags = []
|
1254
|
+
params['Tags'].each do |i|
|
1255
|
+
spantag_tmp = SpanTag.new
|
1256
|
+
spantag_tmp.deserialize(i)
|
1257
|
+
@Tags << spantag_tmp
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
unless params['Process'].nil?
|
1261
|
+
@Process = SpanProcess.new
|
1262
|
+
@Process.deserialize(params['Process'])
|
1263
|
+
end
|
1264
|
+
@Timestamp = params['Timestamp']
|
1265
|
+
@OperationName = params['OperationName']
|
1266
|
+
unless params['References'].nil?
|
1267
|
+
@References = []
|
1268
|
+
params['References'].each do |i|
|
1269
|
+
spanreference_tmp = SpanReference.new
|
1270
|
+
spanreference_tmp.deserialize(i)
|
1271
|
+
@References << spanreference_tmp
|
1272
|
+
end
|
1273
|
+
end
|
1274
|
+
@StartTime = params['StartTime']
|
1275
|
+
@Duration = params['Duration']
|
1276
|
+
@SpanID = params['SpanID']
|
1277
|
+
@StartTimeMillis = params['StartTimeMillis']
|
1278
|
+
end
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# Span日志部分
|
1282
|
+
|
1283
|
+
class SpanLog < TencentCloud::Common::AbstractModel
|
1284
|
+
# @param Timestamp: 日志时间戳
|
1285
|
+
# @type Timestamp: Integer
|
1286
|
+
# @param Fields: 标签
|
1287
|
+
# @type Fields: Array
|
1288
|
+
|
1289
|
+
attr_accessor :Timestamp, :Fields
|
1290
|
+
|
1291
|
+
def initialize(timestamp=nil, fields=nil)
|
1292
|
+
@Timestamp = timestamp
|
1293
|
+
@Fields = fields
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
def deserialize(params)
|
1297
|
+
@Timestamp = params['Timestamp']
|
1298
|
+
unless params['Fields'].nil?
|
1299
|
+
@Fields = []
|
1300
|
+
params['Fields'].each do |i|
|
1301
|
+
spantag_tmp = SpanTag.new
|
1302
|
+
spantag_tmp.deserialize(i)
|
1303
|
+
@Fields << spantag_tmp
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
# 服务相关信息
|
1310
|
+
class SpanProcess < TencentCloud::Common::AbstractModel
|
1311
|
+
# @param ServiceName: 应用服务名称
|
1312
|
+
# @type ServiceName: String
|
1313
|
+
# @param Tags: Tags 标签数组
|
1314
|
+
# @type Tags: Array
|
1315
|
+
|
1316
|
+
attr_accessor :ServiceName, :Tags
|
1317
|
+
|
1318
|
+
def initialize(servicename=nil, tags=nil)
|
1319
|
+
@ServiceName = servicename
|
1320
|
+
@Tags = tags
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
def deserialize(params)
|
1324
|
+
@ServiceName = params['ServiceName']
|
1325
|
+
unless params['Tags'].nil?
|
1326
|
+
@Tags = []
|
1327
|
+
params['Tags'].each do |i|
|
1328
|
+
spantag_tmp = SpanTag.new
|
1329
|
+
spantag_tmp.deserialize(i)
|
1330
|
+
@Tags << spantag_tmp
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
end
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# Span上下游关联关系
|
1337
|
+
class SpanReference < TencentCloud::Common::AbstractModel
|
1338
|
+
# @param RefType: 关联关系类型
|
1339
|
+
# @type RefType: String
|
1340
|
+
# @param SpanID: Span ID
|
1341
|
+
# @type SpanID: String
|
1342
|
+
# @param TraceID: Trace ID
|
1343
|
+
# @type TraceID: String
|
1344
|
+
|
1345
|
+
attr_accessor :RefType, :SpanID, :TraceID
|
1346
|
+
|
1347
|
+
def initialize(reftype=nil, spanid=nil, traceid=nil)
|
1348
|
+
@RefType = reftype
|
1349
|
+
@SpanID = spanid
|
1350
|
+
@TraceID = traceid
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
def deserialize(params)
|
1354
|
+
@RefType = params['RefType']
|
1355
|
+
@SpanID = params['SpanID']
|
1356
|
+
@TraceID = params['TraceID']
|
1357
|
+
end
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# 标签
|
1361
|
+
class SpanTag < TencentCloud::Common::AbstractModel
|
1362
|
+
# @param Type: 标签类型
|
1363
|
+
# @type Type: String
|
1364
|
+
# @param Key: 标签Key
|
1365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1366
|
+
# @type Key: String
|
1367
|
+
# @param Value: 标签值
|
1368
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1369
|
+
# @type Value: String
|
1370
|
+
|
1371
|
+
attr_accessor :Type, :Key, :Value
|
1372
|
+
|
1373
|
+
def initialize(type=nil, key=nil, value=nil)
|
1374
|
+
@Type = type
|
1375
|
+
@Key = key
|
1376
|
+
@Value = value
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
def deserialize(params)
|
1380
|
+
@Type = params['Type']
|
1381
|
+
@Key = params['Key']
|
1382
|
+
@Value = params['Value']
|
1383
|
+
end
|
1384
|
+
end
|
1385
|
+
|
1104
1386
|
# TerminateApmInstance请求参数结构体
|
1105
1387
|
class TerminateApmInstanceRequest < TencentCloud::Common::AbstractModel
|
1106
1388
|
# @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.
|
4
|
+
version: 3.0.664
|
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-09-
|
11
|
+
date: 2023-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|