github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dts/describe_migrate_check_job.go (about) 1 package dts 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 获取迁移校验结果 8 // https://cloud.tencent.com/document/api/571/18139 9 10 type DescribeMigrateCheckJobRequest struct { 11 // 数据迁移任务ID 12 JobId string `name:"JobId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeMigrateCheckJobRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeMigrateCheckJobResponse, error) { 18 resp := &DescribeMigrateCheckJobResponse{} 19 err := client.Request("dts", "DescribeMigrateCheckJob", "2018-03-30").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeMigrateCheckJobResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 校验是否通过,0-未通过,1-校验通过, 3-未校验 26 CheckFlag int64 `json:"CheckFlag"` 27 // 任务的错误码 28 ErrorCode int64 `json:"ErrorCode"` 29 // 任务的错误信息 30 ErrorMessage string `json:"ErrorMessage"` 31 // Check任务总进度,如:"30"表示30% 32 Progress string `json:"Progress"` 33 // 校验任务状态:unavailable(当前不可用), starting(开始中),running(校验中),finished(校验完成) 34 Status string `json:"Status"` 35 }