tencentcloud-sdk-python-apm 3.0.1408__tar.gz → 3.0.1412__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.1408 → tencentcloud-sdk-python-apm-3.0.1412}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/setup.py +1 -1
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/apm/v20210622/apm_client.py +23 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/apm/v20210622/errorcodes.py +6 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/apm/v20210622/models.py +199 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud_sdk_python_apm.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-apm-3.0.1412/tencentcloud_sdk_python_apm.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-apm-3.0.1408/tencentcloud_sdk_python_apm.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/README.rst +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/setup.cfg +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/apm/__init__.py +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud/apm/v20210622/__init__.py +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud_sdk_python_apm.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/tencentcloud_sdk_python_apm.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-apm-3.0.1408 → tencentcloud-sdk-python-apm-3.0.1412}/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.1412"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Apm SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -49,6 +49,29 @@ class ApmClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def CreateProfileTask(self, request):
|
|
53
|
+
"""创建事件任务
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for CreateProfileTask.
|
|
56
|
+
:type request: :class:`tencentcloud.apm.v20210622.models.CreateProfileTaskRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.apm.v20210622.models.CreateProfileTaskResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("CreateProfileTask", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.CreateProfileTaskResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def DescribeApmAgent(self, request):
|
|
53
76
|
"""获取 APM 接入点
|
|
54
77
|
|
|
@@ -35,6 +35,12 @@ FAILEDOPERATION = 'FailedOperation'
|
|
|
35
35
|
# 访问标签失败。
|
|
36
36
|
FAILEDOPERATION_ACCESSTAGFAIL = 'FailedOperation.AccessTagFail'
|
|
37
37
|
|
|
38
|
+
# 未检测到探针在线
|
|
39
|
+
FAILEDOPERATION_AGENTNOTONLINEERROR = 'FailedOperation.AgentNotOnlineError'
|
|
40
|
+
|
|
41
|
+
# 当前探针版本不支持此功能
|
|
42
|
+
FAILEDOPERATION_AGENTVERSIONNOTSUPPORTERROR = 'FailedOperation.AgentVersionNotSupportError'
|
|
43
|
+
|
|
38
44
|
# token信息不存在。
|
|
39
45
|
FAILEDOPERATION_APMCREDENTIALNOTEXIST = 'FailedOperation.ApmCredentialNotExist'
|
|
40
46
|
|
|
@@ -1621,6 +1621,190 @@ class CreateApmInstanceResponse(AbstractModel):
|
|
|
1621
1621
|
self._RequestId = params.get("RequestId")
|
|
1622
1622
|
|
|
1623
1623
|
|
|
1624
|
+
class CreateProfileTaskRequest(AbstractModel):
|
|
1625
|
+
"""CreateProfileTask请求参数结构体
|
|
1626
|
+
|
|
1627
|
+
"""
|
|
1628
|
+
|
|
1629
|
+
def __init__(self):
|
|
1630
|
+
r"""
|
|
1631
|
+
:param _ServiceName: 应用名称
|
|
1632
|
+
:type ServiceName: str
|
|
1633
|
+
:param _InstanceId: APM业务系统ID
|
|
1634
|
+
:type InstanceId: str
|
|
1635
|
+
:param _ServiceInstance: 应用实例(在线)
|
|
1636
|
+
:type ServiceInstance: str
|
|
1637
|
+
:param _Event: 事件类型(cpu、alloc)
|
|
1638
|
+
:type Event: str
|
|
1639
|
+
:param _Duration: 任务持续时长(单位:毫秒),范围限制在5~180秒
|
|
1640
|
+
:type Duration: int
|
|
1641
|
+
:param _AllTimes: 执行次数,范围限制在1~100次
|
|
1642
|
+
:type AllTimes: int
|
|
1643
|
+
:param _StartTime: 开始时间戳,0代表从当前开始(单位:秒)
|
|
1644
|
+
:type StartTime: int
|
|
1645
|
+
:param _TaskInterval: 任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
|
|
1646
|
+
:type TaskInterval: int
|
|
1647
|
+
"""
|
|
1648
|
+
self._ServiceName = None
|
|
1649
|
+
self._InstanceId = None
|
|
1650
|
+
self._ServiceInstance = None
|
|
1651
|
+
self._Event = None
|
|
1652
|
+
self._Duration = None
|
|
1653
|
+
self._AllTimes = None
|
|
1654
|
+
self._StartTime = None
|
|
1655
|
+
self._TaskInterval = None
|
|
1656
|
+
|
|
1657
|
+
@property
|
|
1658
|
+
def ServiceName(self):
|
|
1659
|
+
"""应用名称
|
|
1660
|
+
:rtype: str
|
|
1661
|
+
"""
|
|
1662
|
+
return self._ServiceName
|
|
1663
|
+
|
|
1664
|
+
@ServiceName.setter
|
|
1665
|
+
def ServiceName(self, ServiceName):
|
|
1666
|
+
self._ServiceName = ServiceName
|
|
1667
|
+
|
|
1668
|
+
@property
|
|
1669
|
+
def InstanceId(self):
|
|
1670
|
+
"""APM业务系统ID
|
|
1671
|
+
:rtype: str
|
|
1672
|
+
"""
|
|
1673
|
+
return self._InstanceId
|
|
1674
|
+
|
|
1675
|
+
@InstanceId.setter
|
|
1676
|
+
def InstanceId(self, InstanceId):
|
|
1677
|
+
self._InstanceId = InstanceId
|
|
1678
|
+
|
|
1679
|
+
@property
|
|
1680
|
+
def ServiceInstance(self):
|
|
1681
|
+
"""应用实例(在线)
|
|
1682
|
+
:rtype: str
|
|
1683
|
+
"""
|
|
1684
|
+
return self._ServiceInstance
|
|
1685
|
+
|
|
1686
|
+
@ServiceInstance.setter
|
|
1687
|
+
def ServiceInstance(self, ServiceInstance):
|
|
1688
|
+
self._ServiceInstance = ServiceInstance
|
|
1689
|
+
|
|
1690
|
+
@property
|
|
1691
|
+
def Event(self):
|
|
1692
|
+
"""事件类型(cpu、alloc)
|
|
1693
|
+
:rtype: str
|
|
1694
|
+
"""
|
|
1695
|
+
return self._Event
|
|
1696
|
+
|
|
1697
|
+
@Event.setter
|
|
1698
|
+
def Event(self, Event):
|
|
1699
|
+
self._Event = Event
|
|
1700
|
+
|
|
1701
|
+
@property
|
|
1702
|
+
def Duration(self):
|
|
1703
|
+
"""任务持续时长(单位:毫秒),范围限制在5~180秒
|
|
1704
|
+
:rtype: int
|
|
1705
|
+
"""
|
|
1706
|
+
return self._Duration
|
|
1707
|
+
|
|
1708
|
+
@Duration.setter
|
|
1709
|
+
def Duration(self, Duration):
|
|
1710
|
+
self._Duration = Duration
|
|
1711
|
+
|
|
1712
|
+
@property
|
|
1713
|
+
def AllTimes(self):
|
|
1714
|
+
"""执行次数,范围限制在1~100次
|
|
1715
|
+
:rtype: int
|
|
1716
|
+
"""
|
|
1717
|
+
return self._AllTimes
|
|
1718
|
+
|
|
1719
|
+
@AllTimes.setter
|
|
1720
|
+
def AllTimes(self, AllTimes):
|
|
1721
|
+
self._AllTimes = AllTimes
|
|
1722
|
+
|
|
1723
|
+
@property
|
|
1724
|
+
def StartTime(self):
|
|
1725
|
+
"""开始时间戳,0代表从当前开始(单位:秒)
|
|
1726
|
+
:rtype: int
|
|
1727
|
+
"""
|
|
1728
|
+
return self._StartTime
|
|
1729
|
+
|
|
1730
|
+
@StartTime.setter
|
|
1731
|
+
def StartTime(self, StartTime):
|
|
1732
|
+
self._StartTime = StartTime
|
|
1733
|
+
|
|
1734
|
+
@property
|
|
1735
|
+
def TaskInterval(self):
|
|
1736
|
+
"""任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
|
|
1737
|
+
:rtype: int
|
|
1738
|
+
"""
|
|
1739
|
+
return self._TaskInterval
|
|
1740
|
+
|
|
1741
|
+
@TaskInterval.setter
|
|
1742
|
+
def TaskInterval(self, TaskInterval):
|
|
1743
|
+
self._TaskInterval = TaskInterval
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
def _deserialize(self, params):
|
|
1747
|
+
self._ServiceName = params.get("ServiceName")
|
|
1748
|
+
self._InstanceId = params.get("InstanceId")
|
|
1749
|
+
self._ServiceInstance = params.get("ServiceInstance")
|
|
1750
|
+
self._Event = params.get("Event")
|
|
1751
|
+
self._Duration = params.get("Duration")
|
|
1752
|
+
self._AllTimes = params.get("AllTimes")
|
|
1753
|
+
self._StartTime = params.get("StartTime")
|
|
1754
|
+
self._TaskInterval = params.get("TaskInterval")
|
|
1755
|
+
memeber_set = set(params.keys())
|
|
1756
|
+
for name, value in vars(self).items():
|
|
1757
|
+
property_name = name[1:]
|
|
1758
|
+
if property_name in memeber_set:
|
|
1759
|
+
memeber_set.remove(property_name)
|
|
1760
|
+
if len(memeber_set) > 0:
|
|
1761
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
class CreateProfileTaskResponse(AbstractModel):
|
|
1766
|
+
"""CreateProfileTask返回参数结构体
|
|
1767
|
+
|
|
1768
|
+
"""
|
|
1769
|
+
|
|
1770
|
+
def __init__(self):
|
|
1771
|
+
r"""
|
|
1772
|
+
:param _TaskId: 任务ID
|
|
1773
|
+
:type TaskId: int
|
|
1774
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1775
|
+
:type RequestId: str
|
|
1776
|
+
"""
|
|
1777
|
+
self._TaskId = None
|
|
1778
|
+
self._RequestId = None
|
|
1779
|
+
|
|
1780
|
+
@property
|
|
1781
|
+
def TaskId(self):
|
|
1782
|
+
"""任务ID
|
|
1783
|
+
:rtype: int
|
|
1784
|
+
"""
|
|
1785
|
+
return self._TaskId
|
|
1786
|
+
|
|
1787
|
+
@TaskId.setter
|
|
1788
|
+
def TaskId(self, TaskId):
|
|
1789
|
+
self._TaskId = TaskId
|
|
1790
|
+
|
|
1791
|
+
@property
|
|
1792
|
+
def RequestId(self):
|
|
1793
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1794
|
+
:rtype: str
|
|
1795
|
+
"""
|
|
1796
|
+
return self._RequestId
|
|
1797
|
+
|
|
1798
|
+
@RequestId.setter
|
|
1799
|
+
def RequestId(self, RequestId):
|
|
1800
|
+
self._RequestId = RequestId
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
def _deserialize(self, params):
|
|
1804
|
+
self._TaskId = params.get("TaskId")
|
|
1805
|
+
self._RequestId = params.get("RequestId")
|
|
1806
|
+
|
|
1807
|
+
|
|
1624
1808
|
class DescribeApmAgentRequest(AbstractModel):
|
|
1625
1809
|
"""DescribeApmAgent请求参数结构体
|
|
1626
1810
|
|
|
@@ -3648,12 +3832,15 @@ class Line(AbstractModel):
|
|
|
3648
3832
|
:type DataSerial: list of float
|
|
3649
3833
|
:param _Tags: 维度列表
|
|
3650
3834
|
:type Tags: list of ApmTag
|
|
3835
|
+
:param _MetricUnit: 指标数据单位
|
|
3836
|
+
:type MetricUnit: str
|
|
3651
3837
|
"""
|
|
3652
3838
|
self._MetricName = None
|
|
3653
3839
|
self._MetricNameCN = None
|
|
3654
3840
|
self._TimeSerial = None
|
|
3655
3841
|
self._DataSerial = None
|
|
3656
3842
|
self._Tags = None
|
|
3843
|
+
self._MetricUnit = None
|
|
3657
3844
|
|
|
3658
3845
|
@property
|
|
3659
3846
|
def MetricName(self):
|
|
@@ -3710,6 +3897,17 @@ class Line(AbstractModel):
|
|
|
3710
3897
|
def Tags(self, Tags):
|
|
3711
3898
|
self._Tags = Tags
|
|
3712
3899
|
|
|
3900
|
+
@property
|
|
3901
|
+
def MetricUnit(self):
|
|
3902
|
+
"""指标数据单位
|
|
3903
|
+
:rtype: str
|
|
3904
|
+
"""
|
|
3905
|
+
return self._MetricUnit
|
|
3906
|
+
|
|
3907
|
+
@MetricUnit.setter
|
|
3908
|
+
def MetricUnit(self, MetricUnit):
|
|
3909
|
+
self._MetricUnit = MetricUnit
|
|
3910
|
+
|
|
3713
3911
|
|
|
3714
3912
|
def _deserialize(self, params):
|
|
3715
3913
|
self._MetricName = params.get("MetricName")
|
|
@@ -3722,6 +3920,7 @@ class Line(AbstractModel):
|
|
|
3722
3920
|
obj = ApmTag()
|
|
3723
3921
|
obj._deserialize(item)
|
|
3724
3922
|
self._Tags.append(obj)
|
|
3923
|
+
self._MetricUnit = params.get("MetricUnit")
|
|
3725
3924
|
memeber_set = set(params.keys())
|
|
3726
3925
|
for name, value in vars(self).items():
|
|
3727
3926
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1412
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1408
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|