tencentcloud-sdk-monitor 1.0.224 → 1.0.225

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: 0454d1fcbb9e1412021550b775db1ee86cd8b69b
4
- data.tar.gz: edc24c0f28eef90660e1f05b192b9fdabd0faa74
3
+ metadata.gz: 7dcbf9ffce71f0c3e747dc433ad61748b1650a2c
4
+ data.tar.gz: c0d158beedea04b9463f5daddd37bed446aab6e6
5
5
  SHA512:
6
- metadata.gz: 9b1f2c1c1b7ae347338ec2d59456b6f65602d114baadb340a1642169c0f664e0b5f8ba89949ec06457d0f69c78d7a25a46eca8913e1f980fc1fc5b8d68a305e6
7
- data.tar.gz: 2c5f46f3c36f4c920d9bcd40e9691dfa81d02cf43dffaad3ad29deab04c5cc492f8990b50208d07cc178063049bd02c67c8cf040f651328bbd7b6703e3da12da
6
+ metadata.gz: 26c3f5d8241495b2701b378eff0b4ac1ebf0020c602686f7a81657e70fb9b91252dfb24bfe5cf528cc007e906d01d93b74caab4be8431cdaa42420c74d8a8424
7
+ data.tar.gz: 28946026ab6cb2c2bd247c221d8957e383dadf94327520e306539776023a785ee4f6b3bf8294e0aaa99890456315b56ed08489b14c82a63a1c99cc59fc576506
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.224
1
+ 1.0.225
@@ -781,6 +781,34 @@ module TencentCloud
781
781
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
782
782
  end
783
783
 
784
+ # 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
785
+ # <ul>
786
+ # <li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
787
+ # <li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
788
+ # </ul>
789
+
790
+ # @param request: Request instance for DescribePrometheusInstances.
791
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesRequest`
792
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesResponse`
793
+ def DescribePrometheusInstances(request)
794
+ body = send_request('DescribePrometheusInstances', request.serialize)
795
+ response = JSON.parse(body)
796
+ if response['Response'].key?('Error') == false
797
+ model = DescribePrometheusInstancesResponse.new
798
+ model.deserialize(response['Response'])
799
+ model
800
+ else
801
+ code = response['Response']['Error']['Code']
802
+ message = response['Response']['Error']['Message']
803
+ reqid = response['Response']['RequestId']
804
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
805
+ end
806
+ rescue TencentCloud::Common::TencentCloudSDKException => e
807
+ raise e
808
+ rescue StandardError => e
809
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
810
+ end
811
+
784
812
  # 列出在腾讯云容器服务下创建的 Prometheus 服务发现。
785
813
  # <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
786
814
  # <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
@@ -4348,6 +4348,99 @@ module TencentCloud
4348
4348
  end
4349
4349
  end
4350
4350
 
