tencentcloud-sdk-python-apm 3.0.1323__tar.gz → 3.0.1325__tar.gz
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.
Potentially problematic release.
This version of tencentcloud-sdk-python-apm might be problematic. Click here for more details.
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/setup.py +1 -1
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/apm/v20210622/apm_client.py +23 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/apm/v20210622/models.py +255 -2
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud_sdk_python_apm.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-apm-3.0.1325/tencentcloud_sdk_python_apm.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-apm-3.0.1323/tencentcloud_sdk_python_apm.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/README.rst +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/setup.cfg +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/apm/__init__.py +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/apm/v20210622/__init__.py +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud/apm/v20210622/errorcodes.py +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud_sdk_python_apm.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud_sdk_python_apm.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-apm-3.0.1323 → tencentcloud-sdk-python-apm-3.0.1325}/tencentcloud_sdk_python_apm.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-apm',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1325"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Apm SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -142,6 +142,29 @@ class ApmClient(AbstractClient):
|
|
|
142
142
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
143
143
|
|
|
144
144
|
|
|
145
|
+
def DescribeGeneralOTSpanList(self, request):
|
|
146
|
+
"""通用查询 OpenTelemetry 调用链列表
|
|
147
|
+
|
|
148
|
+
:param request: Request instance for DescribeGeneralOTSpanList.
|
|
149
|
+
:type request: :class:`tencentcloud.apm.v20210622.models.DescribeGeneralOTSpanListRequest`
|
|
150
|
+
:rtype: :class:`tencentcloud.apm.v20210622.models.DescribeGeneralOTSpanListResponse`
|
|
151
|
+
|
|
152
|
+
"""
|
|
153
|
+
try:
|
|
154
|
+
params = request._serialize()
|
|
155
|
+
headers = request.headers
|
|
156
|
+
body = self.call("DescribeGeneralOTSpanList", params, headers=headers)
|
|
157
|
+
response = json.loads(body)
|
|
158
|
+
model = models.DescribeGeneralOTSpanListResponse()
|
|
159
|
+
model._deserialize(response["Response"])
|
|
160
|
+
return model
|
|
161
|
+
except Exception as e:
|
|
162
|
+
if isinstance(e, TencentCloudSDKException):
|
|
163
|
+
raise
|
|
164
|
+
else:
|
|
165
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
166
|
+
|
|
167
|
+
|
|
145
168
|
def DescribeGeneralSpanList(self, request):
|
|
146
169
|
"""通用查询调用链列表
|
|
147
170
|
|
|
@@ -680,7 +680,8 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
680
680
|
:type Name: str
|
|
681
681
|
:param _Description: 业务系统描述信息
|
|
682
682
|
:type Description: str
|
|
683
|
-
:param _Status:
|
|
683
|
+
:param _Status: 业务系统状态。{
|
|
684
|
+
1: 初始化中; 2: 运行中; 4: 限流}
|
|
684
685
|
:type Status: int
|
|
685
686
|
:param _Region: 业务系统所属地域
|
|
686
687
|
:type Region: str
|
|
@@ -746,6 +747,13 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
746
747
|
:type IsInstrumentationVulnerabilityScan: int
|
|
747
748
|
:param _IsSqlInjectionAnalysis: 是否开启 SQL 注入分析(0=关, 1=开)
|
|
748
749
|
:type IsSqlInjectionAnalysis: int
|
|
750
|
+
:param _StopReason: 限流原因。{
|
|
751
|
+
1: 正式版限额;
|
|
752
|
+
2: 试用版限额;
|
|
753
|
+
4: 试用版到期;
|
|
754
|
+
8: 账号欠费
|
|
755
|
+
}
|
|
756
|
+
:type StopReason: int
|
|
749
757
|
"""
|
|
750
758
|
self._InstanceId = None
|
|
751
759
|
self._Name = None
|
|
@@ -783,6 +791,7 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
783
791
|
self._DashboardTopicID = None
|
|
784
792
|
self._IsInstrumentationVulnerabilityScan = None
|
|
785
793
|
self._IsSqlInjectionAnalysis = None
|
|
794
|
+
self._StopReason = None
|
|
786
795
|
|
|
787
796
|
@property
|
|
788
797
|
def InstanceId(self):
|
|
@@ -819,7 +828,8 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
819
828
|
|
|
820
829
|
@property
|
|
821
830
|
def Status(self):
|
|
822
|
-
"""
|
|
831
|
+
"""业务系统状态。{
|
|
832
|
+
1: 初始化中; 2: 运行中; 4: 限流}
|
|
823
833
|
:rtype: int
|
|
824
834
|
"""
|
|
825
835
|
return self._Status
|
|
@@ -1180,6 +1190,22 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
1180
1190
|
def IsSqlInjectionAnalysis(self, IsSqlInjectionAnalysis):
|
|
1181
1191
|
self._IsSqlInjectionAnalysis = IsSqlInjectionAnalysis
|
|
1182
1192
|
|
|
1193
|
+
@property
|
|
1194
|
+
def StopReason(self):
|
|
1195
|
+
"""限流原因。{
|
|
1196
|
+
1: 正式版限额;
|
|
1197
|
+
2: 试用版限额;
|
|
1198
|
+
4: 试用版到期;
|
|
1199
|
+
8: 账号欠费
|
|
1200
|
+
}
|
|
1201
|
+
:rtype: int
|
|
1202
|
+
"""
|
|
1203
|
+
return self._StopReason
|
|
1204
|
+
|
|
1205
|
+
@StopReason.setter
|
|
1206
|
+
def StopReason(self, StopReason):
|
|
1207
|
+
self._StopReason = StopReason
|
|
1208
|
+
|
|
1183
1209
|
|
|
1184
1210
|
def _deserialize(self, params):
|
|
1185
1211
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -1223,6 +1249,7 @@ class ApmInstanceDetail(AbstractModel):
|
|
|
1223
1249
|
self._DashboardTopicID = params.get("DashboardTopicID")
|
|
1224
1250
|
self._IsInstrumentationVulnerabilityScan = params.get("IsInstrumentationVulnerabilityScan")
|
|
1225
1251
|
self._IsSqlInjectionAnalysis = params.get("IsSqlInjectionAnalysis")
|
|
1252
|
+
self._StopReason = params.get("StopReason")
|
|
1226
1253
|
memeber_set = set(params.keys())
|
|
1227
1254
|
for name, value in vars(self).items():
|
|
1228
1255
|
property_name = name[1:]
|
|
@@ -2149,6 +2176,232 @@ class DescribeGeneralMetricDataResponse(AbstractModel):
|
|
|
2149
2176
|
self._RequestId = params.get("RequestId")
|
|
2150
2177
|
|
|
2151
2178
|
|
|
2179
|
+
class DescribeGeneralOTSpanListRequest(AbstractModel):
|
|
2180
|
+
"""DescribeGeneralOTSpanList请求参数结构体
|
|
2181
|
+
|
|
2182
|
+
"""
|
|
2183
|
+
|
|
2184
|
+
def __init__(self):
|
|
2185
|
+
r"""
|
|
2186
|
+
:param _InstanceId: 业务系统 ID
|
|
2187
|
+
:type InstanceId: str
|
|
2188
|
+
:param _StartTime: Span 查询开始时间戳(单位:秒)
|
|
2189
|
+
:type StartTime: int
|
|
2190
|
+
:param _EndTime: Span 查询结束时间戳(单位:秒)
|
|
2191
|
+
:type EndTime: int
|
|
2192
|
+
:param _Filters: 通用过滤参数
|
|
2193
|
+
:type Filters: list of Filter
|
|
2194
|
+
:param _OrderBy: 排序
|
|
2195
|
+
现支持的 Key 有:
|
|
2196
|
+
|
|
2197
|
+
- startTime(开始时间)
|
|
2198
|
+
- endTime(结束时间)
|
|
2199
|
+
- duration(响应时间)
|
|
2200
|
+
|
|
2201
|
+
现支持的 Value 有:
|
|
2202
|
+
|
|
2203
|
+
- desc(降序排序)
|
|
2204
|
+
- asc(升序排序)
|
|
2205
|
+
:type OrderBy: :class:`tencentcloud.apm.v20210622.models.OrderBy`
|
|
2206
|
+
:param _BusinessName: 业务自身服务名,控制台用户请填写taw
|
|
2207
|
+
:type BusinessName: str
|
|
2208
|
+
:param _Limit: 单页项目个数,默认为10000,合法取值范围为0~10000
|
|
2209
|
+
:type Limit: int
|
|
2210
|
+
:param _Offset: 分页
|
|
2211
|
+
:type Offset: int
|
|
2212
|
+
"""
|
|
2213
|
+
self._InstanceId = None
|
|
2214
|
+
self._StartTime = None
|
|
2215
|
+
self._EndTime = None
|
|
2216
|
+
self._Filters = None
|
|
2217
|
+
self._OrderBy = None
|
|
2218
|
+
self._BusinessName = None
|
|
2219
|
+
self._Limit = None
|
|
2220
|
+
self._Offset = None
|
|
2221
|
+
|
|
2222
|
+
@property
|
|
2223
|
+
def InstanceId(self):
|
|
2224
|
+
"""业务系统 ID
|
|
2225
|
+
:rtype: str
|
|
2226
|
+
"""
|
|
2227
|
+
return self._InstanceId
|
|
2228
|
+
|
|
2229
|
+
@InstanceId.setter
|
|
2230
|
+
def InstanceId(self, InstanceId):
|
|
2231
|
+
self._InstanceId = InstanceId
|
|
2232
|
+
|
|
2233
|
+
@property
|
|
2234
|
+
def StartTime(self):
|
|
2235
|
+
"""Span 查询开始时间戳(单位:秒)
|
|
2236
|
+
:rtype: int
|
|
2237
|
+
"""
|
|
2238
|
+
return self._StartTime
|
|
2239
|
+
|
|
2240
|
+
@StartTime.setter
|
|
2241
|
+
def StartTime(self, StartTime):
|
|
2242
|
+
self._StartTime = StartTime
|
|
2243
|
+
|
|
2244
|
+
@property
|
|
2245
|
+
def EndTime(self):
|
|
2246
|
+
"""Span 查询结束时间戳(单位:秒)
|
|
2247
|
+
:rtype: int
|
|
2248
|
+
"""
|
|
2249
|
+
return self._EndTime
|
|
2250
|
+
|
|
2251
|
+
@EndTime.setter
|
|
2252
|
+
def EndTime(self, EndTime):
|
|
2253
|
+
self._EndTime = EndTime
|
|
2254
|
+
|
|
2255
|
+
@property
|
|
2256
|
+
def Filters(self):
|
|
2257
|
+
"""通用过滤参数
|
|
2258
|
+
:rtype: list of Filter
|
|
2259
|
+
"""
|
|
2260
|
+
return self._Filters
|
|
2261
|
+
|
|
2262
|
+
@Filters.setter
|
|
2263
|
+
def Filters(self, Filters):
|
|
2264
|
+
self._Filters = Filters
|
|
2265
|
+
|
|
2266
|
+
@property
|
|
2267
|
+
def OrderBy(self):
|
|
2268
|
+
"""排序
|
|
2269
|
+
现支持的 Key 有:
|
|
2270
|
+
|
|
2271
|
+
- startTime(开始时间)
|
|
2272
|
+
- endTime(结束时间)
|
|
2273
|
+
- duration(响应时间)
|
|
2274
|
+
|
|
2275
|
+
现支持的 Value 有:
|
|
2276
|
+
|
|
2277
|
+
- desc(降序排序)
|
|
2278
|
+
- asc(升序排序)
|
|
2279
|
+
:rtype: :class:`tencentcloud.apm.v20210622.models.OrderBy`
|
|
2280
|
+
"""
|
|
2281
|
+
return self._OrderBy
|
|
2282
|
+
|
|
2283
|
+
@OrderBy.setter
|
|
2284
|
+
def OrderBy(self, OrderBy):
|
|
2285
|
+
self._OrderBy = OrderBy
|
|
2286
|
+
|
|
2287
|
+
@property
|
|
2288
|
+
def BusinessName(self):
|
|
2289
|
+
"""业务自身服务名,控制台用户请填写taw
|
|
2290
|
+
:rtype: str
|
|
2291
|
+
"""
|
|
2292
|
+
return self._BusinessName
|
|
2293
|
+
|
|
2294
|
+
@BusinessName.setter
|
|
2295
|
+
def BusinessName(self, BusinessName):
|
|
2296
|
+
self._BusinessName = BusinessName
|
|
2297
|
+
|
|
2298
|
+
@property
|
|
2299
|
+
def Limit(self):
|
|
2300
|
+
"""单页项目个数,默认为10000,合法取值范围为0~10000
|
|
2301
|
+
:rtype: int
|
|
2302
|
+
"""
|
|
2303
|
+
return self._Limit
|
|
2304
|
+
|
|
2305
|
+
@Limit.setter
|
|
2306
|
+
def Limit(self, Limit):
|
|
2307
|
+
self._Limit = Limit
|
|
2308
|
+
|
|
2309
|
+
@property
|
|
2310
|
+
def Offset(self):
|
|
2311
|
+
"""分页
|
|
2312
|
+
:rtype: int
|
|
2313
|
+
"""
|
|
2314
|
+
return self._Offset
|
|
2315
|
+
|
|
2316
|
+
@Offset.setter
|
|
2317
|
+
def Offset(self, Offset):
|
|
2318
|
+
self._Offset = Offset
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
def _deserialize(self, params):
|
|
2322
|
+
self._InstanceId = params.get("InstanceId")
|
|
2323
|
+
self._StartTime = params.get("StartTime")
|
|
2324
|
+
self._EndTime = params.get("EndTime")
|
|
2325
|
+
if params.get("Filters") is not None:
|
|
2326
|
+
self._Filters = []
|
|
2327
|
+
for item in params.get("Filters"):
|
|
2328
|
+
obj = Filter()
|
|
2329
|
+
obj._deserialize(item)
|
|
2330
|
+
self._Filters.append(obj)
|
|
2331
|
+
if params.get("OrderBy") is not None:
|
|
2332
|
+
self._OrderBy = OrderBy()
|
|
2333
|
+
self._OrderBy._deserialize(params.get("OrderBy"))
|
|
2334
|
+
self._BusinessName = params.get("BusinessName")
|
|
2335
|
+
self._Limit = params.get("Limit")
|
|
2336
|
+
self._Offset = params.get("Offset")
|
|
2337
|
+
memeber_set = set(params.keys())
|
|
2338
|
+
for name, value in vars(self).items():
|
|
2339
|
+
property_name = name[1:]
|
|
2340
|
+
if property_name in memeber_set:
|
|
2341
|
+
memeber_set.remove(property_name)
|
|
2342
|
+
if len(memeber_set) > 0:
|
|
2343
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
class DescribeGeneralOTSpanListResponse(AbstractModel):
|
|
2348
|
+
"""DescribeGeneralOTSpanList返回参数结构体
|
|
2349
|
+
|
|
2350
|
+
"""
|
|
2351
|
+
|
|
2352
|
+
def __init__(self):
|
|
2353
|
+
r"""
|
|
2354
|
+
:param _TotalCount: 总数量
|
|
2355
|
+
:type TotalCount: int
|
|
2356
|
+
:param _Spans: 装有查询结果 Spans 的 Trace 结构体。OpenTelemetry 标准 Trace 结构体哈希后的字符串,先将 Trace 利用 ptrace.JSONMarshaler 转换成 Json 字符串,再用 gzip 压缩,最后转换成 base64 标准的字符串。
|
|
2357
|
+
:type Spans: str
|
|
2358
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2359
|
+
:type RequestId: str
|
|
2360
|
+
"""
|
|
2361
|
+
self._TotalCount = None
|
|
2362
|
+
self._Spans = None
|
|
2363
|
+
self._RequestId = None
|
|
2364
|
+
|
|
2365
|
+
@property
|
|
2366
|
+
def TotalCount(self):
|
|
2367
|
+
"""总数量
|
|
2368
|
+
:rtype: int
|
|
2369
|
+
"""
|
|
2370
|
+
return self._TotalCount
|
|
2371
|
+
|
|
2372
|
+
@TotalCount.setter
|
|
2373
|
+
def TotalCount(self, TotalCount):
|
|
2374
|
+
self._TotalCount = TotalCount
|
|
2375
|
+
|
|
2376
|
+
@property
|
|
2377
|
+
def Spans(self):
|
|
2378
|
+
"""装有查询结果 Spans 的 Trace 结构体。OpenTelemetry 标准 Trace 结构体哈希后的字符串,先将 Trace 利用 ptrace.JSONMarshaler 转换成 Json 字符串,再用 gzip 压缩,最后转换成 base64 标准的字符串。
|
|
2379
|
+
:rtype: str
|
|
2380
|
+
"""
|
|
2381
|
+
return self._Spans
|
|
2382
|
+
|
|
2383
|
+
@Spans.setter
|
|
2384
|
+
def Spans(self, Spans):
|
|
2385
|
+
self._Spans = Spans
|
|
2386
|
+
|
|
2387
|
+
@property
|
|
2388
|
+
def RequestId(self):
|
|
2389
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2390
|
+
:rtype: str
|
|
2391
|
+
"""
|
|
2392
|
+
return self._RequestId
|
|
2393
|
+
|
|
2394
|
+
@RequestId.setter
|
|
2395
|
+
def RequestId(self, RequestId):
|
|
2396
|
+
self._RequestId = RequestId
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
def _deserialize(self, params):
|
|
2400
|
+
self._TotalCount = params.get("TotalCount")
|
|
2401
|
+
self._Spans = params.get("Spans")
|
|
2402
|
+
self._RequestId = params.get("RequestId")
|
|
2403
|
+
|
|
2404
|
+
|
|
2152
2405
|
class DescribeGeneralSpanListRequest(AbstractModel):
|
|
2153
2406
|
"""DescribeGeneralSpanList请求参数结构体
|
|
2154
2407
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1325
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1323
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|