tencentcloud-sdk-tke 1.0.313 → 1.0.314

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: 21b2621914901abd6eab81e6e1dc7f1256ca3507
4
- data.tar.gz: b84ba6af9bf1b7580a17fc2cab24a5dae7698aee
3
+ metadata.gz: 2e9f91f506325782e13276dce27d9050da940f84
4
+ data.tar.gz: 30fea1a4e9e2cac594403d440663b62164af40e5
5
5
  SHA512:
6
- metadata.gz: 61a22d011e1172bc533314c80acdee97db1b075d6f3a7dadbce716d591ad5f538fbdbc138abde714e583e37d186b7d1c433ccac9c9e2aca85501f0e607caad77
7
- data.tar.gz: 07382805d99d9dd3b04a6d48793d77cd0521363e6649b81d26177954cc667c56472fb6de148434272b8fde00f6bb75d9f38143fed0f7af5a213e8a47464457b5
6
+ metadata.gz: 1e6e050da2cdc589e7fd57456a17d8b57cddc0b8638dc06d8a2bcb9ca816e68fafd00b3050625bb4a8d4bb42ef1f244d72e7d2fbfdf718c927f026c95ac33ef7
7
+ data.tar.gz: a027a98329c69ba3b7363b332aa03f3d5b353c60a297e894828723ae618f8c111c1d77e67239e37a483c4f7d87790062eb06812a6289bbfa4c9c1f18266277f0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.313
1
+ 1.0.314
@@ -437,6 +437,30 @@ module TencentCloud
437
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
438
  end
439
439
 
