v20180226

package
v3.0.233+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-02-26"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateJob

func (c *Client) CreateJob(request *CreateJobRequest) (response *CreateJobResponse, err error)

创建训练任务

func (*Client) CreateModel

func (c *Client) CreateModel(request *CreateModelRequest) (response *CreateModelResponse, err error)

部署模型,用以对外提供服务。有两种部署模式:`无服务器模式` 和 `集群模式`。`无服务器模式` 下,模型文件被部署到无服务器云函数,即 [SCF](https://cloud.tencent.com/product/scf),用户可以在其控制台上进一步操作。`集群模式` 下,模型文件被部署到 TI-A 的计算集群中。

func (*Client) DeleteJob

func (c *Client) DeleteJob(request *DeleteJobRequest) (response *DeleteJobResponse, err error)

删除训练任务

func (*Client) DeleteModel

func (c *Client) DeleteModel(request *DeleteModelRequest) (response *DeleteModelResponse, err error)

删除指定的部署模型。模型有两种部署模式:`无服务器模式` 和 `集群模式`。`无服务器模式` 下,模型文件被部署到无服务器云函数,即 [SCF](https://cloud.tencent.com/product/scf),用户可以在其控制台上进一步操作。`集群模式` 下,模型文件被部署到 TI-A 的计算集群中。

func (*Client) DescribeJob

func (c *Client) DescribeJob(request *DescribeJobRequest) (response *DescribeJobResponse, err error)

获取训练任务详情

func (*Client) DescribeModel

func (c *Client) DescribeModel(request *DescribeModelRequest) (response *DescribeModelResponse, err error)

描述已经部署的某个模型。而模型部署有两种模式:`无服务器模式` 和 `集群模式`。`无服务器模式` 下,模型文件被部署到无服务器云函数,即 [SCF](https://cloud.tencent.com/product/scf),用户可以在其控制台上进一步操作。`集群模式` 下,模型文件被部署到 TI-A 的计算集群中。

func (*Client) InstallAgent

func (c *Client) InstallAgent(request *InstallAgentRequest) (response *InstallAgentResponse, err error)

安装agent

func (*Client) ListJobs

func (c *Client) ListJobs(request *ListJobsRequest) (response *ListJobsResponse, err error)

列举训练任务

func (*Client) ListModels

func (c *Client) ListModels(request *ListModelsRequest) (response *ListModelsResponse, err error)

用以列举已经部署的模型。而部署有两种模式:`无服务器模式` 和 `集群模式`。`无服务器模式` 下,模型文件被部署到无服务器云函数,即 [SCF](https://cloud.tencent.com/product/scf),用户可以在其控制台上进一步操作。`集群模式` 下,模型文件被部署到 TI-A 的计算集群中。不同部署模式下的模型分开列出。

func (*Client) QueryLogs

func (c *Client) QueryLogs(request *QueryLogsRequest) (response *QueryLogsResponse, err error)

查询 TI-A 训练任务的日志

type CreateJobRequest

type CreateJobRequest struct {
	*tchttp.BaseRequest

	// 任务名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
	RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"`

	// 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
	PackageDir []*string `json:"PackageDir,omitempty" name:"PackageDir" list`

	// 任务启动命令
	Command []*string `json:"Command,omitempty" name:"Command" list`

	// 任务启动参数
	Args []*string `json:"Args,omitempty" name:"Args" list`

	// 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	ScaleTier *string `json:"ScaleTier,omitempty" name:"ScaleTier"`

	// Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	MasterType *string `json:"MasterType,omitempty" name:"MasterType"`

	// Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	WorkerType *string `json:"WorkerType,omitempty" name:"WorkerType"`

	// Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	ParameterServerType *string `json:"ParameterServerType,omitempty" name:"ParameterServerType"`

	// Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	WorkerCount *uint64 `json:"WorkerCount,omitempty" name:"WorkerCount"`

	// Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
	ParameterServerCount *uint64 `json:"ParameterServerCount,omitempty" name:"ParameterServerCount"`

	// 启动 debug 模式,默认为 false
	Debug *bool `json:"Debug,omitempty" name:"Debug"`

	// 运行任务的其他配置信息
	RuntimeConf []*string `json:"RuntimeConf,omitempty" name:"RuntimeConf" list`
}

func NewCreateJobRequest

func NewCreateJobRequest() (request *CreateJobRequest)

func (*CreateJobRequest) FromJsonString

func (r *CreateJobRequest) FromJsonString(s string) error

func (*CreateJobRequest) ToJsonString

func (r *CreateJobRequest) ToJsonString() string

type CreateJobResponse

type CreateJobResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 训练任务信息
		Job *Job `json:"Job,omitempty" name:"Job"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateJobResponse

func NewCreateJobResponse() (response *CreateJobResponse)

func (*CreateJobResponse) FromJsonString

func (r *CreateJobResponse) FromJsonString(s string) error

func (*CreateJobResponse) ToJsonString

func (r *CreateJobResponse) ToJsonString() string

type CreateModelRequest

type CreateModelRequest struct {
	*tchttp.BaseRequest

	// 模型名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 要部署的模型文件路径名
	Model *string `json:"Model,omitempty" name:"Model"`

	// 关于模型的描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 部署目标集群的名称,`集群模式` 必填
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 运行环境镜像的标签,详见 [Serving 环境](https://cloud.tencent.com/document/product/851/17320#serving-.E7.8E.AF.E5.A2.83)
	RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"`

	// 要部署的模型副本数目,`集群模式` 选填
	Replicas *uint64 `json:"Replicas,omitempty" name:"Replicas"`

	// 暴露外网或内网,默认暴露外网,`集群模式` 选填
	Expose *string `json:"Expose,omitempty" name:"Expose"`

	// 部署模式,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式` 下服务的运行规模,形如 `2U4G1P`,详见 [自定义的训练规模](https://cloud.tencent.com/document/product/851/17319#.E8.87.AA.E5.AE.9A.E4.B9.89.E7.9A.84.E8.AE.AD.E7.BB.83.E8.A7.84.E6.A8.A1)
	ServType *string `json:"ServType,omitempty" name:"ServType"`

	// `无服务器模式` 可选的其他配置信息,详见 [利用无服务器函数部署](https://cloud.tencent.com/document/product/851/17049#.E5.88.A9.E7.94.A8.E6.97.A0.E6.9C.8D.E5.8A.A1.E5.99.A8.E5.87.BD.E6.95.B0.E9.83.A8.E7.BD.B2)
	RuntimeConf []*string `json:"RuntimeConf,omitempty" name:"RuntimeConf" list`
}

func NewCreateModelRequest

func NewCreateModelRequest() (request *CreateModelRequest)

func (*CreateModelRequest) FromJsonString

func (r *CreateModelRequest) FromJsonString(s string) error

func (*CreateModelRequest) ToJsonString

func (r *CreateModelRequest) ToJsonString() string

type CreateModelResponse

type CreateModelResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 模型的详细信息
		Model *Model `json:"Model,omitempty" name:"Model"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateModelResponse

func NewCreateModelResponse() (response *CreateModelResponse)

func (*CreateModelResponse) FromJsonString

func (r *CreateModelResponse) FromJsonString(s string) error

func (*CreateModelResponse) ToJsonString

func (r *CreateModelResponse) ToJsonString() string

type DeleteJobRequest

type DeleteJobRequest struct {
	*tchttp.BaseRequest

	// 任务名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 运行任务的集群
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`
}

func NewDeleteJobRequest

func NewDeleteJobRequest() (request *DeleteJobRequest)

func (*DeleteJobRequest) FromJsonString

func (r *DeleteJobRequest) FromJsonString(s string) error

func (*DeleteJobRequest) ToJsonString

func (r *DeleteJobRequest) ToJsonString() string

type DeleteJobResponse

type DeleteJobResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteJobResponse

func NewDeleteJobResponse() (response *DeleteJobResponse)

func (*DeleteJobResponse) FromJsonString

func (r *DeleteJobResponse) FromJsonString(s string) error

func (*DeleteJobResponse) ToJsonString

func (r *DeleteJobResponse) ToJsonString() string

type DeleteModelRequest

type DeleteModelRequest struct {
	*tchttp.BaseRequest

	// 要删除的模型名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 要删除的模型所在的集群名称,`集群模式` 必填
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 模型类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`
	ServType *string `json:"ServType,omitempty" name:"ServType"`
}

func NewDeleteModelRequest

func NewDeleteModelRequest() (request *DeleteModelRequest)

func (*DeleteModelRequest) FromJsonString

func (r *DeleteModelRequest) FromJsonString(s string) error

func (*DeleteModelRequest) ToJsonString

func (r *DeleteModelRequest) ToJsonString() string

type DeleteModelResponse

type DeleteModelResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteModelResponse

func NewDeleteModelResponse() (response *DeleteModelResponse)

func (*DeleteModelResponse) FromJsonString

func (r *DeleteModelResponse) FromJsonString(s string) error

func (*DeleteModelResponse) ToJsonString

func (r *DeleteModelResponse) ToJsonString() string

type DescribeJobRequest

type DescribeJobRequest struct {
	*tchttp.BaseRequest

	// 任务名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 运行任务的集群
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`
}

func NewDescribeJobRequest

func NewDescribeJobRequest() (request *DescribeJobRequest)

func (*DescribeJobRequest) FromJsonString

func (r *DescribeJobRequest) FromJsonString(s string) error

func (*DescribeJobRequest) ToJsonString

func (r *DescribeJobRequest) ToJsonString() string

type DescribeJobResponse

type DescribeJobResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 训练任务信息
		Job *Job `json:"Job,omitempty" name:"Job"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeJobResponse

func NewDescribeJobResponse() (response *DescribeJobResponse)

func (*DescribeJobResponse) FromJsonString

func (r *DescribeJobResponse) FromJsonString(s string) error

func (*DescribeJobResponse) ToJsonString

func (r *DescribeJobResponse) ToJsonString() string

type DescribeModelRequest

type DescribeModelRequest struct {
	*tchttp.BaseRequest

	// 模型名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 模型所在集群名称,`集群模式` 必填
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 模型类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`
	ServType *string `json:"ServType,omitempty" name:"ServType"`
}

func NewDescribeModelRequest

func NewDescribeModelRequest() (request *DescribeModelRequest)

func (*DescribeModelRequest) FromJsonString

func (r *DescribeModelRequest) FromJsonString(s string) error

func (*DescribeModelRequest) ToJsonString

func (r *DescribeModelRequest) ToJsonString() string

type DescribeModelResponse

type DescribeModelResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 模型信息
		Model *Model `json:"Model,omitempty" name:"Model"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeModelResponse

func NewDescribeModelResponse() (response *DescribeModelResponse)

func (*DescribeModelResponse) FromJsonString

func (r *DescribeModelResponse) FromJsonString(s string) error

func (*DescribeModelResponse) ToJsonString

func (r *DescribeModelResponse) ToJsonString() string

type InstallAgentRequest

type InstallAgentRequest struct {
	*tchttp.BaseRequest

	// 集群名称
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// Agent版本, 用于私有集群的agent安装,默认为“private-training”
	TiaVersion *string `json:"TiaVersion,omitempty" name:"TiaVersion"`

	// 是否允许更新Agent
	Update *bool `json:"Update,omitempty" name:"Update"`
}

func NewInstallAgentRequest

func NewInstallAgentRequest() (request *InstallAgentRequest)

func (*InstallAgentRequest) FromJsonString

func (r *InstallAgentRequest) FromJsonString(s string) error

func (*InstallAgentRequest) ToJsonString

func (r *InstallAgentRequest) ToJsonString() string

type InstallAgentResponse

type InstallAgentResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Agent版本, 用于私有集群的agent安装
		TiaVersion *string `json:"TiaVersion,omitempty" name:"TiaVersion"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInstallAgentResponse

func NewInstallAgentResponse() (response *InstallAgentResponse)

func (*InstallAgentResponse) FromJsonString

func (r *InstallAgentResponse) FromJsonString(s string) error

func (*InstallAgentResponse) ToJsonString

func (r *InstallAgentResponse) ToJsonString() string

type Job

type Job struct {

	// 任务名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 任务创建时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 任务开始时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 任务结束时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 任务状态,可能的状态为Created(已创建),Running(运行中),Succeeded(运行完成:成功),Failed(运行完成:失败)
	State *string `json:"State,omitempty" name:"State"`

	// 任务状态信息
	Message *string `json:"Message,omitempty" name:"Message"`

	// 运行任务的配置信息
	ScaleTier *string `json:"ScaleTier,omitempty" name:"ScaleTier"`

	// (ScaleTier为Custom时)master机器类型
	MasterType *string `json:"MasterType,omitempty" name:"MasterType"`

	// (ScaleTier为Custom时)worker机器类型
	WorkerType *string `json:"WorkerType,omitempty" name:"WorkerType"`

	// (ScaleTier为Custom时)parameter server机器类型
	ParameterServerType *string `json:"ParameterServerType,omitempty" name:"ParameterServerType"`

	// (ScaleTier为Custom时)worker机器数量
	WorkerCount *uint64 `json:"WorkerCount,omitempty" name:"WorkerCount"`

	// (ScaleTier为Custom时)parameter server机器数量
	ParameterServerCount *uint64 `json:"ParameterServerCount,omitempty" name:"ParameterServerCount"`

	// 挂载的路径
	PackageDir []*string `json:"PackageDir,omitempty" name:"PackageDir" list`

	// 任务启动命令
	Command []*string `json:"Command,omitempty" name:"Command" list`

	// 任务启动参数
	Args []*string `json:"Args,omitempty" name:"Args" list`

	// 运行任务的集群
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 运行任务的环境
	RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"`

	// 任务删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
	DelTime *string `json:"DelTime,omitempty" name:"DelTime"`

	// 创建任务的AppId
	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`

	// 创建任务的Uin
	Uin *string `json:"Uin,omitempty" name:"Uin"`

	// 创建任务的Debug模式
	Debug *bool `json:"Debug,omitempty" name:"Debug"`

	// Runtime的额外配置信息
	RuntimeConf []*string `json:"RuntimeConf,omitempty" name:"RuntimeConf" list`

	// 任务Id
	Id *string `json:"Id,omitempty" name:"Id"`
}

type ListJobsRequest

type ListJobsRequest struct {
	*tchttp.BaseRequest

	// 运行任务的集群
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 分页参数,返回数量
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 分页参数,起始位置
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewListJobsRequest

func NewListJobsRequest() (request *ListJobsRequest)

func (*ListJobsRequest) FromJsonString

func (r *ListJobsRequest) FromJsonString(s string) error

func (*ListJobsRequest) ToJsonString

func (r *ListJobsRequest) ToJsonString() string

type ListJobsResponse

type ListJobsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 训练任务列表
		Jobs []*Job `json:"Jobs,omitempty" name:"Jobs" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListJobsResponse

func NewListJobsResponse() (response *ListJobsResponse)

func (*ListJobsResponse) FromJsonString

func (r *ListJobsResponse) FromJsonString(s string) error

func (*ListJobsResponse) ToJsonString

func (r *ListJobsResponse) ToJsonString() string

type ListModelsRequest

type ListModelsRequest struct {
	*tchttp.BaseRequest

	// 部署模型的集群, `集群模式` 必填
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 分页参数,返回数量上限
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 分页参数,分页起始位置
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 部署类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`。
	ServType *string `json:"ServType,omitempty" name:"ServType"`
}

func NewListModelsRequest

func NewListModelsRequest() (request *ListModelsRequest)

func (*ListModelsRequest) FromJsonString

func (r *ListModelsRequest) FromJsonString(s string) error

func (*ListModelsRequest) ToJsonString

func (r *ListModelsRequest) ToJsonString() string

type ListModelsResponse

type ListModelsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Model 数组,用以显示所有模型的信息
		Models []*Model `json:"Models,omitempty" name:"Models" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListModelsResponse

func NewListModelsResponse() (response *ListModelsResponse)

func (*ListModelsResponse) FromJsonString

func (r *ListModelsResponse) FromJsonString(s string) error

func (*ListModelsResponse) ToJsonString

func (r *ListModelsResponse) ToJsonString() string

type Log

type Log struct {

	// 容器名
	ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"`

	// 日志内容
	Log *string `json:"Log,omitempty" name:"Log"`

	// 空间名
	Namespace *string `json:"Namespace,omitempty" name:"Namespace"`

	// Pod Id
	PodId *string `json:"PodId,omitempty" name:"PodId"`

	// Pod名
	PodName *string `json:"PodName,omitempty" name:"PodName"`

	// 日志日期,格式为“2018-07-02T09:10:04.916553368Z”
	Time *string `json:"Time,omitempty" name:"Time"`
}

type Model

type Model struct {

	// 模型名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 模型描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 集群名称
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 模型地址
	Model *string `json:"Model,omitempty" name:"Model"`

	// 运行环境编号
	RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"`

	// 模型创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 模型运行状态
	State *string `json:"State,omitempty" name:"State"`

	// 提供服务的url
	ServingUrl *string `json:"ServingUrl,omitempty" name:"ServingUrl"`

	// 相关消息
	Message *string `json:"Message,omitempty" name:"Message"`

	// 编号
	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`

	// 机型
	ServType *string `json:"ServType,omitempty" name:"ServType"`

	// 模型暴露方式
	Expose *string `json:"Expose,omitempty" name:"Expose"`

	// 部署副本数量
	Replicas *uint64 `json:"Replicas,omitempty" name:"Replicas"`

	// 模型Id
	Id *string `json:"Id,omitempty" name:"Id"`

	// 创建任务的Uin
	Uin *string `json:"Uin,omitempty" name:"Uin"`

	// 模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
	DelTime *string `json:"DelTime,omitempty" name:"DelTime"`
}

type QueryLogsRequest

type QueryLogsRequest struct {
	*tchttp.BaseRequest

	// 任务的名称
	JobName *string `json:"JobName,omitempty" name:"JobName"`

	// 任务所在集群的名称
	Cluster *string `json:"Cluster,omitempty" name:"Cluster"`

	// 查询日志的开始时间,格式:2019-01-01 00:00:00
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询日志的结束时间,格式:2019-01-01 00:00:00
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 单次要返回的日志条数上限
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 加载更多日志时使用,透传上次返回的 Context 值,获取后续的日志内容;使用 Context 翻页最多能获取 10000 条日志
	Context *string `json:"Context,omitempty" name:"Context"`
}

func NewQueryLogsRequest

func NewQueryLogsRequest() (request *QueryLogsRequest)

func (*QueryLogsRequest) FromJsonString

func (r *QueryLogsRequest) FromJsonString(s string) error

func (*QueryLogsRequest) ToJsonString

func (r *QueryLogsRequest) ToJsonString() string

type QueryLogsResponse

type QueryLogsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 日志查询上下文,用于加载更多日志
		Context *string `json:"Context,omitempty" name:"Context"`

		// 日志内容列表
		Logs []*Log `json:"Logs,omitempty" name:"Logs" list`

		// 是否已经返回所有符合条件的日志
		Listover *bool `json:"Listover,omitempty" name:"Listover"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewQueryLogsResponse

func NewQueryLogsResponse() (response *QueryLogsResponse)

func (*QueryLogsResponse) FromJsonString

func (r *QueryLogsResponse) FromJsonString(s string) error

func (*QueryLogsResponse) ToJsonString

func (r *QueryLogsResponse) ToJsonString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL