tencentcloud-sdk-monitor 3.0.491 → 3.0.493

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 095b332ab8d610a8b9873471afd9b1768653a19e
4
- data.tar.gz: 71227ddae977c97b55430e2d36444281317065bf
3
+ metadata.gz: 4bce5b5e507bc485d89b4b96e6141dd8841cf7ca
4
+ data.tar.gz: 66034609410a5b0c9350e77bcbc43d0bc526afa7
5
5
  SHA512:
6
- metadata.gz: 21146ab12dd27a5d0a1af9ffdf057c392b290d289343b91a48435d0f97966a7adb17b57a108b649d78ec0a8fc7b1ff3b62fd49708198e83c16848d877d461f1c
7
- data.tar.gz: 11dfb76acc16be75df7b2d65fcd9438fbb25a361bfe6f038fe3360a0aeee07d79cfc3d6c4d926298dff7671f5f6cb71f752f632075e32c454a32e6bb8eafb9ed
6
+ metadata.gz: aa8e99fe74d173912152bb611807c94415c417e85aa8981fbe20337892a4e457230ca0cbaf6e37976f6e9a0548209e2cdbb17c230173aea6e52b02e48be536df
7
+ data.tar.gz: 77b62f6d7b2c498a2c6e472cd96d3a25dc083ad7698db3d7f8c026bec3147f5e219fa6eb1d26917ce05d91425157ebd4d6360367b00b6e079b9db8850f687760
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.491
1
+ 3.0.493
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户
105
+
106
+ # @param request: Request instance for CheckIsPrometheusNewUser.
107
+ # @type request: :class:`Tencentcloud::monitor::V20180724::CheckIsPrometheusNewUserRequest`
108
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::CheckIsPrometheusNewUserResponse`
109
+ def CheckIsPrometheusNewUser(request)
110
+ body = send_request('CheckIsPrometheusNewUser', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CheckIsPrometheusNewUserResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # 强制销毁 Grafana 实例
105
129
 
106
130
  # @param request: Request instance for CleanGrafanaInstance.
@@ -367,6 +391,30 @@ module TencentCloud
367
391
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
368
392
  end
369
393
 
394
+ # 以Yaml的方式创建聚合规则
395
+
396
+ # @param request: Request instance for CreatePrometheusRecordRuleYaml.
397
+ # @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusRecordRuleYamlRequest`
398
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusRecordRuleYamlResponse`
399
+ def CreatePrometheusRecordRuleYaml(request)
400
+ body = send_request('CreatePrometheusRecordRuleYaml', request.serialize)
401
+ response = JSON.parse(body)
402
+ if response['Response'].key?('Error') == false
403
+ model = CreatePrometheusRecordRuleYamlResponse.new
404
+ model.deserialize(response['Response'])
405
+ model
406
+ else
407
+ code = response['Response']['Error']['Code']
408
+ message = response['Response']['Error']['Message']
409
+ reqid = response['Response']['RequestId']
410
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
411
+ end
412
+ rescue TencentCloud::Common::TencentCloudSDKException => e
413
+ raise e
414
+ rescue StandardError => e
415
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
416
+ end
417
+
370
418
  # 创建 Prometheus 抓取任务
371
419
 
372
420
  # @param request: Request instance for CreatePrometheusScrapeJob.
@@ -391,6 +439,30 @@ module TencentCloud
391
439
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
392
440
  end
393
441
 
442
+ # 创建一个云原生Prometheus模板
443
+
444
+ # @param request: Request instance for CreatePrometheusTemp.
445
+ # @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusTempRequest`
446
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusTempResponse`
447
+ def CreatePrometheusTemp(request)
448
+ body = send_request('CreatePrometheusTemp', request.serialize)
449
+ response = JSON.parse(body)
450
+ if response['Response'].key?('Error') == false
451
+ model = CreatePrometheusTempResponse.new
452
+ model.deserialize(response['Response'])
453
+ model
454
+ else
455
+ code = response['Response']['Error']['Code']
456
+ message = response['Response']['Error']['Message']
457
+ reqid = response['Response']['RequestId']
458
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
459
+ end
460
+ rescue TencentCloud::Common::TencentCloudSDKException => e
461
+ raise e
462
+ rescue StandardError => e
463
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
464
+ end
465
+
394
466
  # 创建 Prometheus 的预聚合规则
395
467
 
396
468
  # @param request: Request instance for CreateRecordingRule.
@@ -657,6 +729,30 @@ module TencentCloud
657
729
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
658
730
  end
659
731
 
732
+ # 删除聚合实例
733
+
734
+ # @param request: Request instance for DeletePrometheusRecordRuleYaml.
735
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusRecordRuleYamlRequest`
736
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusRecordRuleYamlResponse`
737
+ def DeletePrometheusRecordRuleYaml(request)
738
+ body = send_request('DeletePrometheusRecordRuleYaml', request.serialize)
739
+ response = JSON.parse(body)
740
+ if response['Response'].key?('Error') == false
741
+ model = DeletePrometheusRecordRuleYamlResponse.new
742
+ model.deserialize(response['Response'])
743
+ model
744
+ else
745
+ code = response['Response']['Error']['Code']
746
+ message = response['Response']['Error']['Message']
747
+ reqid = response['Response']['RequestId']
748
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
749
+ end
750
+ rescue TencentCloud::Common::TencentCloudSDKException => e
751
+ raise e
752
+ rescue StandardError => e
753
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
754
+ end
755
+
660
756
  # 删除 Prometheus 抓取任务
661
757
 
662
758
  # @param request: Request instance for DeletePrometheusScrapeJobs.
@@ -681,6 +777,54 @@ module TencentCloud
681
777
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
682
778
  end
683
779
 
780
+ # 删除一个云原生Prometheus配置模板
781
+
782
+ # @param request: Request instance for DeletePrometheusTemp.
783
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusTempRequest`
784
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusTempResponse`
785
+ def DeletePrometheusTemp(request)
786
+ body = send_request('DeletePrometheusTemp', request.serialize)
787
+ response = JSON.parse(body)
788
+ if response['Response'].key?('Error') == false
789
+ model = DeletePrometheusTempResponse.new
790
+ model.deserialize(response['Response'])
791
+ model
792
+ else
793
+ code = response['Response']['Error']['Code']
794
+ message = response['Response']['Error']['Message']
795
+ reqid = response['Response']['RequestId']
796
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
797
+ end
798
+ rescue TencentCloud::Common::TencentCloudSDKException => e
799
+ raise e
800
+ rescue StandardError => e
801
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
802
+ end
803
+
804
+ # 解除模板同步,这将会删除目标中该模板所生产的配置,针对V2版本实例
805
+
806
+ # @param request: Request instance for DeletePrometheusTempSync.
807
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusTempSyncRequest`
808
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusTempSyncResponse`
809
+ def DeletePrometheusTempSync(request)
810
+ body = send_request('DeletePrometheusTempSync', request.serialize)
811
+ response = JSON.parse(body)
812
+ if response['Response'].key?('Error') == false
813
+ model = DeletePrometheusTempSyncResponse.new
814
+ model.deserialize(response['Response'])
815
+ model
816
+ else
817
+ code = response['Response']['Error']['Code']
818
+ message = response['Response']['Error']['Message']
819
+ reqid = response['Response']['RequestId']
820
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
821
+ end
822
+ rescue TencentCloud::Common::TencentCloudSDKException => e
823
+ raise e
824
+ rescue StandardError => e
825
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
826
+ end
827
+
684
828
  # 批量删除 Prometheus 预聚合规则
685
829
 
686
830
  # @param request: Request instance for DeleteRecordingRules.
@@ -1525,6 +1669,30 @@ module TencentCloud
1525
1669
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1526
1670
  end
1527
1671
 
1672
+ # 获取关联目标集群的实例列表
1673
+
1674
+ # @param request: Request instance for DescribePrometheusAgentInstances.
1675
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAgentInstancesRequest`
1676
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAgentInstancesResponse`
1677
+ def DescribePrometheusAgentInstances(request)
1678
+ body = send_request('DescribePrometheusAgentInstances', request.serialize)
1679
+ response = JSON.parse(body)
1680
+ if response['Response'].key?('Error') == false
1681
+ model = DescribePrometheusAgentInstancesResponse.new
1682
+ model.deserialize(response['Response'])
1683
+ model
1684
+ else
1685
+ code = response['Response']['Error']['Code']
1686
+ message = response['Response']['Error']['Message']
1687
+ reqid = response['Response']['RequestId']
1688
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1689
+ end
1690
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1691
+ raise e
1692
+ rescue StandardError => e
1693
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1694
+ end
1695
+
1528
1696
  # 列出 Prometheus CVM Agent
1529
1697
 
1530
1698
  # @param request: Request instance for DescribePrometheusAgents.
@@ -1549,6 +1717,102 @@ module TencentCloud
1549
1717
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1550
1718
  end
1551
1719
 
1720
+ # 获取2.0实例告警策略列表
1721
+
1722
+ # @param request: Request instance for DescribePrometheusAlertPolicy.
1723
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAlertPolicyRequest`
1724
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAlertPolicyResponse`
1725
+ def DescribePrometheusAlertPolicy(request)
1726
+ body = send_request('DescribePrometheusAlertPolicy', request.serialize)
1727
+ response = JSON.parse(body)
1728
+ if response['Response'].key?('Error') == false
1729
+ model = DescribePrometheusAlertPolicyResponse.new
1730
+ model.deserialize(response['Response'])
1731
+ model
1732
+ else
1733
+ code = response['Response']['Error']['Code']
1734
+ message = response['Response']['Error']['Message']
1735
+ reqid = response['Response']['RequestId']
1736
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1737
+ end
1738
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1739
+ raise e
1740
+ rescue StandardError => e
1741
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1742
+ end
1743
+
1744
+ # 拉取Prometheus配置
1745
+
1746
+ # @param request: Request instance for DescribePrometheusConfig.
1747
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusConfigRequest`
1748
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusConfigResponse`
1749
+ def DescribePrometheusConfig(request)
1750
+ body = send_request('DescribePrometheusConfig', request.serialize)
1751
+ response = JSON.parse(body)
1752
+ if response['Response'].key?('Error') == false
1753
+ model = DescribePrometheusConfigResponse.new
1754
+ model.deserialize(response['Response'])
1755
+ model
1756
+ else
1757
+ code = response['Response']['Error']['Code']
1758
+ message = response['Response']['Error']['Message']
1759
+ reqid = response['Response']['RequestId']
1760
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1761
+ end
1762
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1763
+ raise e
1764
+ rescue StandardError => e
1765
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1766
+ end
1767
+
1768
+ # 获取TMP实例详情
1769
+
1770
+ # @param request: Request instance for DescribePrometheusInstanceDetail.
1771
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceDetailRequest`
1772
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceDetailResponse`
1773
+ def DescribePrometheusInstanceDetail(request)
1774
+ body = send_request('DescribePrometheusInstanceDetail', request.serialize)
1775
+ response = JSON.parse(body)
1776
+ if response['Response'].key?('Error') == false
1777
+ model = DescribePrometheusInstanceDetailResponse.new
1778
+ model.deserialize(response['Response'])
1779
+ model
1780
+ else
1781
+ code = response['Response']['Error']['Code']
1782
+ message = response['Response']['Error']['Message']
1783
+ reqid = response['Response']['RequestId']
1784
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1785
+ end
1786
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1787
+ raise e
1788
+ rescue StandardError => e
1789
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1790
+ end
1791
+
1792
+ # 获取2.0实例初始化任务状态
1793
+
1794
+ # @param request: Request instance for DescribePrometheusInstanceInitStatus.
1795
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceInitStatusRequest`
1796
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceInitStatusResponse`
1797
+ def DescribePrometheusInstanceInitStatus(request)
1798
+ body = send_request('DescribePrometheusInstanceInitStatus', request.serialize)
1799
+ response = JSON.parse(body)
1800
+ if response['Response'].key?('Error') == false
1801
+ model = DescribePrometheusInstanceInitStatusResponse.new
1802
+ model.deserialize(response['Response'])
1803
+ model
1804
+ else
1805
+ code = response['Response']['Error']['Code']
1806
+ message = response['Response']['Error']['Message']
1807
+ reqid = response['Response']['RequestId']
1808
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1809
+ end
1810
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1811
+ raise e
1812
+ rescue StandardError => e
1813
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1814
+ end
1815
+
1552
1816
  # 查询Prometheus按量实例用量
1553
1817
 
1554
1818
  # @param request: Request instance for DescribePrometheusInstanceUsage.
@@ -1601,6 +1865,78 @@ module TencentCloud
1601
1865
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1602
1866
  end
1603
1867
 
1868
+ # 获取与云监控融合实例列表
1869
+
1870
+ # @param request: Request instance for DescribePrometheusInstancesOverview.
1871
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesOverviewRequest`
1872
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesOverviewResponse`
1873
+ def DescribePrometheusInstancesOverview(request)
1874
+ body = send_request('DescribePrometheusInstancesOverview', request.serialize)
1875
+ response = JSON.parse(body)
1876
+ if response['Response'].key?('Error') == false
1877
+ model = DescribePrometheusInstancesOverviewResponse.new
1878
+ model.deserialize(response['Response'])
1879
+ model
1880
+ else
1881
+ code = response['Response']['Error']['Code']
1882
+ message = response['Response']['Error']['Message']
1883
+ reqid = response['Response']['RequestId']
1884
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1885
+ end
1886
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1887
+ raise e
1888
+ rescue StandardError => e
1889
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1890
+ end
1891
+
1892
+ # 拉取Prometheus聚合规则yaml列表
1893
+
1894
+ # @param request: Request instance for DescribePrometheusRecordRuleYaml.
1895
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRuleYamlRequest`
1896
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRuleYamlResponse`
1897
+ def DescribePrometheusRecordRuleYaml(request)
1898
+ body = send_request('DescribePrometheusRecordRuleYaml', request.serialize)
1899
+ response = JSON.parse(body)
1900
+ if response['Response'].key?('Error') == false
1901
+ model = DescribePrometheusRecordRuleYamlResponse.new
1902
+ model.deserialize(response['Response'])
1903
+ model
1904
+ else
1905
+ code = response['Response']['Error']['Code']
1906
+ message = response['Response']['Error']['Message']
1907
+ reqid = response['Response']['RequestId']
1908
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1909
+ end
1910
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1911
+ raise e
1912
+ rescue StandardError => e
1913
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1914
+ end
1915
+
1916
+ # 获取聚合规则列表,包含关联集群内crd资源创建的record rule
1917
+
1918
+ # @param request: Request instance for DescribePrometheusRecordRules.
1919
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRulesRequest`
1920
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusRecordRulesResponse`
1921
+ def DescribePrometheusRecordRules(request)
1922
+ body = send_request('DescribePrometheusRecordRules', request.serialize)
1923
+ response = JSON.parse(body)
1924
+ if response['Response'].key?('Error') == false
1925
+ model = DescribePrometheusRecordRulesResponse.new
1926
+ model.deserialize(response['Response'])
1927
+ model
1928
+ else
1929
+ code = response['Response']['Error']['Code']
1930
+ message = response['Response']['Error']['Message']
1931
+ reqid = response['Response']['RequestId']
1932
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1933
+ end
1934
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1935
+ raise e
1936
+ rescue StandardError => e
1937
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1938
+ end
1939
+
1604
1940
  # 列出 Prometheus 抓取任务
1605
1941
 
1606
1942
  # @param request: Request instance for DescribePrometheusScrapeJobs.
@@ -1625,6 +1961,54 @@ module TencentCloud
1625
1961
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1626
1962
  end
1627
1963
 
1964
+ # 拉取模板列表,默认模板将总是在最前面
1965
+
1966
+ # @param request: Request instance for DescribePrometheusTemp.
1967
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTempRequest`
1968
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTempResponse`
1969
+ def DescribePrometheusTemp(request)
1970
+ body = send_request('DescribePrometheusTemp', request.serialize)
1971
+ response = JSON.parse(body)
1972
+ if response['Response'].key?('Error') == false
1973
+ model = DescribePrometheusTempResponse.new
1974
+ model.deserialize(response['Response'])
1975
+ model
1976
+ else
1977
+ code = response['Response']['Error']['Code']
1978
+ message = response['Response']['Error']['Message']
1979
+ reqid = response['Response']['RequestId']
1980
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1981
+ end
1982
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1983
+ raise e
1984
+ rescue StandardError => e
1985
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1986
+ end
1987
+
1988
+ # 获取模板关联实例信息,针对V2版本实例
1989
+
1990
+ # @param request: Request instance for DescribePrometheusTempSync.
1991
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTempSyncRequest`
1992
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTempSyncResponse`
1993
+ def DescribePrometheusTempSync(request)
1994
+ body = send_request('DescribePrometheusTempSync', request.serialize)
1995
+ response = JSON.parse(body)
1996
+ if response['Response'].key?('Error') == false
1997
+ model = DescribePrometheusTempSyncResponse.new
1998
+ model.deserialize(response['Response'])
1999
+ model
2000
+ else
2001
+ code = response['Response']['Error']['Code']
2002
+ message = response['Response']['Error']['Message']
2003
+ reqid = response['Response']['RequestId']
2004
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2005
+ end
2006
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2007
+ raise e
2008
+ rescue StandardError => e
2009
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2010
+ end
2011
+
1628
2012
  # 列出 Prometheus 服务可用区
1629
2013
 
1630
2014
  # @param request: Request instance for DescribePrometheusZones.
@@ -2161,6 +2545,54 @@ module TencentCloud
2161
2545
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2162
2546
  end
2163
2547
 
2548
+ # 通过yaml的方式修改Prometheus聚合实例
2549
+
2550
+ # @param request: Request instance for ModifyPrometheusRecordRuleYaml.
2551
+ # @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusRecordRuleYamlRequest`
2552
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusRecordRuleYamlResponse`
2553
+ def ModifyPrometheusRecordRuleYaml(request)
2554
+ body = send_request('ModifyPrometheusRecordRuleYaml', request.serialize)
2555
+ response = JSON.parse(body)
2556
+ if response['Response'].key?('Error') == false
2557
+ model = ModifyPrometheusRecordRuleYamlResponse.new
2558
+ model.deserialize(response['Response'])
2559
+ model
2560
+ else
2561
+ code = response['Response']['Error']['Code']
2562
+ message = response['Response']['Error']['Message']
2563
+ reqid = response['Response']['RequestId']
2564
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2565
+ end
2566
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2567
+ raise e
2568
+ rescue StandardError => e
2569
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2570
+ end
2571
+
2572
+ # 修改模板内容
2573
+
2574
+ # @param request: Request instance for ModifyPrometheusTemp.
2575
+ # @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusTempRequest`
2576
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusTempResponse`
2577
+ def ModifyPrometheusTemp(request)
2578
+ body = send_request('ModifyPrometheusTemp', request.serialize)
2579
+ response = JSON.parse(body)
2580
+ if response['Response'].key?('Error') == false
2581
+ model = ModifyPrometheusTempResponse.new
2582
+ model.deserialize(response['Response'])
2583
+ model
2584
+ else
2585
+ code = response['Response']['Error']['Code']
2586
+ message = response['Response']['Error']['Message']
2587
+ reqid = response['Response']['RequestId']
2588
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2589
+ end
2590
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2591
+ raise e
2592
+ rescue StandardError => e
2593
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2594
+ end
2595
+
2164
2596
  # 默认接口请求频率限制:50次/秒。
2165
2597
  # 默认单租户指标上限:100个。
2166
2598
  # 单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
@@ -2215,6 +2647,30 @@ module TencentCloud
2215
2647
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2216
2648
  end
2217
2649
 
2650
+ # 初始化TMP实例,开启集成中心时调用
2651
+
2652
+ # @param request: Request instance for RunPrometheusInstance.
2653
+ # @type request: :class:`Tencentcloud::monitor::V20180724::RunPrometheusInstanceRequest`
2654
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::RunPrometheusInstanceResponse`
2655
+ def RunPrometheusInstance(request)
2656
+ body = send_request('RunPrometheusInstance', request.serialize)
2657
+ response = JSON.parse(body)
2658
+ if response['Response'].key?('Error') == false
2659
+ model = RunPrometheusInstanceResponse.new
2660
+ model.deserialize(response['Response'])
2661
+ model
2662
+ else
2663
+ code = response['Response']['Error']['Code']
2664
+ message = response['Response']['Error']['Message']
2665
+ reqid = response['Response']['RequestId']
2666
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2667
+ end
2668
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2669
+ raise e
2670
+ rescue StandardError => e
2671
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2672
+ end
2673
+
2218
2674
  # 发送自定义消息告警
