tencentcloud-sdk-tione 3.0.1037 → 3.0.1038
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211111/client.rb +24 -0
- data/lib/v20211111/models.rb +150 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86314b965a06568deab98c2309330b70e4b5f7eb
|
4
|
+
data.tar.gz: cf96c0bc075eae43d2f0462c2560676e2929ea06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37fbf7da0c0d2828f5f93d83295bafd599d076b5de579729b70fb27be801e40501660c61b87c696cdc23d83d10c4d6fc248afe806d3d85e4c96b888fcc96c9f
|
7
|
+
data.tar.gz: 1e5057d79f8dbd7f30d3ded0289cb301f2c9c94a536f3bacfd6ec6748577aae6670fea3d6c9608ee1bc14eaa7892225e46a894fe76ba407111da18dece6de82f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1038
|
data/lib/v20211111/client.rb
CHANGED
@@ -559,6 +559,30 @@ module TencentCloud
|
|
559
559
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
560
|
end
|
561
561
|
|
562
|
+
# 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
|
563
|
+
|
564
|
+
# @param request: Request instance for DescribeLogs.
|
565
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeLogsRequest`
|
566
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeLogsResponse`
|
567
|
+
def DescribeLogs(request)
|
568
|
+
body = send_request('DescribeLogs', request.serialize)
|
569
|
+
response = JSON.parse(body)
|
570
|
+
if response['Response'].key?('Error') == false
|
571
|
+
model = DescribeLogsResponse.new
|
572
|
+
model.deserialize(response['Response'])
|
573
|
+
model
|
574
|
+
else
|
575
|
+
code = response['Response']['Error']['Code']
|
576
|
+
message = response['Response']['Error']['Message']
|
577
|
+
reqid = response['Response']['RequestId']
|
578
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
579
|
+
end
|
580
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
581
|
+
raise e
|
582
|
+
rescue StandardError => e
|
583
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
584
|
+
end
|
585
|
+
|
562
586
|
# 查询模型优化任务详情
|
563
587
|
|
564
588
|
# @param request: Request instance for DescribeModelAccelerateTask.
|
data/lib/v20211111/models.rb
CHANGED
@@ -2606,6 +2606,124 @@ module TencentCloud
|
|
2606
2606
|
end
|
2607
2607
|
end
|
2608
2608
|
|
2609
|
+
# DescribeLogs请求参数结构体
|
2610
|
+
class DescribeLogsRequest < TencentCloud::Common::AbstractModel
|
2611
|
+
# @param Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测
|
2612
|
+
# 枚举值:
|
2613
|
+
# - TRAIN
|
2614
|
+
# - NOTEBOOK
|
2615
|
+
# - INFER
|
2616
|
+
# - BATCH
|
2617
|
+
# @type Service: String
|
2618
|
+
# @param StartTime: 日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时
|
2619
|
+
# @type StartTime: String
|
2620
|
+
# @param EndTime: 日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间
|
2621
|
+
# @type EndTime: String
|
2622
|
+
# @param Limit: 日志查询条数,默认值100,最大值100
|
2623
|
+
# @type Limit: Integer
|
2624
|
+
# @param ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:
|
2625
|
+
# - Service类型为TRAIN:
|
2626
|
+
# 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId
|
2627
|
+
# - Service类型为NOTEBOOK:
|
2628
|
+
# 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName
|
2629
|
+
# - Service类型为INFER:
|
2630
|
+
# 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId
|
2631
|
+
# - Service类型为BATCH:
|
2632
|
+
# 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId
|
2633
|
+
# @type ServiceId: String
|
2634
|
+
# @param PodName: Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下:
|
2635
|
+
# - Service类型为TRAIN:
|
2636
|
+
# 调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames
|
2637
|
+
# - Service类型为NOTEBOOK:
|
2638
|
+
# 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName
|
2639
|
+
# - Service类型为INFER:
|
2640
|
+
# 调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos
|
2641
|
+
# - Service类型为BATCH:
|
2642
|
+
# 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList
|
2643
|
+
# 注:支持结尾通配符*
|
2644
|
+
# @type PodName: String
|
2645
|
+
# @param Order: 排序方向(可选值为ASC, DESC ),默认为DESC
|
2646
|
+
# @type Order: String
|
2647
|
+
# @param OrderField: 按哪个字段排序(可选值为Timestamp),默认值为Timestamp
|
2648
|
+
# @type OrderField: String
|
2649
|
+
# @param Context: 日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回
|
2650
|
+
# @type Context: String
|
2651
|
+
# @param Filters: 过滤条件
|
2652
|
+
# 注意:
|
2653
|
+
# 1. Filter.Name:目前只支持Key(也就是按关键字过滤日志)
|
2654
|
+
# 2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足
|
2655
|
+
# 3. Filter. Negative和Filter. Fuzzy没有使用
|
2656
|
+
# @type Filters: Array
|
2657
|
+
|
2658
|
+
attr_accessor :Service, :StartTime, :EndTime, :Limit, :ServiceId, :PodName, :Order, :OrderField, :Context, :Filters
|
2659
|
+
|
2660
|
+
def initialize(service=nil, starttime=nil, endtime=nil, limit=nil, serviceid=nil, podname=nil, order=nil, orderfield=nil, context=nil, filters=nil)
|
2661
|
+
@Service = service
|
2662
|
+
@StartTime = starttime
|
2663
|
+
@EndTime = endtime
|
2664
|
+
@Limit = limit
|
2665
|
+
@ServiceId = serviceid
|
2666
|
+
@PodName = podname
|
2667
|
+
@Order = order
|
2668
|
+
@OrderField = orderfield
|
2669
|
+
@Context = context
|
2670
|
+
@Filters = filters
|
2671
|
+
end
|
2672
|
+
|
2673
|
+
def deserialize(params)
|
2674
|
+
@Service = params['Service']
|
2675
|
+
@StartTime = params['StartTime']
|
2676
|
+
@EndTime = params['EndTime']
|
2677
|
+
@Limit = params['Limit']
|
2678
|
+
@ServiceId = params['ServiceId']
|
2679
|
+
@PodName = params['PodName']
|
2680
|
+
@Order = params['Order']
|
2681
|
+
@OrderField = params['OrderField']
|
2682
|
+
@Context = params['Context']
|
2683
|
+
unless params['Filters'].nil?
|
2684
|
+
@Filters = []
|
2685
|
+
params['Filters'].each do |i|
|
2686
|
+
filter_tmp = Filter.new
|
2687
|
+
filter_tmp.deserialize(i)
|
2688
|
+
@Filters << filter_tmp
|
2689
|
+
end
|
2690
|
+
end
|
2691
|
+
end
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# DescribeLogs返回参数结构体
|
2695
|
+
class DescribeLogsResponse < TencentCloud::Common::AbstractModel
|
2696
|
+
# @param Context: 分页的游标
|
2697
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2698
|
+
# @type Context: String
|
2699
|
+
# @param Content: 日志数组
|
2700
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2701
|
+
# @type Content: Array
|
2702
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2703
|
+
# @type RequestId: String
|
2704
|
+
|
2705
|
+
attr_accessor :Context, :Content, :RequestId
|
2706
|
+
|
2707
|
+
def initialize(context=nil, content=nil, requestid=nil)
|
2708
|
+
@Context = context
|
2709
|
+
@Content = content
|
2710
|
+
@RequestId = requestid
|
2711
|
+
end
|
2712
|
+
|
2713
|
+
def deserialize(params)
|
2714
|
+
@Context = params['Context']
|
2715
|
+
unless params['Content'].nil?
|
2716
|
+
@Content = []
|
2717
|
+
params['Content'].each do |i|
|
2718
|
+
logidentity_tmp = LogIdentity.new
|
2719
|
+
logidentity_tmp.deserialize(i)
|
2720
|
+
@Content << logidentity_tmp
|
2721
|
+
end
|
2722
|
+
end
|
2723
|
+
@RequestId = params['RequestId']
|
2724
|
+
end
|
2725
|
+
end
|
2726
|
+
|
2609
2727
|
# DescribeModelAccelerateTask请求参数结构体
|
2610
2728
|
class DescribeModelAccelerateTaskRequest < TencentCloud::Common::AbstractModel
|
2611
2729
|
# @param ModelAccTaskId: 模型加速任务ID
|
@@ -4203,6 +4321,38 @@ module TencentCloud
|
|
4203
4321
|
end
|
4204
4322
|
end
|
4205
4323
|
|
4324
|
+
# 单条日志数据结构
|
4325
|
+
class LogIdentity < TencentCloud::Common::AbstractModel
|
4326
|
+
# @param Id: 单条日志的ID
|
4327
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4328
|
+
# @type Id: String
|
4329
|
+
# @param Message: 单条日志的内容
|
4330
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4331
|
+
# @type Message: String
|
4332
|
+
# @param PodName: 这条日志对应的Pod名称
|
4333
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4334
|
+
# @type PodName: String
|
4335
|
+
# @param Timestamp: 日志的时间戳(RFC3339格式的时间字符串)
|
4336
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4337
|
+
# @type Timestamp: String
|
4338
|
+
|
4339
|
+
attr_accessor :Id, :Message, :PodName, :Timestamp
|
4340
|
+
|
4341
|
+
def initialize(id=nil, message=nil, podname=nil, timestamp=nil)
|
4342
|
+
@Id = id
|
4343
|
+
@Message = message
|
4344
|
+
@PodName = podname
|
4345
|
+
@Timestamp = timestamp
|
4346
|
+
end
|
4347
|
+
|
4348
|
+
def deserialize(params)
|
4349
|
+
@Id = params['Id']
|
4350
|
+
@Message = params['Message']
|
4351
|
+
@PodName = params['PodName']
|
4352
|
+
@Timestamp = params['Timestamp']
|
4353
|
+
end
|
4354
|
+
end
|
4355
|
+
|
4206
4356
|
# 对话输入内容
|
4207
4357
|
class Message < TencentCloud::Common::AbstractModel
|
4208
4358
|
# @param Role: 角色名。支持三个角色:system、user、assistant,其中system仅开头可出现一次,也可忽略。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tione
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1038
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|