tencentcloud-sdk-tione 3.0.703 → 3.0.704

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: ad93732e3b3b2ed143666642ce2d91d18466fcb6
4
- data.tar.gz: 5d3050f3772c82a3e432b1e80b0b9c46f8796e39
3
+ metadata.gz: c350d457852175dc218d8c1387f3a90dff85cd43
4
+ data.tar.gz: 7e9edcf53d975dfd507b6a5f4d38b2e4a4d96242
5
5
  SHA512:
6
- metadata.gz: 7fae942a6fb94c44a9166d5719bb9093d4010e55f011544dde3f0d58665f4eec3c07728eb0c1c99b05fa962f0f6a27bb88fd06e81bb282a7fe99faa6ba3f7c7b
7
- data.tar.gz: 4f5b6119226eaf4cad6669ff530aa2e7208bae04a0c05cc7650309c9bda4f40b6f9976725deff83dacf9ded55447af5e1de2ae8a2df64d094428533db028e7f3
6
+ metadata.gz: 26335b6c34ddc0739b30bf446d2dbc05924f10cc74a463cb44ac85d15022f8926d480fa0bfd653ebe9659f9fb9719f574a87b69681b2ba30597850d34f9d694b
7
+ data.tar.gz: 2a139bd6df6a8973aa92c9ac33b629745eaf3001b525daabb26834151c754586403a47048fcf7057bb58608c5a3e0ebaf031b54b6f69b27021ca16272d7d75e9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.703
1
+ 3.0.704
@@ -773,6 +773,30 @@ module TencentCloud
773
773
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
774
  end
775
775
 