4351
+ # DescribePrometheusInstances请求参数结构体
4352
+ class DescribePrometheusInstancesRequest < TencentCloud::Common::AbstractModel
4353
+ # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
4354
+ # @type InstanceIds: Array
4355
+ # @param InstanceStatus: 按照【实例状态】进行过滤。
4356
+ # <ul>
4357
+ # <li>1:正在创建</li>
4358
+ # <li>2:运行中</li>
4359
+ # <li>3:异常</li>
4360
+ # <li>4:重建中</li>
4361
+ # <li>5:销毁中</li>
4362
+ # <li>6:已停服</li>
4363
+ # <li>8:欠费停服中</li>
4364
+ # <li>9:欠费已停服</li>
4365
+ # </ul>
4366
+ # @type InstanceStatus: Array
4367
+ # @param InstanceName: 按照【实例名称】进行过滤。
4368
+ # @type InstanceName: String
4369
+ # @param Zones: 按照【可用区】进行过滤。可用区形如:ap-guangzhou-1。
4370
+ # @type Zones: Array
4371
+ # @param TagFilters: 按照【标签键值对】进行过滤。tag-key使用具体的标签键进行替换。
4372
+ # @type TagFilters: Array
4373
+ # @param IPv4Address: 按照【实例的IPv4地址】进行过滤。
4374
+ # @type IPv4Address: Array
4375
+ # @param Limit: 返回数量,默认为20,最大值为100。
4376
+ # @type Limit: Integer
4377
+ # @param Offset: 偏移量,默认为0。
4378
+ # @type Offset: Integer
4379
+
4380
+ attr_accessor :InstanceIds, :InstanceStatus, :InstanceName, :Zones, :TagFilters, :IPv4Address, :Limit, :Offset
4381
+
4382
+ def initialize(instanceids=nil, instancestatus=nil, instancename=nil, zones=nil, tagfilters=nil, ipv4address=nil, limit=nil, offset=nil)
4383
+ @InstanceIds = instanceids
4384
+ @InstanceStatus = instancestatus
4385
+ @InstanceName = instancename
4386
+ @Zones = zones
4387
+ @TagFilters = tagfilters
4388
+ @IPv4Address = ipv4address
4389
+ @Limit = limit
4390
+ @Offset = offset
4391
+ end
4392
+
4393
+ def deserialize(params)
4394
+ @InstanceIds = params['InstanceIds']
4395
+ @InstanceStatus = params['InstanceStatus']
4396
+ @InstanceName = params['InstanceName']
4397
+ @Zones = params['Zones']
4398
+ unless params['TagFilters'].nil?
4399
+ @TagFilters = []
4400
+ params['TagFilters'].each do |i|
4401
+ prometheustag_tmp = PrometheusTag.new
4402
+ prometheustag_tmp.deserialize(i)
4403
+ @TagFilters << prometheustag_tmp
4404
+ end
4405
+ end
4406
+ @IPv4Address = params['IPv4Address']
4407
+ @Limit = params['Limit']
4408
+ @Offset = params['Offset']
4409
+ end
4410
+ end
4411
+
4412
+ # DescribePrometheusInstances返回参数结构体
4413
+ class DescribePrometheusInstancesResponse < TencentCloud::Common::AbstractModel
4414
+ # @param InstanceSet: 实例详细信息列表。
4415
+ # 注意:此字段可能返回 null,表示取不到有效值。
4416
+ # @type InstanceSet: Array
4417
+ # @param TotalCount: 符合条件的实例数量。
4418
+ # @type TotalCount: Integer
4419
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4420
+ # @type RequestId: String
4421
+
4422
+ attr_accessor :InstanceSet, :TotalCount, :RequestId
4423
+
4424
+ def initialize(instanceset=nil, totalcount=nil, requestid=nil)
4425
+ @InstanceSet = instanceset
4426
+ @TotalCount = totalcount
4427
+ @RequestId = requestid
4428
+ end
4429
+
4430
+ def deserialize(params)
4431
+ unless params['InstanceSet'].nil?
4432
+ @InstanceSet = []
4433
+ params['InstanceSet'].each do |i|
4434
+ prometheusinstancesitem_tmp = PrometheusInstancesItem.new
4435
+ prometheusinstancesitem_tmp.deserialize(i)
4436
+ @InstanceSet << prometheusinstancesitem_tmp
4437
+ end
4438
+ end
4439
+ @TotalCount = params['TotalCount']
4440
+ @RequestId = params['RequestId']
4441
+ end
4442
+ end
4443
+
4351
4444
  # DescribeServiceDiscovery请求参数结构体
4352
4445
  class DescribeServiceDiscoveryRequest < TencentCloud::Common::AbstractModel
4353
4446
  # @param InstanceId: Prometheus 实例 ID
@@ -5535,6 +5628,226 @@ module TencentCloud
5535
5628
  end
5536
5629
  end
5537
5630
 