440
+ # 创建告警策略
441
+
442
+ # @param request: Request instance for CreatePrometheusAlertPolicy.
443
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusAlertPolicyRequest`
444
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusAlertPolicyResponse`
445
+ def CreatePrometheusAlertPolicy(request)
446
+ body = send_request('CreatePrometheusAlertPolicy', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = CreatePrometheusAlertPolicyResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
440
464
  # 创建告警规则
441
465
 
442
466
  # @param request: Request instance for CreatePrometheusAlertRule.
@@ -485,6 +509,30 @@ module TencentCloud
485
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
510
  end
487
511
 
512
+ # 创建一个云原生Prometheus模板
513
+
514
+ # @param request: Request instance for CreatePrometheusTemp.
515
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusTempRequest`
516
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusTempResponse`
517
+ def CreatePrometheusTemp(request)
518
+ body = send_request('CreatePrometheusTemp', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = CreatePrometheusTempResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
488
536
  # 创建一个云原生Prometheus模板实例
489
537
 
490
538
  # @param request: Request instance for CreatePrometheusTemplate.
@@ -773,6 +821,30 @@ module TencentCloud
773
821
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
822
  end
775
823
 
824
+ # 删除2.0实例告警策略
825
+
826
+ # @param request: Request instance for DeletePrometheusAlertPolicy.
827
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusAlertPolicyRequest`
828
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusAlertPolicyResponse`
829
+ def DeletePrometheusAlertPolicy(request)
830
+ body = send_request('DeletePrometheusAlertPolicy', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = DeletePrometheusAlertPolicyResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
776
848
  # 删除告警规则
777
849
 
778
850
  # @param request: Request instance for DeletePrometheusAlertRule.
@@ -799,6 +871,54 @@ module TencentCloud
799
871
 
800
872
  # 删除一个云原生Prometheus配置模板
801
873
 
874
+ # @param request: Request instance for DeletePrometheusTemp.
875
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTempRequest`
876
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTempResponse`
877
+ def DeletePrometheusTemp(request)
878
+ body = send_request('DeletePrometheusTemp', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = DeletePrometheusTempResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
896
+ # 解除模板同步,这将会删除目标中该模板所生产的配置,针对V2版本实例
897
+
898
+ # @param request: Request instance for DeletePrometheusTempSync.
899
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTempSyncRequest`
900
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTempSyncResponse`
901
+ def DeletePrometheusTempSync(request)
902
+ body = send_request('DeletePrometheusTempSync', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = DeletePrometheusTempSyncResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
920
+ # 删除一个云原生Prometheus配置模板
921
+
802
922
  # @param request: Request instance for DeletePrometheusTemplate.
803
923
  # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTemplateRequest`
804
924
  # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusTemplateResponse`
@@ -1637,6 +1757,30 @@ module TencentCloud
1637
1757
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
1758
  end
1639
1759
 
1760
+ # 获取2.0实例告警策略列表
1761
+
1762
+ # @param request: Request instance for DescribePrometheusAlertPolicy.
1763
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusAlertPolicyRequest`
1764
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusAlertPolicyResponse`
1765
+ def DescribePrometheusAlertPolicy(request)
1766
+ body = send_request('DescribePrometheusAlertPolicy', request.serialize)
1767
+ response = JSON.parse(body)
1768
+ if response['Response'].key?('Error') == false
1769
+ model = DescribePrometheusAlertPolicyResponse.new
1770
+ model.deserialize(response['Response'])
1771
+ model
1772
+ else
1773
+ code = response['Response']['Error']['Code']
1774
+ message = response['Response']['Error']['Message']
1775
+ reqid = response['Response']['RequestId']
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1777
+ end
1778
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1779
+ raise e
1780
+ rescue StandardError => e
1781
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
+ end
1783
+
1640
1784
  # 获取告警规则列表
1641
1785
 
1642
1786
  # @param request: Request instance for DescribePrometheusAlertRule.
@@ -1661,6 +1805,30 @@ module TencentCloud
1661
1805
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
1806
  end
1663
1807
 
1808
+ # 获取2.0实例关联集群列表
1809
+
1810
+ # @param request: Request instance for DescribePrometheusClusterAgents.
1811
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusClusterAgentsRequest`
1812
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusClusterAgentsResponse`
1813
+ def DescribePrometheusClusterAgents(request)
1814
+ body = send_request('DescribePrometheusClusterAgents', request.serialize)
1815
+ response = JSON.parse(body)
1816
+ if response['Response'].key?('Error') == false
1817
+ model = DescribePrometheusClusterAgentsResponse.new
1818
+ model.deserialize(response['Response'])
1819
+ model
1820
+ else
1821
+ code = response['Response']['Error']['Code']
1822
+ message = response['Response']['Error']['Message']
1823
+ reqid = response['Response']['RequestId']
1824
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1825
+ end
1826
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1827
+ raise e
1828
+ rescue StandardError => e
1829
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
+ end
1831
+
1664
1832
  # 获取实例详细信息
1665
1833
 
1666
1834
  # @param request: Request instance for DescribePrometheusInstance.
@@ -1685,6 +1853,30 @@ module TencentCloud
1685
1853
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
1854
  end
1687
1855
 
1856
+ # 获取与云监控融合实例列表
1857
+
1858
+ # @param request: Request instance for DescribePrometheusInstancesOverview.
1859
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusInstancesOverviewRequest`
1860
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusInstancesOverviewResponse`
1861
+ def DescribePrometheusInstancesOverview(request)
1862
+ body = send_request('DescribePrometheusInstancesOverview', request.serialize)
1863
+ response = JSON.parse(body)
1864
+ if response['Response'].key?('Error') == false
1865
+ model = DescribePrometheusInstancesOverviewResponse.new
1866
+ model.deserialize(response['Response'])
1867
+ model
1868
+ else
1869
+ code = response['Response']['Error']['Code']
1870
+ message = response['Response']['Error']['Message']
1871
+ reqid = response['Response']['RequestId']
1872
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1873
+ end
1874
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1875
+ raise e
1876
+ rescue StandardError => e
1877
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1878
+ end
1879
+
1688
1880
  # 获取实例列表
1689
1881
 
1690
1882
  # @param request: Request instance for DescribePrometheusOverviews.
@@ -1709,6 +1901,30 @@ module TencentCloud
1709
1901
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
1902
  end
1711
1903
 
1904
+ # 获取聚合规则列表,包含关联集群内crd资源创建的record rule
1905
+
1906
+ # @param request: Request instance for DescribePrometheusRecordRules.
1907
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusRecordRulesRequest`
1908
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusRecordRulesResponse`
1909
+ def DescribePrometheusRecordRules(request)
1910
+ body = send_request('DescribePrometheusRecordRules', request.serialize)
1911
+ response = JSON.parse(body)
1912
+ if response['Response'].key?('Error') == false
1913
+ model = DescribePrometheusRecordRulesResponse.new
1914
+ model.deserialize(response['Response'])
1915
+ model
1916
+ else
1917
+ code = response['Response']['Error']['Code']
1918
+ message = response['Response']['Error']['Message']
1919
+ reqid = response['Response']['RequestId']
1920
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1921
+ end
1922
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1923
+ raise e
1924
+ rescue StandardError => e
1925
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
+ end
1927
+
1712
1928
  # 获取targets信息
1713
1929
 
1714
1930
  # @param request: Request instance for DescribePrometheusTargets.
@@ -1733,6 +1949,54 @@ module TencentCloud
1733
1949
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
1950
  end
1735
1951
 
1952
+ # 拉取模板列表,默认模板将总是在最前面
1953
+
1954
+ # @param request: Request instance for DescribePrometheusTemp.
1955
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusTempRequest`
1956
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusTempResponse`
1957
+ def DescribePrometheusTemp(request)
1958
+ body = send_request('DescribePrometheusTemp', request.serialize)
1959
+ response = JSON.parse(body)
1960
+ if response['Response'].key?('Error') == false
1961
+ model = DescribePrometheusTempResponse.new
1962
+ model.deserialize(response['Response'])
1963
+ model
1964
+ else
1965
+ code = response['Response']['Error']['Code']
1966
+ message = response['Response']['Error']['Message']
1967
+ reqid = response['Response']['RequestId']
1968
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1969
+ end
1970
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1971
+ raise e
1972
+ rescue StandardError => e
1973
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
+ end
1975
+
1976
+ # 获取模板关联实例信息,针对V2版本实例
1977
+
1978
+ # @param request: Request instance for DescribePrometheusTempSync.
1979
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusTempSyncRequest`
1980
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusTempSyncResponse`
1981
+ def DescribePrometheusTempSync(request)
1982
+ body = send_request('DescribePrometheusTempSync', request.serialize)
1983
+ response = JSON.parse(body)
1984
+ if response['Response'].key?('Error') == false
1985
+ model = DescribePrometheusTempSyncResponse.new
1986
+ model.deserialize(response['Response'])
1987
+ model
1988
+ else
1989
+ code = response['Response']['Error']['Code']
1990
+ message = response['Response']['Error']['Message']
1991
+ reqid = response['Response']['RequestId']
1992
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1993
+ end
1994
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1995
+ raise e
1996
+ rescue StandardError => e
1997
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1998
+ end
1999
+
1736
2000
  # 获取模板同步信息
1737
2001
 
1738
2002
  # @param request: Request instance for DescribePrometheusTemplateSync.
@@ -1925,6 +2189,30 @@ module TencentCloud
1925
2189
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
2190
  end
1927
2191
 
2192
+ # 关闭集群审计
2193
+
2194
+ # @param request: Request instance for DisableClusterAudit.
2195
+ # @type request: :class:`Tencentcloud::tke::V20180525::DisableClusterAuditRequest`
2196
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DisableClusterAuditResponse`
2197
+ def DisableClusterAudit(request)
2198
+ body = send_request('DisableClusterAudit', request.serialize)
2199
+ response = JSON.parse(body)
2200
+ if response['Response'].key?('Error') == false
2201
+ model = DisableClusterAuditResponse.new
2202
+ model.deserialize(response['Response'])
2203
+ model
2204
+ else
2205
+ code = response['Response']['Error']['Code']
2206
+ message = response['Response']['Error']['Message']
2207
+ reqid = response['Response']['RequestId']
2208
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2209
+ end
2210
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2211
+ raise e
2212
+ rescue StandardError => e
2213
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2214
+ end
2215
+
1928
2216
  # 关闭集群删除保护
1929
2217
 
1930
2218
  # @param request: Request instance for DisableClusterDeletionProtection.
@@ -1949,6 +2237,30 @@ module TencentCloud
1949
2237
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1950
2238
  end
1951
2239
 
2240
+ # 关闭事件持久化功能
2241
+
2242
+ # @param request: Request instance for DisableEventPersistence.
2243
+ # @type request: :class:`Tencentcloud::tke::V20180525::DisableEventPersistenceRequest`
2244
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DisableEventPersistenceResponse`
2245
+ def DisableEventPersistence(request)
2246
+ body = send_request('DisableEventPersistence', request.serialize)
2247
+ response = JSON.parse(body)
2248
+ if response['Response'].key?('Error') == false
2249
+ model = DisableEventPersistenceResponse.new
2250
+ model.deserialize(response['Response'])
2251
+ model
2252
+ else
2253
+ code = response['Response']['Error']['Code']
2254
+ message = response['Response']['Error']['Message']
2255
+ reqid = response['Response']['RequestId']
2256
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2257
+ end
2258
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2259
+ raise e
2260
+ rescue StandardError => e
2261
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2262
+ end
2263
+
1952
2264
  # 提供给附加了VPC-CNI能力的Global-Route集群关闭VPC-CNI
1953
2265
 
1954
2266
  # @param request: Request instance for DisableVpcCniNetworkType.
@@ -1973,6 +2285,30 @@ module TencentCloud
1973
2285
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
2286
  end
1975
2287
 
2288
+ # 开启集群审计
2289
+
2290
+ # @param request: Request instance for EnableClusterAudit.
2291
+ # @type request: :class:`Tencentcloud::tke::V20180525::EnableClusterAuditRequest`
2292
+ # @rtype: :class:`Tencentcloud::tke::V20180525::EnableClusterAuditResponse`
2293
+ def EnableClusterAudit(request)
2294
+ body = send_request('EnableClusterAudit', request.serialize)
2295
+ response = JSON.parse(body)
2296
+ if response['Response'].key?('Error') == false
2297
+ model = EnableClusterAuditResponse.new
2298
+ model.deserialize(response['Response'])
2299
+ model
2300
+ else
2301
+ code = response['Response']['Error']['Code']
2302
+ message = response['Response']['Error']['Message']
2303
+ reqid = response['Response']['RequestId']
2304
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2305
+ end
2306
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2307
+ raise e
2308
+ rescue StandardError => e
2309
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2310
+ end
2311
+
1976
2312
  # 启用集群删除保护
1977
2313
 
1978
2314
  # @param request: Request instance for EnableClusterDeletionProtection.
@@ -1997,6 +2333,30 @@ module TencentCloud
1997
2333
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1998
2334
  end
1999
2335
 
2336
+ # 开启事件持久化功能
2337
+
2338
+ # @param request: Request instance for EnableEventPersistence.
2339
+ # @type request: :class:`Tencentcloud::tke::V20180525::EnableEventPersistenceRequest`
2340
+ # @rtype: :class:`Tencentcloud::tke::V20180525::EnableEventPersistenceResponse`
2341
+ def EnableEventPersistence(request)
2342
+ body = send_request('EnableEventPersistence', request.serialize)
2343
+ response = JSON.parse(body)
2344
+ if response['Response'].key?('Error') == false
2345
+ model = EnableEventPersistenceResponse.new
2346
+ model.deserialize(response['Response'])
2347
+ model
2348
+ else
2349
+ code = response['Response']['Error']['Code']
2350
+ message = response['Response']['Error']['Message']
2351
+ reqid = response['Response']['RequestId']
2352
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2353
+ end
2354
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2355
+ raise e
2356
+ rescue StandardError => e
2357
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2358
+ end
2359
+
2000
2360
  # GR集群可以通过本接口附加vpc-cni容器网络插件,开启vpc-cni容器网络能力
2001
2361
 
2002
2362
  # @param request: Request instance for EnableVpcCniNetworkType.
@@ -2141,6 +2501,30 @@ module TencentCloud
2141
2501
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2142
2502
  end
2143
2503
 
2504
+ # 在TKE集群中安装CLS日志采集组件
2505
+
2506
+ # @param request: Request instance for InstallLogAgent.
2507
+ # @type request: :class:`Tencentcloud::tke::V20180525::InstallLogAgentRequest`
2508
+ # @rtype: :class:`Tencentcloud::tke::V20180525::InstallLogAgentResponse`
2509
+ def InstallLogAgent(request)
2510
+ body = send_request('InstallLogAgent', request.serialize)
2511
+ response = JSON.parse(body)
2512
+ if response['Response'].key?('Error') == false
2513
+ model = InstallLogAgentResponse.new
2514
+ model.deserialize(response['Response'])
2515
+ model
2516
+ else
2517
+ code = response['Response']['Error']['Code']
2518
+ message = response['Response']['Error']['Message']
2519
+ reqid = response['Response']['RequestId']
2520
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2521
+ end
2522
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2523
+ raise e
2524
+ rescue StandardError => e
2525
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
+ end
2527
+
2144
2528
  # 修改集群伸缩组属性
2145
2529
 
2146
2530
  # @param request: Request instance for ModifyClusterAsGroupAttribute.
@@ -2333,6 +2717,30 @@ module TencentCloud
2333
2717
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2334
2718
  end
2335
2719
 
2720
+ # 修改2.0实例告警策略
2721
+
2722
+ # @param request: Request instance for ModifyPrometheusAlertPolicy.
2723
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusAlertPolicyRequest`
2724
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusAlertPolicyResponse`
2725
+ def ModifyPrometheusAlertPolicy(request)
2726
+ body = send_request('ModifyPrometheusAlertPolicy', request.serialize)
2727
+ response = JSON.parse(body)
2728
+ if response['Response'].key?('Error') == false
2729
+ model = ModifyPrometheusAlertPolicyResponse.new
2730
+ model.deserialize(response['Response'])
2731
+ model
2732
+ else
2733
+ code = response['Response']['Error']['Code']
2734
+ message = response['Response']['Error']['Message']
2735
+ reqid = response['Response']['RequestId']
2736
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2737
+ end
2738
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2739
+ raise e
2740
+ rescue StandardError => e
2741
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2742
+ end
2743
+
2336
2744
  # 修改告警规则
2337
2745
 
2338
2746
  # @param request: Request instance for ModifyPrometheusAlertRule.
@@ -2501,6 +2909,30 @@ module TencentCloud
2501
2909
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2502
2910
  end
2503
2911
 
2912
+ # 同步模板到实例或者集群,针对V2版本实例
2913
+
2914
+ # @param request: Request instance for SyncPrometheusTemp.
2915
+ # @type request: :class:`Tencentcloud::tke::V20180525::SyncPrometheusTempRequest`
2916
+ # @rtype: :class:`Tencentcloud::tke::V20180525::SyncPrometheusTempResponse`
2917
+ def SyncPrometheusTemp(request)
2918
+ body = send_request('SyncPrometheusTemp', request.serialize)
2919
+ response = JSON.parse(body)
2920
+ if response['Response'].key?('Error') == false
2921
+ model = SyncPrometheusTempResponse.new
2922
+ model.deserialize(response['Response'])
2923
+ model
2924
+ else
2925
+ code = response['Response']['Error']['Code']
2926
+ message = response['Response']['Error']['Message']
2927
+ reqid = response['Response']['RequestId']
2928
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2929
+ end
2930
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2931
+ raise e
2932
+ rescue StandardError => e
2933
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2934
+ end
2935
+
2504
2936
  # 同步模板到实例或者集群
2505
2937
 
2506
2938
  # @param request: Request instance for SyncPrometheusTemplate.
@@ -2525,6 +2957,30 @@ module TencentCloud
2525
2957
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
2958
  end
2527
2959
 
2960
+ # 从TKE集群中卸载CLS日志采集组件
2961
+
2962
+ # @param request: Request instance for UninstallLogAgent.
2963
+ # @type request: :class:`Tencentcloud::tke::V20180525::UninstallLogAgentRequest`
2964
+ # @rtype: :class:`Tencentcloud::tke::V20180525::UninstallLogAgentResponse`
2965
+ def UninstallLogAgent(request)
2966
+ body = send_request('UninstallLogAgent', request.serialize)
2967
+ response = JSON.parse(body)
2968
+ if response['Response'].key?('Error') == false
2969
+ model = UninstallLogAgentResponse.new
2970
+ model.deserialize(response['Response'])
2971
+ model
2972
+ else
2973
+ code = response['Response']['Error']['Code']
2974
+ message = response['Response']['Error']['Message']
2975
+ reqid = response['Response']['RequestId']
2976
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2977
+ end
2978
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2979
+ raise e
2980
+ rescue StandardError => e
2981
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2982
+ end
2983
+
2528
2984
  # 升级集群 Master 组件到指定版本
2529
2985
 
2530
2986
  # @param request: Request instance for UpdateClusterVersion.
@@ -2278,6 +2278,33 @@ module TencentCloud
2278
2278
  end
2279
2279
  end
2280
2280
 
2281
+ # CreatePrometheusAlertPolicy请求参数结构体
2282
+ class CreatePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
2283
+
2284
+
2285
+ def initialize()
2286
+ end
2287
+
2288
+ def deserialize(params)
2289
+ end
2290
+ end
2291
+
2292
+ # CreatePrometheusAlertPolicy返回参数结构体
2293
+ class CreatePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
2294
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2295
+ # @type RequestId: String
2296
+
2297
+ attr_accessor :RequestId
2298
+
2299
+ def initialize(requestid=nil)
2300
+ @RequestId = requestid
2301
+ end
2302
+
2303
+ def deserialize(params)
2304
+ @RequestId = params['RequestId']
2305
+ end
2306
+ end
2307
+
2281
2308
  # CreatePrometheusAlertRule请求参数结构体
2282
2309
  class CreatePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
2283
2310
  # @param InstanceId: 实例id
@@ -2362,6 +2389,33 @@ module TencentCloud
2362
2389
  end
2363
2390
  end
2364
2391
 
2392
+ # CreatePrometheusTemp请求参数结构体
2393
+ class CreatePrometheusTempRequest < TencentCloud::Common::AbstractModel
2394
+
2395
+
2396
+ def initialize()
2397
+ end
2398
+
2399
+ def deserialize(params)
2400
+ end
2401
+ end
2402
+
2403
+ # CreatePrometheusTemp返回参数结构体
2404
+ class CreatePrometheusTempResponse < TencentCloud::Common::AbstractModel
2405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2406
+ # @type RequestId: String
2407
+
2408
+ attr_accessor :RequestId
2409
+
2410
+ def initialize(requestid=nil)
2411
+ @RequestId = requestid
2412
+ end
2413
+
2414
+ def deserialize(params)
2415
+ @RequestId = params['RequestId']
2416
+ end
2417
+ end
2418
+
2365
2419
  # CreatePrometheusTemplate请求参数结构体
2366
2420
  class CreatePrometheusTemplateRequest < TencentCloud::Common::AbstractModel
2367
2421
  # @param Template: 模板设置
@@ -2925,6 +2979,33 @@ module TencentCloud
2925
2979
  end
2926
2980
  end
2927
2981
 
2982
+ # DeletePrometheusAlertPolicy请求参数结构体
2983
+ class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
2984
+
2985
+
2986
+ def initialize()
2987
+ end
2988
+
2989
+ def deserialize(params)
2990
+ end
2991
+ end
2992
+
2993
+ # DeletePrometheusAlertPolicy返回参数结构体
2994
+ class DeletePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
2995
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2996
+ # @type RequestId: String
2997
+
2998
+ attr_accessor :RequestId
2999
+
3000
+ def initialize(requestid=nil)
3001
+ @RequestId = requestid
3002
+ end
3003
+
3004
+ def deserialize(params)
3005
+ @RequestId = params['RequestId']
3006
+ end
3007
+ end
3008
+
2928
3009
  # DeletePrometheusAlertRule请求参数结构体
2929
3010
  class DeletePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
2930
3011
  # @param InstanceId: 实例id
@@ -2961,6 +3042,60 @@ module TencentCloud
2961
3042
  end
2962
3043
  end
2963
3044
 
3045
+ # DeletePrometheusTemp请求参数结构体
3046
+ class DeletePrometheusTempRequest < TencentCloud::Common::AbstractModel
3047
+
3048
+
3049
+ def initialize()
3050
+ end
3051
+
3052
+ def deserialize(params)
3053
+ end
3054
+ end
3055
+
3056
+ # DeletePrometheusTemp返回参数结构体
3057
+ class DeletePrometheusTempResponse < TencentCloud::Common::AbstractModel
3058
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3059
+ # @type RequestId: String
3060
+
3061
+ attr_accessor :RequestId
3062
+
3063
+ def initialize(requestid=nil)
3064
+ @RequestId = requestid
3065
+ end
3066
+
3067
+ def deserialize(params)
3068
+ @RequestId = params['RequestId']
3069
+ end
3070
+ end
3071
+
3072
+ # DeletePrometheusTempSync请求参数结构体
3073
+ class DeletePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
3074
+
3075
+
3076
+ def initialize()
3077
+ end
3078
+
3079
+ def deserialize(params)
3080
+ end
3081
+ end
3082
+
3083
+ # DeletePrometheusTempSync返回参数结构体
3084
+ class DeletePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
3085
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3086
+ # @type RequestId: String
3087
+
3088
+ attr_accessor :RequestId
3089
+
3090
+ def initialize(requestid=nil)
3091
+ @RequestId = requestid
3092
+ end
3093
+
3094
+ def deserialize(params)
3095
+ @RequestId = params['RequestId']
3096
+ end
3097
+ end
3098
+
2964
3099
  # DeletePrometheusTemplate请求参数结构体
2965
3100
  class DeletePrometheusTemplateRequest < TencentCloud::Common::AbstractModel
2966
3101
  # @param TemplateId: 模板id
@@ -4921,6 +5056,33 @@ module TencentCloud
4921
5056
  end
4922
5057
  end
4923
5058
 
5059
+ # DescribePrometheusAlertPolicy请求参数结构体
5060
+ class DescribePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
5061
+
5062
+
5063
+ def initialize()
5064
+ end
5065
+
5066
+ def deserialize(params)
5067
+ end
5068
+ end
5069
+
5070
+ # DescribePrometheusAlertPolicy返回参数结构体
5071
+ class DescribePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
5072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5073
+ # @type RequestId: String
5074
+
5075
+ attr_accessor :RequestId
5076
+
5077
+ def initialize(requestid=nil)
5078
+ @RequestId = requestid
5079
+ end
5080
+
5081
+ def deserialize(params)
5082
+ @RequestId = params['RequestId']
5083
+ end
5084
+ end
5085
+
4924
5086
  # DescribePrometheusAlertRule请求参数结构体
4925
5087
  class DescribePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
4926
5088
  # @param InstanceId: 实例id
@@ -4988,6 +5150,33 @@ module TencentCloud
4988
5150
  end
4989
5151
  end
4990
5152
 
5153
+ # DescribePrometheusClusterAgents请求参数结构体
5154
+ class DescribePrometheusClusterAgentsRequest < TencentCloud::Common::AbstractModel
5155
+
5156
+
5157
+ def initialize()
5158
+ end
5159
+
5160
+ def deserialize(params)
5161
+ end
5162
+ end
5163
+
5164
+ # DescribePrometheusClusterAgents返回参数结构体
5165
+ class DescribePrometheusClusterAgentsResponse < TencentCloud::Common::AbstractModel
5166
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5167
+ # @type RequestId: String
5168
+
5169
+ attr_accessor :RequestId
5170
+
5171
+ def initialize(requestid=nil)
5172
+ @RequestId = requestid
5173
+ end
5174
+
5175
+ def deserialize(params)
5176
+ @RequestId = params['RequestId']
5177
+ end
5178
+ end
5179
+
4991
5180
  # DescribePrometheusInstance请求参数结构体
4992
5181
  class DescribePrometheusInstanceRequest < TencentCloud::Common::AbstractModel
4993
5182
  # @param InstanceId: 实例id
@@ -5057,6 +5246,33 @@ module TencentCloud
5057
5246
  end
5058
5247
  end
5059
5248
 
5249
+ # DescribePrometheusInstancesOverview请求参数结构体
5250
+ class DescribePrometheusInstancesOverviewRequest < TencentCloud::Common::AbstractModel
5251
+
5252
+
5253
+ def initialize()
5254
+ end
5255
+
5256
+ def deserialize(params)
5257
+ end
5258
+ end
5259
+
5260
+ # DescribePrometheusInstancesOverview返回参数结构体
5261
+ class DescribePrometheusInstancesOverviewResponse < TencentCloud::Common::AbstractModel
5262
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5263
+ # @type RequestId: String
5264
+
5265
+ attr_accessor :RequestId
5266
+
5267
+ def initialize(requestid=nil)
5268
+ @RequestId = requestid
5269
+ end
5270
+
5271
+ def deserialize(params)
5272
+ @RequestId = params['RequestId']
5273
+ end
5274
+ end
5275
+
5060
5276
  # DescribePrometheusOverviews请求参数结构体
5061
5277
  class DescribePrometheusOverviewsRequest < TencentCloud::Common::AbstractModel
5062
5278
  # @param Offset: 用于分页
@@ -5122,6 +5338,33 @@ module TencentCloud
5122
5338
  end
5123
5339
  end
5124
5340
 
5341
+ # DescribePrometheusRecordRules请求参数结构体
5342
+ class DescribePrometheusRecordRulesRequest < TencentCloud::Common::AbstractModel
5343
+
5344
+
5345
+ def initialize()
5346
+ end
5347
+
5348
+ def deserialize(params)
5349
+ end
5350
+ end
5351
+
5352
+ # DescribePrometheusRecordRules返回参数结构体
5353
+ class DescribePrometheusRecordRulesResponse < TencentCloud::Common::AbstractModel
5354
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5355
+ # @type RequestId: String
5356
+
5357
+ attr_accessor :RequestId
5358
+
5359
+ def initialize(requestid=nil)
5360
+ @RequestId = requestid
5361
+ end
5362
+
5363
+ def deserialize(params)
5364
+ @RequestId = params['RequestId']
5365
+ end
5366
+ end
5367
+
5125
5368
  # DescribePrometheusTargets请求参数结构体
5126
5369
  class DescribePrometheusTargetsRequest < TencentCloud::Common::AbstractModel
5127
5370
  # @param InstanceId: 实例id
@@ -5186,6 +5429,60 @@ module TencentCloud
5186
5429
  end
5187
5430
  end
5188
5431
 
5432
+ # DescribePrometheusTemp请求参数结构体
5433
+ class DescribePrometheusTempRequest < TencentCloud::Common::AbstractModel
5434
+
5435
+
5436
+ def initialize()
5437
+ end
5438
+
5439
+ def deserialize(params)
5440
+ end
5441
+ end
5442
+
5443
+ # DescribePrometheusTemp返回参数结构体
5444
+ class DescribePrometheusTempResponse < TencentCloud::Common::AbstractModel
5445
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5446
+ # @type RequestId: String
5447
+
5448
+ attr_accessor :RequestId
5449
+
5450
+ def initialize(requestid=nil)
5451
+ @RequestId = requestid
5452
+ end
5453
+
5454
+ def deserialize(params)
5455
+ @RequestId = params['RequestId']
5456
+ end
5457
+ end
5458
+
5459
+ # DescribePrometheusTempSync请求参数结构体
5460
+ class DescribePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
5461
+
5462
+
5463
+ def initialize()
5464
+ end
5465
+
5466
+ def deserialize(params)
5467
+ end
5468
+ end
5469
+
5470
+ # DescribePrometheusTempSync返回参数结构体
5471
+ class DescribePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
5472
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5473
+ # @type RequestId: String
5474
+
5475
+ attr_accessor :RequestId
5476
+
5477
+ def initialize(requestid=nil)
5478
+ @RequestId = requestid
5479
+ end
5480
+
5481
+ def deserialize(params)
5482
+ @RequestId = params['RequestId']
5483
+ end
5484
+ end
5485
+
5189
5486
  # DescribePrometheusTemplateSync请求参数结构体
5190
5487
  class DescribePrometheusTemplateSyncRequest < TencentCloud::Common::AbstractModel
5191
5488
  # @param TemplateId: 模板ID
@@ -5590,6 +5887,38 @@ module TencentCloud
5590
5887
  end
5591
5888
  end
5592
5889
 
5890
+ # DisableClusterAudit请求参数结构体
5891
+ class DisableClusterAuditRequest < TencentCloud::Common::AbstractModel
5892
+ # @param ClusterId: 集群ID
5893
+ # @type ClusterId: String
5894
+
5895
+ attr_accessor :ClusterId
5896
+
5897
+ def initialize(clusterid=nil)
5898
+ @ClusterId = clusterid
5899
+ end
5900
+
5901
+ def deserialize(params)
5902
+ @ClusterId = params['ClusterId']
5903
+ end
5904
+ end
5905
+
5906
+ # DisableClusterAudit返回参数结构体
5907
+ class DisableClusterAuditResponse < TencentCloud::Common::AbstractModel
5908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5909
+ # @type RequestId: String
5910
+
5911
+ attr_accessor :RequestId
5912
+
5913
+ def initialize(requestid=nil)
5914
+ @RequestId = requestid
5915
+ end
5916
+
5917
+ def deserialize(params)
5918
+ @RequestId = params['RequestId']
5919
+ end
5920
+ end
5921
+
5593
5922
  # DisableClusterDeletionProtection请求参数结构体
5594
5923
  class DisableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
5595
5924
  # @param ClusterId: 集群ID
@@ -5622,6 +5951,38 @@ module TencentCloud
5622
5951
  end
5623
5952
  end
5624
5953
 
5954
+ # DisableEventPersistence请求参数结构体
5955
+ class DisableEventPersistenceRequest < TencentCloud::Common::AbstractModel
5956
+ # @param ClusterId: 集群ID
5957
+ # @type ClusterId: String
5958
+
5959
+ attr_accessor :ClusterId
5960
+
5961
+ def initialize(clusterid=nil)
5962
+ @ClusterId = clusterid
5963
+ end
5964
+
5965
+ def deserialize(params)
5966
+ @ClusterId = params['ClusterId']
5967
+ end
5968
+ end
5969
+
5970
+ # DisableEventPersistence返回参数结构体
5971
+ class DisableEventPersistenceResponse < TencentCloud::Common::AbstractModel
5972
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5973
+ # @type RequestId: String
5974
+
5975
+ attr_accessor :RequestId
5976
+
5977
+ def initialize(requestid=nil)
5978
+ @RequestId = requestid
5979
+ end
5980
+
5981
+ def deserialize(params)
5982
+ @RequestId = params['RequestId']
5983
+ end
5984
+ end
5985
+
5625
5986
  # DisableVpcCniNetworkType请求参数结构体
5626
5987
  class DisableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
5627
5988
  # @param ClusterId: 集群ID
@@ -5991,6 +6352,46 @@ module TencentCloud
5991
6352
  end
5992
6353
  end
5993
6354
 
6355
+ # EnableClusterAudit请求参数结构体
6356
+ class EnableClusterAuditRequest < TencentCloud::Common::AbstractModel
6357
+ # @param ClusterId: 集群ID
6358
+ # @type ClusterId: String
6359
+ # @param LogsetId: CLS日志集ID
6360
+ # @type LogsetId: String
6361
+ # @param TopicId: CLS日志主题ID
6362
+ # @type TopicId: String
6363
+
6364
+ attr_accessor :ClusterId, :LogsetId, :TopicId
6365
+
6366
+ def initialize(clusterid=nil, logsetid=nil, topicid=nil)
6367
+ @ClusterId = clusterid
6368
+ @LogsetId = logsetid
6369
+ @TopicId = topicid
6370
+ end
6371
+
6372
+ def deserialize(params)
6373
+ @ClusterId = params['ClusterId']
6374
+ @LogsetId = params['LogsetId']
6375
+ @TopicId = params['TopicId']
6376
+ end
6377
+ end
6378
+
6379
+ # EnableClusterAudit返回参数结构体
6380
+ class EnableClusterAuditResponse < TencentCloud::Common::AbstractModel
6381
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6382
+ # @type RequestId: String
6383
+
6384
+ attr_accessor :RequestId
6385
+
6386
+ def initialize(requestid=nil)
6387
+ @RequestId = requestid
6388
+ end
6389
+
6390
+ def deserialize(params)
6391
+ @RequestId = params['RequestId']
6392
+ end
6393
+ end
6394
+
5994
6395
  # EnableClusterDeletionProtection请求参数结构体
5995
6396
  class EnableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
5996
6397
  # @param ClusterId: 集群ID
@@ -6023,6 +6424,46 @@ module TencentCloud
6023
6424
  end
6024
6425
  end
6025
6426
 
6427
+ # EnableEventPersistence请求参数结构体
6428
+ class EnableEventPersistenceRequest < TencentCloud::Common::AbstractModel
6429
+ # @param ClusterId: 集群ID
6430
+ # @type ClusterId: String
6431
+ # @param LogsetId: cls服务的logsetID
6432
+ # @type LogsetId: String
6433
+ # @param TopicId: cls服务的topicID
6434
+ # @type TopicId: String
6435
+
6436
+ attr_accessor :ClusterId, :LogsetId, :TopicId
6437
+
6438
+ def initialize(clusterid=nil, logsetid=nil, topicid=nil)
6439
+ @ClusterId = clusterid
6440
+ @LogsetId = logsetid
6441
+ @TopicId = topicid
6442
+ end
6443
+
6444
+ def deserialize(params)
6445
+ @ClusterId = params['ClusterId']
6446
+ @LogsetId = params['LogsetId']
6447
+ @TopicId = params['TopicId']
6448
+ end
6449
+ end
6450
+
6451
+ # EnableEventPersistence返回参数结构体
6452
+ class EnableEventPersistenceResponse < TencentCloud::Common::AbstractModel
6453
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6454
+ # @type RequestId: String
6455
+
6456
+ attr_accessor :RequestId
6457
+
6458
+ def initialize(requestid=nil)
6459
+ @RequestId = requestid
6460
+ end
6461
+
6462
+ def deserialize(params)
6463
+ @RequestId = params['RequestId']
6464
+ end
6465
+ end
6466
+
6026
6467
  # EnableVpcCniNetworkType请求参数结构体
6027
6468
  class EnableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
6028
6469
  # @param ClusterId: 集群ID
@@ -6877,6 +7318,42 @@ module TencentCloud
6877
7318
  end
6878
7319
  end
6879
7320
 
7321
+ # InstallLogAgent请求参数结构体
7322
+ class InstallLogAgentRequest < TencentCloud::Common::AbstractModel
7323
+ # @param ClusterId: TKE集群ID
7324
+ # @type ClusterId: String
7325
+ # @param KubeletRootDir: kubelet根目录
7326
+ # @type KubeletRootDir: String
7327
+
7328
+ attr_accessor :ClusterId, :KubeletRootDir
7329
+
7330
+ def initialize(clusterid=nil, kubeletrootdir=nil)
7331
+ @ClusterId = clusterid
7332
+ @KubeletRootDir = kubeletrootdir
7333
+ end
7334
+
7335
+ def deserialize(params)
7336
+ @ClusterId = params['ClusterId']
7337
+ @KubeletRootDir = params['KubeletRootDir']
7338
+ end
7339
+ end
7340
+
7341
+ # InstallLogAgent返回参数结构体
7342
+ class InstallLogAgentResponse < TencentCloud::Common::AbstractModel
7343
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7344
+ # @type RequestId: String
7345
+
7346
+ attr_accessor :RequestId
7347
+
7348
+ def initialize(requestid=nil)
7349
+ @RequestId = requestid
7350
+ end
7351
+
7352
+ def deserialize(params)
7353
+ @RequestId = params['RequestId']
7354
+ end
7355
+ end
7356
+
6880
7357
  # 集群的实例信息
6881
7358
  class Instance < TencentCloud::Common::AbstractModel
6882
7359
  # @param InstanceId: 实例ID
@@ -7740,6 +8217,33 @@ module TencentCloud
7740
8217
  end
7741
8218
  end
7742
8219
 
8220
+ # ModifyPrometheusAlertPolicy请求参数结构体
8221
+ class ModifyPrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
8222
+
8223
+
8224
+ def initialize()
8225
+ end
8226
+
8227
+ def deserialize(params)
8228
+ end
8229
+ end
8230
+
8231
+ # ModifyPrometheusAlertPolicy返回参数结构体
8232
+ class ModifyPrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
8233
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8234
+ # @type RequestId: String
8235
+
8236
+ attr_accessor :RequestId
8237
+
8238
+ def initialize(requestid=nil)
8239
+ @RequestId = requestid
8240
+ end
8241
+
8242
+ def deserialize(params)
8243
+ @RequestId = params['RequestId']
8244
+ end
8245
+ end
8246
+
7743
8247
  # ModifyPrometheusAlertRule请求参数结构体
7744
8248
  class ModifyPrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
7745
8249
  # @param InstanceId: 实例id
@@ -9447,6 +9951,33 @@ module TencentCloud
9447
9951
  end
9448
9952
  end
9449
9953
 
9954
+ # SyncPrometheusTemp请求参数结构体
9955
+ class SyncPrometheusTempRequest < TencentCloud::Common::AbstractModel
9956
+
9957
+
9958
+ def initialize()
9959
+ end
9960
+
9961
+ def deserialize(params)
9962
+ end
9963
+ end
9964
+
9965
+ # SyncPrometheusTemp返回参数结构体
9966
+ class SyncPrometheusTempResponse < TencentCloud::Common::AbstractModel
9967
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9968
+ # @type RequestId: String
9969
+
9970
+ attr_accessor :RequestId
9971
+
9972
+ def initialize(requestid=nil)
9973
+ @RequestId = requestid
9974
+ end
9975
+
9976
+ def deserialize(params)
9977
+ @RequestId = params['RequestId']
9978
+ end
9979
+ end
9980
+
9450
9981
  # SyncPrometheusTemplate请求参数结构体
9451
9982
  class SyncPrometheusTemplateRequest < TencentCloud::Common::AbstractModel
9452
9983
  # @param TemplateId: 实例id
@@ -9619,6 +10150,38 @@ module TencentCloud
9619
10150
  end
9620
10151
  end
9621
10152
 
10153
+ # UninstallLogAgent请求参数结构体
10154
+ class UninstallLogAgentRequest < TencentCloud::Common::AbstractModel
10155
+ # @param ClusterId: 集群ID
10156
+ # @type ClusterId: String
10157
+
10158
+ attr_accessor :ClusterId
10159
+
10160
+ def initialize(clusterid=nil)
10161
+ @ClusterId = clusterid
10162
+ end
10163
+
10164
+ def deserialize(params)
10165
+ @ClusterId = params['ClusterId']
10166
+ end
10167
+ end
10168
+
10169
+ # UninstallLogAgent返回参数结构体
10170
+ class UninstallLogAgentResponse < TencentCloud::Common::AbstractModel
10171
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10172
+ # @type RequestId: String
10173
+
10174
+ attr_accessor :RequestId
10175
+
10176
+ def initialize(requestid=nil)
10177
+ @RequestId = requestid
10178
+ end
10179
+
10180
+ def deserialize(params)
10181
+ @RequestId = params['RequestId']
10182
+ end
10183
+ end
10184
+
9622
10185
  # UpdateClusterVersion请求参数结构体
9623
10186
  class UpdateClusterVersionRequest < TencentCloud::Common::AbstractModel
9624
10187
  # @param ClusterId: 集群 Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.313
4
+ version: 1.0.314
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common