2219
2675
 
2220
2676
  # @param request: Request instance for SendCustomAlarmMsg.
@@ -2264,6 +2720,30 @@ module TencentCloud
2264
2720
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2265
2721
  end
2266
2722
 
2723
+ # 同步模板到实例或者集群,针对V2版本实例
2724
+
2725
+ # @param request: Request instance for SyncPrometheusTemp.
2726
+ # @type request: :class:`Tencentcloud::monitor::V20180724::SyncPrometheusTempRequest`
2727
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::SyncPrometheusTempResponse`
2728
+ def SyncPrometheusTemp(request)
2729
+ body = send_request('SyncPrometheusTemp', request.serialize)
2730
+ response = JSON.parse(body)
2731
+ if response['Response'].key?('Error') == false
2732
+ model = SyncPrometheusTempResponse.new
2733
+ model.deserialize(response['Response'])
2734
+ model
2735
+ else
2736
+ code = response['Response']['Error']['Code']
2737
+ message = response['Response']['Error']['Message']
2738
+ reqid = response['Response']['RequestId']
2739
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2740
+ end
2741
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2742
+ raise e
2743
+ rescue StandardError => e
2744
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2745
+ end
2746
+
2267
2747
  # 销毁按量 Prometheus 实例
2268
2748
 
2269
2749
  # @param request: Request instance for TerminatePrometheusInstances.