5631
+ # 实例的授权信息
5632
+ class PrometheusInstanceGrantInfo < TencentCloud::Common::AbstractModel
5633
+ # @param HasChargeOperation: 是否有计费操作权限(1=有,2=无)
5634
+ # @type HasChargeOperation: Integer
5635
+ # @param HasVpcDisplay: 是否显示VPC信息的权限(1=有,2=无)
5636
+ # @type HasVpcDisplay: Integer
5637
+ # @param HasGrafanaStatusChange: 是否可修改Grafana的状态(1=有,2=无)
5638
+ # @type HasGrafanaStatusChange: Integer
5639
+ # @param HasAgentManage: 是否有管理agent的权限(1=有,2=无)
5640
+ # @type HasAgentManage: Integer
5641
+ # @param HasTkeManage: 是否有管理TKE集成的权限(1=有,2=无)
5642
+ # @type HasTkeManage: Integer
5643
+ # @param HasApiOperation: 是否显示API等信息(1=有, 2=无)
5644
+ # @type HasApiOperation: Integer
5645
+
5646
+ attr_accessor :HasChargeOperation, :HasVpcDisplay, :HasGrafanaStatusChange, :HasAgentManage, :HasTkeManage, :HasApiOperation
5647
+
5648
+ def initialize(haschargeoperation=nil, hasvpcdisplay=nil, hasgrafanastatuschange=nil, hasagentmanage=nil, hastkemanage=nil, hasapioperation=nil)
5649
+ @HasChargeOperation = haschargeoperation
5650
+ @HasVpcDisplay = hasvpcdisplay
5651
+ @HasGrafanaStatusChange = hasgrafanastatuschange
5652
+ @HasAgentManage = hasagentmanage
5653
+ @HasTkeManage = hastkemanage
5654
+ @HasApiOperation = hasapioperation
5655
+ end
5656
+
5657
+ def deserialize(params)
5658
+ @HasChargeOperation = params['HasChargeOperation']
5659
+ @HasVpcDisplay = params['HasVpcDisplay']
5660
+ @HasGrafanaStatusChange = params['HasGrafanaStatusChange']
5661
+ @HasAgentManage = params['HasAgentManage']
5662
+ @HasTkeManage = params['HasTkeManage']
5663
+ @HasApiOperation = params['HasApiOperation']
5664
+ end
5665
+ end
5666
+
5667
+ # Prometheus 服务响应体
5668
+ class PrometheusInstancesItem < TencentCloud::Common::AbstractModel
5669
+ # @param InstanceId: 实例ID。
5670
+ # @type InstanceId: String
5671
+ # @param InstanceName: 实例名称。
5672
+ # @type InstanceName: String
5673
+ # @param InstanceChargeType: 实例计费模式。取值范围:
5674
+ # <ul>
5675
+ # <li>2:包年包月</li>
5676
+ # <li>3:按量</li>
5677
+ # </ul>
5678
+ # @type InstanceChargeType: Integer
5679
+ # @param RegionId: 地域 ID
5680
+ # @type RegionId: Integer
5681
+ # @param Zone: 可用区
5682
+ # @type Zone: String
5683
+ # @param VpcId: VPC ID
5684
+ # @type VpcId: String
5685
+ # @param SubnetId: 子网 ID
5686
+ # @type SubnetId: String
5687
+ # @param DataRetentionTime: 存储周期
5688
+ # 注意:此字段可能返回 null,表示取不到有效值。
5689
+ # @type DataRetentionTime: Integer
5690
+ # @param InstanceStatus: 实例业务状态。取值范围:
5691
+ # <ul>
5692
+ # <li>1:正在创建</li>
5693
+ # <li>2:运行中</li>
5694
+ # <li>3:异常</li>
5695
+ # <li>4:重建中</li>
5696
+ # <li>5:销毁中</li>
5697
+ # <li>6:已停服</li>
5698
+ # <li>8:欠费停服中</li>
5699
+ # <li>9:欠费已停服</li>
5700
+ # </ul>
5701
+ # @type InstanceStatus: Integer
5702
+ # @param GrafanaURL: Grafana 面板 URL
5703
+ # 注意:此字段可能返回 null,表示取不到有效值。
5704
+ # @type GrafanaURL: String
5705
+ # @param CreatedAt: 创建时间
5706
+ # @type CreatedAt: String
5707
+ # @param EnableGrafana: 是否开启 Grafana
5708
+ # <li>0:不开启</li>
5709
+ # <li>1:开启</li>
5710
+ # @type EnableGrafana: Integer
5711
+ # @param IPv4Address: 实例IPV4地址
5712
+ # 注意:此字段可能返回 null,表示取不到有效值。
5713
+ # @type IPv4Address: String
5714
+ # @param TagSpecification: 实例关联的标签列表。
5715
+ # 注意:此字段可能返回 null,表示取不到有效值。
5716
+ # @type TagSpecification: Array
5717
+ # @param ExpireTime: 购买的实例过期时间
5718
+ # 注意:此字段可能返回 null,表示取不到有效值。
5719
+ # @type ExpireTime: String
5720
+ # @param ChargeStatus: 计费状态
5721
+ # <ul>
5722
+ # <li>1:正常</li>
5723
+ # <li>2:过期</li>
5724
+ # <li>3:销毁</li>
5725
+ # <li>4:分配中</li>
5726
+ # <li>5:分配失败</li>
5727
+ # </ul>
5728
+ # 注意:此字段可能返回 null,表示取不到有效值。
5729
+ # @type ChargeStatus: Integer
5730
+ # @param SpecName: 规格名称
5731
+ # 注意:此字段可能返回 null,表示取不到有效值。
5732
+ # @type SpecName: String
5733
+ # @param AutoRenewFlag: 自动续费标记
5734
+ # <ul>
5735
+ # <li>0:不自动续费</li>
5736
+ # <li>1:开启自动续费</li>
5737
+ # <li>2:禁止自动续费</li>
5738
+ # <li>-1:无效</ii>
5739
+ # </ul>
5740
+ # 注意:此字段可能返回 null,表示取不到有效值。
5741
+ # @type AutoRenewFlag: Integer
5742
+ # @param IsNearExpire: 是否快过期
5743
+ # <ul>
5744
+ # <li>0:否</li>
5745
+ # <li>1:快过期</li>
5746
+ # </ul>
5747
+ # 注意:此字段可能返回 null,表示取不到有效值。
5748
+ # @type IsNearExpire: Integer
5749
+ # @param AuthToken: 数据写入需要的 Token
5750
+ # 注意:此字段可能返回 null,表示取不到有效值。
5751
+ # @type AuthToken: String
5752
+ # @param RemoteWrite: Prometheus Remote Write 的地址
5753
+ # 注意:此字段可能返回 null,表示取不到有效值。
5754
+ # @type RemoteWrite: String
5755
+ # @param ApiRootPath: Prometheus HTTP Api 根地址
5756
+ # 注意:此字段可能返回 null,表示取不到有效值。
5757
+ # @type ApiRootPath: String
5758
+ # @param ProxyAddress: Proxy 的地址
5759
+ # 注意:此字段可能返回 null,表示取不到有效值。
5760
+ # @type ProxyAddress: String
5761
+ # @param GrafanaStatus: Grafana 运行状态
5762
+ # <ul>
5763
+ # <li>1:正在创建</li>
5764
+ # <li>2:运行中</li>
5765
+ # <li>3:异常</li>
5766
+ # <li>4:重启中</li>
5767
+ # <li>5:销毁中</li>
5768
+ # <li>6:已停机</li>
5769
+ # <li>7:已删除</li>
5770
+ # </ul>
5771
+ # 注意:此字段可能返回 null,表示取不到有效值。
5772
+ # @type GrafanaStatus: Integer
5773
+ # @param GrafanaIpWhiteList: Grafana IP 白名单列表,使用英文分号分隔
5774
+ # 注意:此字段可能返回 null,表示取不到有效值。
5775
+ # @type GrafanaIpWhiteList: String
5776
+ # @param Grant: 实例的授权信息
5777
+ # 注意:此字段可能返回 null,表示取不到有效值。
5778
+ # @type Grant: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusInstanceGrantInfo`
5779
+
5780
+ attr_accessor :InstanceId, :InstanceName, :InstanceChargeType, :RegionId, :Zone, :VpcId, :SubnetId, :DataRetentionTime, :InstanceStatus, :GrafanaURL, :CreatedAt, :EnableGrafana, :IPv4Address, :TagSpecification, :ExpireTime, :ChargeStatus, :SpecName, :AutoRenewFlag, :IsNearExpire, :AuthToken, :RemoteWrite, :ApiRootPath, :ProxyAddress, :GrafanaStatus, :GrafanaIpWhiteList, :Grant
5781
+
5782
+ def initialize(instanceid=nil, instancename=nil, instancechargetype=nil, regionid=nil, zone=nil, vpcid=nil, subnetid=nil, dataretentiontime=nil, instancestatus=nil, grafanaurl=nil, createdat=nil, enablegrafana=nil, ipv4address=nil, tagspecification=nil, expiretime=nil, chargestatus=nil, specname=nil, autorenewflag=nil, isnearexpire=nil, authtoken=nil, remotewrite=nil, apirootpath=nil, proxyaddress=nil, grafanastatus=nil, grafanaipwhitelist=nil, grant=nil)
5783
+ @InstanceId = instanceid
5784
+ @InstanceName = instancename
5785
+ @InstanceChargeType = instancechargetype
5786
+ @RegionId = regionid
5787
+ @Zone = zone
5788
+ @VpcId = vpcid
5789
+ @SubnetId = subnetid
5790
+ @DataRetentionTime = dataretentiontime
5791
+ @InstanceStatus = instancestatus
5792
+ @GrafanaURL = grafanaurl
5793
+ @CreatedAt = createdat
5794
+ @EnableGrafana = enablegrafana
5795
+ @IPv4Address = ipv4address
5796
+ @TagSpecification = tagspecification
5797
+ @ExpireTime = expiretime
5798
+ @ChargeStatus = chargestatus
5799
+ @SpecName = specname
5800
+ @AutoRenewFlag = autorenewflag
5801
+ @IsNearExpire = isnearexpire
5802
+ @AuthToken = authtoken
5803
+ @RemoteWrite = remotewrite
5804
+ @ApiRootPath = apirootpath
5805
+ @ProxyAddress = proxyaddress
5806
+ @GrafanaStatus = grafanastatus
5807
+ @GrafanaIpWhiteList = grafanaipwhitelist
5808
+ @Grant = grant
5809
+ end
5810
+
5811
+ def deserialize(params)
5812
+ @InstanceId = params['InstanceId']
5813
+ @InstanceName = params['InstanceName']
5814
+ @InstanceChargeType = params['InstanceChargeType']
5815
+ @RegionId = params['RegionId']
5816
+ @Zone = params['Zone']
5817
+ @VpcId = params['VpcId']
5818
+ @SubnetId = params['SubnetId']
5819
+ @DataRetentionTime = params['DataRetentionTime']
5820
+ @InstanceStatus = params['InstanceStatus']
5821
+ @GrafanaURL = params['GrafanaURL']
5822
+ @CreatedAt = params['CreatedAt']
5823
+ @EnableGrafana = params['EnableGrafana']
5824
+ @IPv4Address = params['IPv4Address']
5825
+ unless params['TagSpecification'].nil?
5826
+ @TagSpecification = []
5827
+ params['TagSpecification'].each do |i|
5828
+ prometheustag_tmp = PrometheusTag.new
5829
+ prometheustag_tmp.deserialize(i)
5830
+ @TagSpecification << prometheustag_tmp
5831
+ end
5832
+ end
5833
+ @ExpireTime = params['ExpireTime']
5834
+ @ChargeStatus = params['ChargeStatus']
5835
+ @SpecName = params['SpecName']
5836
+ @AutoRenewFlag = params['AutoRenewFlag']
5837
+ @IsNearExpire = params['IsNearExpire']
5838
+ @AuthToken = params['AuthToken']
5839
+ @RemoteWrite = params['RemoteWrite']
5840
+ @ApiRootPath = params['ApiRootPath']
5841
+ @ProxyAddress = params['ProxyAddress']
5842
+ @GrafanaStatus = params['GrafanaStatus']
5843
+ @GrafanaIpWhiteList = params['GrafanaIpWhiteList']
5844
+ unless params['Grant'].nil?
5845
+ @Grant = PrometheusInstanceGrantInfo.new
5846
+ @Grant.deserialize(params['Grant'])
5847
+ end
5848
+ end
5849
+ end
5850
+
5538
5851
  # prometheus 报警规则 KV 参数
5539
5852
  class PrometheusRuleKV < TencentCloud::Common::AbstractModel
5540
5853
  # @param Key: 键
@@ -5641,6 +5954,27 @@ module TencentCloud
5641
5954
  end
5642
5955
  end
5643
5956
 
5957
+ # Prometheus 托管服务标签
5958
+ class PrometheusTag < TencentCloud::Common::AbstractModel
5959
+ # @param Key: 标签的健值
5960
+ # @type Key: String
5961
+ # @param Value: 标签对应的值
5962
+ # 注意:此字段可能返回 null,表示取不到有效值。
5963
+ # @type Value: String
5964
+
5965
+ attr_accessor :Key, :Value
5966
+
5967
+ def initialize(key=nil, value=nil)
5968
+ @Key = key
5969
+ @Value = value
5970
+ end
5971
+
5972
+ def deserialize(params)
5973
+ @Key = params['Key']
5974
+ @Value = params['Value']
5975
+ end
5976
+ end
5977
+
5644
5978
  # PutMonitorData请求参数结构体
5645
5979
  class PutMonitorDataRequest < TencentCloud::Common::AbstractModel
5646
5980
  # @param Metrics: 一组指标和数据
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.224
4
+ version: 1.0.225
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-15 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common