776
+ # 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API
777
+
778
+ # @param request: Request instance for DescribeEvents.
779
+ # @type request: :class:`Tencentcloud::tione::V20211111::DescribeEventsRequest`
780
+ # @rtype: :class:`Tencentcloud::tione::V20211111::DescribeEventsResponse`
781
+ def DescribeEvents(request)
782
+ body = send_request('DescribeEvents', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribeEventsResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
776
800
  # 查询推理镜像模板
777
801
 
778
802
  # @param request: Request instance for DescribeInferTemplates.
@@ -821,7 +845,7 @@ module TencentCloud
821
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
846
  end
823
847
 
824
- # 获取训练、推理、Notebook服务的日志 API
848
+ # 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
825
849
 
826
850
  # @param request: Request instance for DescribeLogs.
827
851
  # @type request: :class:`Tencentcloud::tione::V20211111::DescribeLogsRequest`
@@ -3593,6 +3593,114 @@ module TencentCloud
3593
3593
  end
3594
3594
  end
3595
3595
 
3596
+ # DescribeEvents请求参数结构体
3597
+ class DescribeEventsRequest < TencentCloud::Common::AbstractModel
3598
+ # @param Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测
3599
+ # 枚举值:
3600
+ # - TRAIN
3601
+ # - NOTEBOOK
3602
+ # - INFER
3603
+ # - BATCH
3604
+ # @type Service: String
3605
+ # @param ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:
3606
+ # - Service类型为TRAIN:
3607
+ # 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId
3608
+ # - Service类型为NOTEBOOK:
3609
+ # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName
3610
+ # - Service类型为INFER:
3611
+ # 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId
3612
+ # - Service类型为BATCH:
3613
+ # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId
3614
+ # @type ServiceId: String
3615
+ # @param StartTime: 查询事件最早发生的时间(RFC3339格式的时间字符串),默认值为当前时间的前一天
3616
+ # @type StartTime: String
3617
+ # @param EndTime: 查询事件最晚发生的时间(RFC3339格式的时间字符串),默认值为当前时间
3618
+ # @type EndTime: String
3619
+ # @param Limit: 分页Limit,默认值为100,最大值为100
3620
+ # @type Limit: Integer
3621
+ # @param Offset: 分页Offset,默认值为0
3622
+ # @type Offset: Integer
3623
+ # @param Order: 排列顺序(可选值为ASC, DESC ),默认为DESC
3624
+ # @type Order: String
3625
+ # @param OrderField: 排序的依据字段(可选值为FirstTimestamp, LastTimestamp),默认值为LastTimestamp
3626
+ # @type OrderField: String
3627
+ # @param Filters: 过滤条件
3628
+ # 注意:
3629
+ # 1. Filter.Name:目前支持ResourceKind(按事件关联的资源类型过滤);Type(按事件类型过滤)
3630
+ # 2. Filter.Values:
3631
+ # 对于Name为ResourceKind,Values的可选取值为Deployment, Replicaset, Pod等K8S资源类型;
3632
+ # 对于Name为Type,Values的可选取值仅为Normal或者Warning;
3633
+ # Values为多个的时候表示同时满足
3634
+ # 3. Filter. Negative和Filter. Fuzzy没有使用
3635
+ # @type Filters: Array
3636
+
3637
+ attr_accessor :Service, :ServiceId, :StartTime, :EndTime, :Limit, :Offset, :Order, :OrderField, :Filters
3638
+
3639
+ def initialize(service=nil, serviceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, order=nil, orderfield=nil, filters=nil)
3640
+ @Service = service
3641
+ @ServiceId = serviceid
3642
+ @StartTime = starttime
3643
+ @EndTime = endtime
3644
+ @Limit = limit
3645
+ @Offset = offset
3646
+ @Order = order
3647
+ @OrderField = orderfield
3648
+ @Filters = filters
3649
+ end
3650
+
3651
+ def deserialize(params)
3652
+ @Service = params['Service']
3653
+ @ServiceId = params['ServiceId']
3654
+ @StartTime = params['StartTime']
3655
+ @EndTime = params['EndTime']
3656
+ @Limit = params['Limit']
3657
+ @Offset = params['Offset']
3658
+ @Order = params['Order']
3659
+ @OrderField = params['OrderField']
3660
+ unless params['Filters'].nil?
3661
+ @Filters = []
3662
+ params['Filters'].each do |i|
3663
+ filter_tmp = Filter.new
3664
+ filter_tmp.deserialize(i)
3665
+ @Filters << filter_tmp
3666
+ end
3667
+ end
3668
+ end
3669
+ end
3670
+
3671
+ # DescribeEvents返回参数结构体
3672
+ class DescribeEventsResponse < TencentCloud::Common::AbstractModel
3673
+ # @param Events: 事件的列表
3674
+ # 注意:此字段可能返回 null,表示取不到有效值。
3675
+ # @type Events: Array
3676
+ # @param TotalCount: 此次查询的事件的个数
3677
+ # 注意:此字段可能返回 null,表示取不到有效值。
3678
+ # @type TotalCount: Integer
3679
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3680
+ # @type RequestId: String
3681
+
3682
+ attr_accessor :Events, :TotalCount, :RequestId
3683
+
3684
+ def initialize(events=nil, totalcount=nil, requestid=nil)
3685
+ @Events = events
3686
+ @TotalCount = totalcount
3687
+ @RequestId = requestid
3688
+ end
3689
+
3690
+ def deserialize(params)
3691
+ unless params['Events'].nil?
3692
+ @Events = []
3693
+ params['Events'].each do |i|
3694
+ event_tmp = Event.new
3695
+ event_tmp.deserialize(i)
3696
+ @Events << event_tmp
3697
+ end
3698
+ end
3699
+ @TotalCount = params['TotalCount']
3700
+ @RequestId = params['RequestId']
3701
+ end
3702
+ end
3703
+
3596
3704
  # DescribeInferTemplates请求参数结构体
3597
3705
  class DescribeInferTemplatesRequest < TencentCloud::Common::AbstractModel
3598
3706
 
@@ -3683,7 +3791,12 @@ module TencentCloud
3683
3791
 
3684
3792
  # DescribeLogs请求参数结构体
3685
3793
  class DescribeLogsRequest < TencentCloud::Common::AbstractModel
3686
- # @param Service: 查询哪个服务的事件(可选值为TRAIN, NOTEBOOK, INFER
3794
+ # @param Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测
3795
+ # 枚举值:
3796
+ # - TRAIN
3797
+ # - NOTEBOOK
3798
+ # - INFER
3799
+ # - BATCH
3687
3800
  # @type Service: String
3688
3801
  # @param StartTime: 日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时
3689
3802
  # @type StartTime: String
@@ -3691,7 +3804,26 @@ module TencentCloud
3691
3804
  # @type EndTime: String
3692
3805
  # @param Limit: 日志查询条数,默认值100,最大值100
3693
3806
  # @type Limit: Integer
3694
- # @param PodName: 查询哪个Pod的日志(支持结尾通配符*)
3807
+ # @param ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:
3808
+ # - Service类型为TRAIN:
3809
+ # 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId
3810
+ # - Service类型为NOTEBOOK:
3811
+ # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName
3812
+ # - Service类型为INFER:
3813
+ # 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId
3814
+ # - Service类型为BATCH:
3815
+ # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId
3816
+ # @type ServiceId: String
3817
+ # @param PodName: Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下:
3818
+ # - Service类型为TRAIN:
3819
+ # 调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames
3820
+ # - Service类型为NOTEBOOK:
3821
+ # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName
3822
+ # - Service类型为INFER:
3823
+ # 调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos
3824
+ # - Service类型为BATCH:
3825
+ # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList
3826
+ # 注:支持结尾通配符*
3695
3827
  # @type PodName: String
3696
3828
  # @param Order: 排序方向(可选值为ASC, DESC ),默认为DESC
3697
3829
  # @type Order: String
@@ -3706,13 +3838,14 @@ module TencentCloud
3706
3838
  # 3. Filter. Negative和Filter. Fuzzy没有使用
3707
3839
  # @type Filters: Array
3708
3840
 
3709
- attr_accessor :Service, :StartTime, :EndTime, :Limit, :PodName, :Order, :OrderField, :Context, :Filters
3841
+ attr_accessor :Service, :StartTime, :EndTime, :Limit, :ServiceId, :PodName, :Order, :OrderField, :Context, :Filters
3710
3842
 
3711
- def initialize(service=nil, starttime=nil, endtime=nil, limit=nil, podname=nil, order=nil, orderfield=nil, context=nil, filters=nil)
3843
+ def initialize(service=nil, starttime=nil, endtime=nil, limit=nil, serviceid=nil, podname=nil, order=nil, orderfield=nil, context=nil, filters=nil)
3712
3844
  @Service = service
3713
3845
  @StartTime = starttime
3714
3846
  @EndTime = endtime
3715
3847
  @Limit = limit
3848
+ @ServiceId = serviceid
3716
3849
  @PodName = podname
3717
3850
  @Order = order
3718
3851
  @OrderField = orderfield
@@ -3725,6 +3858,7 @@ module TencentCloud
3725
3858
  @StartTime = params['StartTime']
3726
3859
  @EndTime = params['EndTime']
3727
3860
  @Limit = params['Limit']
3861
+ @ServiceId = params['ServiceId']
3728
3862
  @PodName = params['PodName']
3729
3863
  @Order = params['Order']
3730
3864
  @OrderField = params['OrderField']
@@ -5172,6 +5306,58 @@ module TencentCloud
5172
5306
  end
5173
5307
  end
5174
5308
 
5309
+ # K8s的Event
5310
+ class Event < TencentCloud::Common::AbstractModel
5311
+ # @param Id: 事件的id
5312
+ # 注意:此字段可能返回 null,表示取不到有效值。
5313
+ # @type Id: String
5314
+ # @param Message: 事件的具体信息
5315
+ # 注意:此字段可能返回 null,表示取不到有效值。
5316
+ # @type Message: String
5317
+ # @param FirstTimestamp: 事件第一次发生的时间
5318
+ # 注意:此字段可能返回 null,表示取不到有效值。
5319
+ # @type FirstTimestamp: String
5320
+ # @param LastTimestamp: 事件最后一次发生的时间
5321
+ # 注意:此字段可能返回 null,表示取不到有效值。
5322
+ # @type LastTimestamp: String
5323
+ # @param Count: 事件发生的次数
5324
+ # 注意:此字段可能返回 null,表示取不到有效值。
5325
+ # @type Count: Integer
5326
+ # @param Type: 事件的类型
5327
+ # 注意:此字段可能返回 null,表示取不到有效值。
5328
+ # @type Type: String
5329
+ # @param ResourceKind: 事件关联的资源的类型
5330
+ # 注意:此字段可能返回 null,表示取不到有效值。
5331
+ # @type ResourceKind: String
5332
+ # @param ResourceName: 事件关联的资源的名字
5333
+ # 注意:此字段可能返回 null,表示取不到有效值。
5334
+ # @type ResourceName: String
5335
+
5336
+ attr_accessor :Id, :Message, :FirstTimestamp, :LastTimestamp, :Count, :Type, :ResourceKind, :ResourceName
5337
+
5338
+ def initialize(id=nil, message=nil, firsttimestamp=nil, lasttimestamp=nil, count=nil, type=nil, resourcekind=nil, resourcename=nil)
5339
+ @Id = id
5340
+ @Message = message
5341
+ @FirstTimestamp = firsttimestamp
5342
+ @LastTimestamp = lasttimestamp
5343
+ @Count = count
5344
+ @Type = type
5345
+ @ResourceKind = resourcekind
5346
+ @ResourceName = resourcename
5347
+ end
5348
+
5349
+ def deserialize(params)
5350
+ @Id = params['Id']
5351
+ @Message = params['Message']
5352
+ @FirstTimestamp = params['FirstTimestamp']
5353
+ @LastTimestamp = params['LastTimestamp']
5354
+ @Count = params['Count']
5355
+ @Type = params['Type']
5356
+ @ResourceKind = params['ResourceKind']
5357
+ @ResourceName = params['ResourceName']
5358
+ end
5359
+ end
5360
+
5175
5361
  # 过滤器
5176
5362
  class Filter < TencentCloud::Common::AbstractModel
5177
5363
  # @param Name: 过滤字段名称
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tione
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.703
4
+ version: 3.0.704
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud