tencentcloud-sdk-python-apm 3.0.1411__py2.py3-none-any.whl → 3.0.1412__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1411'
17
+ __version__ = '3.0.1412'
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-apm
3
- Version: 3.0.1411
3
+ Version: 3.0.1412
4
4
  Summary: Tencent Cloud Apm SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (==3.0.1411)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1412)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=Tkxct_zdy_hHvHt9h3Z7ac-e8b_f_RP2Ui_IHD0kV_E,631
2
+ tencentcloud/apm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/apm/v20210622/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/apm/v20210622/apm_client.py,sha256=iyaAjNSQwHn2_650ZeLCqizJXlJ6VhcJY9ZD-Mu9Y9M,14087
5
+ tencentcloud/apm/v20210622/errorcodes.py,sha256=VJodLF4nluYGLaxCulZPN_thSrKSm6UMpPnl_dF8P24,5309
6
+ tencentcloud/apm/v20210622/models.py,sha256=_kxHJyO7mVuhXZZJHTmZ_8UJXWjKsrgk6YI_9TpXgFQ,151238
7
+ tencentcloud_sdk_python_apm-3.0.1412.dist-info/METADATA,sha256=DZ1xC_6ASci1bn46L-oIo6i7YTzGHaEuq25xWD3uZw8,1496
8
+ tencentcloud_sdk_python_apm-3.0.1412.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_apm-3.0.1412.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_apm-3.0.1412.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=E3863ySCct5duHrRFNO1sUAdDcVAsVVkJYn_7EgA2f0,631
2
- tencentcloud/apm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/apm/v20210622/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/apm/v20210622/apm_client.py,sha256=nFFknbBdefC-Obq2c7WbkD_zo2g6Q8VpldpTA8d3vDc,13218
5
- tencentcloud/apm/v20210622/errorcodes.py,sha256=ciIcLaYfEH1s5Yy7P0cVqW9eOtcvLQHi0bcsC-_24ps,5073
6
- tencentcloud/apm/v20210622/models.py,sha256=1KDex9-lnB32lXIlYCogSrqz5WM_zyVrhgZqtE75v-o,145901
7
- tencentcloud_sdk_python_apm-3.0.1411.dist-info/METADATA,sha256=Xj0d6nWuRInJTDRNGXTwH7c4JlajeuQ7blAR7JMSysY,1496
8
- tencentcloud_sdk_python_apm-3.0.1411.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_apm-3.0.1411.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_apm-3.0.1411.dist-info/RECORD,,