Documentation ¶
Index ¶
- type CreateResponseBody
- type CreateTasksRequest
- type CreateTasksRequestBody
- type CreateTasksResponse
- type DeleteTaskRequest
- type DeleteTaskResponse
- type ListTasksDetailsRequest
- type ListTasksDetailsRequestOrder
- type ListTasksDetailsRequestOrderEnum
- type ListTasksDetailsRequestState
- type ListTasksDetailsRequestStateEnum
- type ListTasksDetailsResponse
- type ShowTaskRequest
- type ShowTaskResponse
- type ShowTaskResponseState
- type ShowTaskResponseStateEnum
- type TaskDetails
- type TaskDetailsError
- type TaskDetailsServiceTitle
- type TaskDetailsState
- type TaskDetailsStateEnum
- type TaskInput
- type TaskInputData
- type TaskInputType
- type TaskInputTypeEnum
- type TaskInputVcn
- type TaskOutput
- type TaskOutputDis
- type TaskOutputForDisplay
- type TaskOutputLocalpath
- type TaskOutputObs
- type TaskOutputWebhook
- type TaskServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateResponseBody ¶
type CreateResponseBody struct {
Id string `json:"id"`
}
func (CreateResponseBody) String ¶
func (o CreateResponseBody) String() string
type CreateTasksRequest ¶
type CreateTasksRequest struct { ServiceName string `json:"service_name"` Body *CreateTasksRequestBody `json:"body,omitempty"` }
Request Object
func (CreateTasksRequest) String ¶
func (o CreateTasksRequest) String() string
type CreateTasksRequestBody ¶
type CreateTasksRequestBody struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` ServiceVersion string `json:"service_version"` EdgePoolId *string `json:"edge_pool_id,omitempty"` ResourceOrderId *string `json:"resource_order_id,omitempty"` ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"` }
func (CreateTasksRequestBody) String ¶
func (o CreateTasksRequestBody) String() string
type CreateTasksResponse ¶
type CreateTasksResponse struct { Body *[]CreateResponseBody `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateTasksResponse) String ¶
func (o CreateTasksResponse) String() string
type DeleteTaskRequest ¶
type DeleteTaskRequest struct { ServiceName string `json:"service_name"` TaskId string `json:"task_id"` }
Request Object
func (DeleteTaskRequest) String ¶
func (o DeleteTaskRequest) String() string
type DeleteTaskResponse ¶
type DeleteTaskResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteTaskResponse) String ¶
func (o DeleteTaskResponse) String() string
type ListTasksDetailsRequest ¶
type ListTasksDetailsRequest struct { ServiceName string `json:"service_name"` ServiceVersion *string `json:"service_version,omitempty"` State *ListTasksDetailsRequestState `json:"state,omitempty"` NameLike *string `json:"name_like,omitempty"` IdLike *string `json:"id_like,omitempty"` CreatedSince *int64 `json:"created_since,omitempty"` CreatedUntil *int64 `json:"created_until,omitempty"` Order *ListTasksDetailsRequestOrder `json:"order,omitempty"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListTasksDetailsRequest) String ¶
func (o ListTasksDetailsRequest) String() string
type ListTasksDetailsRequestOrder ¶
type ListTasksDetailsRequestOrder struct {
// contains filtered or unexported fields
}
func (ListTasksDetailsRequestOrder) MarshalJSON ¶
func (c ListTasksDetailsRequestOrder) MarshalJSON() ([]byte, error)
func (*ListTasksDetailsRequestOrder) UnmarshalJSON ¶
func (c *ListTasksDetailsRequestOrder) UnmarshalJSON(b []byte) error
type ListTasksDetailsRequestOrderEnum ¶
type ListTasksDetailsRequestOrderEnum struct { NAMEASC ListTasksDetailsRequestOrder NAMEDESC ListTasksDetailsRequestOrder CREATED_ATASC ListTasksDetailsRequestOrder CREATED_ATDESC ListTasksDetailsRequestOrder UPDATED_ATASC ListTasksDetailsRequestOrder UPDATED_ATDESC ListTasksDetailsRequestOrder }
func GetListTasksDetailsRequestOrderEnum ¶
func GetListTasksDetailsRequestOrderEnum() ListTasksDetailsRequestOrderEnum
type ListTasksDetailsRequestState ¶
type ListTasksDetailsRequestState struct {
// contains filtered or unexported fields
}
func (ListTasksDetailsRequestState) MarshalJSON ¶
func (c ListTasksDetailsRequestState) MarshalJSON() ([]byte, error)
func (*ListTasksDetailsRequestState) UnmarshalJSON ¶
func (c *ListTasksDetailsRequestState) UnmarshalJSON(b []byte) error
type ListTasksDetailsRequestStateEnum ¶
type ListTasksDetailsRequestStateEnum struct { PENDING ListTasksDetailsRequestState RECOVERING ListTasksDetailsRequestState STARTING ListTasksDetailsRequestState UPGRADING ListTasksDetailsRequestState CREATE_FAILED ListTasksDetailsRequestState START_FAILED ListTasksDetailsRequestState RUNNING ListTasksDetailsRequestState STOPPING ListTasksDetailsRequestState STOPPED ListTasksDetailsRequestState ABNORMAL ListTasksDetailsRequestState SUCCEEDED ListTasksDetailsRequestState FAILED ListTasksDetailsRequestState DELETING ListTasksDetailsRequestState FREEZING ListTasksDetailsRequestState FROZEN ListTasksDetailsRequestState }
func GetListTasksDetailsRequestStateEnum ¶
func GetListTasksDetailsRequestStateEnum() ListTasksDetailsRequestStateEnum
type ListTasksDetailsResponse ¶
type ListTasksDetailsResponse struct { Count *int64 `json:"count,omitempty"` Tasks *[]TaskDetails `json:"tasks,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTasksDetailsResponse) String ¶
func (o ListTasksDetailsResponse) String() string
type ShowTaskRequest ¶
type ShowTaskRequest struct { ServiceName string `json:"service_name"` TaskId string `json:"task_id"` }
Request Object
func (ShowTaskRequest) String ¶
func (o ShowTaskRequest) String() string
type ShowTaskResponse ¶
type ShowTaskResponse struct { Id string `json:"id"` Name string `json:"name"` Creator string `json:"creator"` ProjectId string `json:"project_id"` Description *string `json:"description,omitempty"` ServiceName string `json:"service_name"` ServiceVersion string `json:"service_version"` ServiceTitle *TaskDetailsServiceTitle `json:"service_title"` EdgePoolId *string `json:"edge_pool_id,omitempty"` ResourceOrderId *string `json:"resource_order_id,omitempty"` CreatedAt *sdktime.SdkTime `json:"created_at"` UpdatedAt *sdktime.SdkTime `json:"updated_at"` State ShowTaskResponseState `json:"state"` Status *string `json:"status,omitempty"` Error *TaskDetailsError `json:"error,omitempty"` Input *TaskInput `json:"input"` Output *TaskOutputForDisplay `json:"output"` ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskResponse) String ¶
func (o ShowTaskResponse) String() string
type ShowTaskResponseState ¶
type ShowTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowTaskResponseState) MarshalJSON ¶
func (c ShowTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowTaskResponseState) UnmarshalJSON ¶
func (c *ShowTaskResponseState) UnmarshalJSON(b []byte) error
type ShowTaskResponseStateEnum ¶
type ShowTaskResponseStateEnum struct { PENDING ShowTaskResponseState RECOVERING ShowTaskResponseState STARTING ShowTaskResponseState UPGRADING ShowTaskResponseState CREATE_FAILED ShowTaskResponseState START_FAILED ShowTaskResponseState RUNNING ShowTaskResponseState STOPPING ShowTaskResponseState STOPPED ShowTaskResponseState ABNORMAL ShowTaskResponseState SUCCEEDED ShowTaskResponseState FAILED ShowTaskResponseState DELETING ShowTaskResponseState FREEZING ShowTaskResponseState FROZEN ShowTaskResponseState }
func GetShowTaskResponseStateEnum ¶
func GetShowTaskResponseStateEnum() ShowTaskResponseStateEnum
type TaskDetails ¶
type TaskDetails struct { Id string `json:"id"` Name string `json:"name"` Creator string `json:"creator"` ProjectId string `json:"project_id"` Description *string `json:"description,omitempty"` ServiceName string `json:"service_name"` ServiceVersion string `json:"service_version"` ServiceTitle *TaskDetailsServiceTitle `json:"service_title"` EdgePoolId *string `json:"edge_pool_id,omitempty"` ResourceOrderId *string `json:"resource_order_id,omitempty"` CreatedAt *sdktime.SdkTime `json:"created_at"` UpdatedAt *sdktime.SdkTime `json:"updated_at"` State TaskDetailsState `json:"state"` Status *string `json:"status,omitempty"` Error *TaskDetailsError `json:"error,omitempty"` Input *TaskInput `json:"input"` Output *TaskOutputForDisplay `json:"output"` ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"` }
func (TaskDetails) String ¶
func (o TaskDetails) String() string
type TaskDetailsError ¶
作业运行失败时收集到的错误信息
func (TaskDetailsError) String ¶
func (o TaskDetailsError) String() string
type TaskDetailsServiceTitle ¶
type TaskDetailsServiceTitle struct { Zh *string `json:"zh,omitempty"` En *string `json:"en,omitempty"` }
作业对应服务的标题
func (TaskDetailsServiceTitle) String ¶
func (o TaskDetailsServiceTitle) String() string
type TaskDetailsState ¶
type TaskDetailsState struct {
// contains filtered or unexported fields
}
func (TaskDetailsState) MarshalJSON ¶
func (c TaskDetailsState) MarshalJSON() ([]byte, error)
func (*TaskDetailsState) UnmarshalJSON ¶
func (c *TaskDetailsState) UnmarshalJSON(b []byte) error
type TaskDetailsStateEnum ¶
type TaskDetailsStateEnum struct { PENDING TaskDetailsState RECOVERING TaskDetailsState STARTING TaskDetailsState UPGRADING TaskDetailsState CREATE_FAILED TaskDetailsState START_FAILED TaskDetailsState RUNNING TaskDetailsState STOPPING TaskDetailsState STOPPED TaskDetailsState ABNORMAL TaskDetailsState SUCCEEDED TaskDetailsState FAILED TaskDetailsState DELETING TaskDetailsState FREEZING TaskDetailsState FROZEN TaskDetailsState }
func GetTaskDetailsStateEnum ¶
func GetTaskDetailsStateEnum() TaskDetailsStateEnum
type TaskInput ¶
type TaskInput struct { Type TaskInputType `json:"type"` Data []TaskInputData `json:"data"` Vcn *TaskInputVcn `json:"vcn,omitempty"` }
作业的输入配置
type TaskInputData ¶
type TaskInputData struct { StreamName *string `json:"stream_name,omitempty"` Bucket *string `json:"bucket,omitempty"` Path *string `json:"path,omitempty"` Url *string `json:"url,omitempty"` Headers *interface{} `json:"headers,omitempty"` CertificateCheck *bool `json:"certificate_check,omitempty"` RtspPathInResponse *string `json:"rtsp_path_in_response,omitempty"` DeviceId *string `json:"device_id,omitempty"` StreamType *int32 `json:"stream_type,omitempty"` Id *string `json:"id,omitempty"` Index *int32 `json:"index,omitempty"` }
输入数据的配置信息
func (TaskInputData) String ¶
func (o TaskInputData) String() string
type TaskInputType ¶
type TaskInputType struct {
// contains filtered or unexported fields
}
func (TaskInputType) MarshalJSON ¶
func (c TaskInputType) MarshalJSON() ([]byte, error)
func (*TaskInputType) UnmarshalJSON ¶
func (c *TaskInputType) UnmarshalJSON(b []byte) error
type TaskInputTypeEnum ¶
type TaskInputTypeEnum struct { OBS TaskInputType VIS TaskInputType URL TaskInputType EDGECAMERA TaskInputType EDGERESTFUL TaskInputType VCN TaskInputType }
func GetTaskInputTypeEnum ¶
func GetTaskInputTypeEnum() TaskInputTypeEnum
type TaskInputVcn ¶
type TaskInputVcn struct { Ip string `json:"ip"` Port int32 `json:"port"` Username string `json:"username"` Password string `json:"password"` }
VCN服务器信息,只有输入为vcn时才可以且必须使用
func (TaskInputVcn) String ¶
func (o TaskInputVcn) String() string
type TaskOutput ¶
type TaskOutput struct { Obs *TaskOutputObs `json:"obs,omitempty"` Dis *TaskOutputDis `json:"dis,omitempty"` Webhook *TaskOutputWebhook `json:"webhook,omitempty"` Localpath *TaskOutputLocalpath `json:"localpath,omitempty"` }
作业的输出配置
func (TaskOutput) String ¶
func (o TaskOutput) String() string
type TaskOutputDis ¶
type TaskOutputDis struct { StreamName string `json:"stream_name"` DataCategory *[]string `json:"data_category,omitempty"` }
输出为dis类型时的配置信息
func (TaskOutputDis) String ¶
func (o TaskOutputDis) String() string
type TaskOutputForDisplay ¶
type TaskOutputForDisplay struct { Obs *TaskOutputObs `json:"obs,omitempty"` Dis *TaskOutputDis `json:"dis,omitempty"` Webhook *TaskOutputWebhook `json:"webhook,omitempty"` Localpath *TaskOutputLocalpath `json:"localpath,omitempty"` }
作业的输出配置展示
func (TaskOutputForDisplay) String ¶
func (o TaskOutputForDisplay) String() string
type TaskOutputLocalpath ¶
type TaskOutputLocalpath struct { MountSourcePath string `json:"mount_source_path"` DataCategory *[]string `json:"data_category,omitempty"` }
输出为localpath类型时的配置信息
func (TaskOutputLocalpath) String ¶
func (o TaskOutputLocalpath) String() string
type TaskOutputObs ¶
type TaskOutputObs struct { Bucket string `json:"bucket"` Path string `json:"path"` DataCategory *[]string `json:"data_category,omitempty"` }
输出为obs类型时的配置信息
func (TaskOutputObs) String ¶
func (o TaskOutputObs) String() string
type TaskOutputWebhook ¶
type TaskOutputWebhook struct { Url string `json:"url"` Headers *interface{} `json:"headers"` DataCategory *[]string `json:"data_category,omitempty"` }
输出为webhook类型时的配置信息
func (TaskOutputWebhook) String ¶
func (o TaskOutputWebhook) String() string
type TaskServiceConfig ¶
type TaskServiceConfig struct {
Common *interface{} `json:"common,omitempty"`
}
作业运行时指定的算法配置参数
func (TaskServiceConfig) String ¶
func (o TaskServiceConfig) String() string
Source Files ¶
- model_create_response_body.go
- model_create_tasks_request.go
- model_create_tasks_request_body.go
- model_create_tasks_response.go
- model_delete_task_request.go
- model_delete_task_response.go
- model_list_tasks_details_request.go
- model_list_tasks_details_response.go
- model_show_task_request.go
- model_show_task_response.go
- model_task_details.go
- model_task_details_error.go
- model_task_details_service_title.go
- model_task_input.go
- model_task_input_data.go
- model_task_input_vcn.go
- model_task_output.go
- model_task_output_dis.go
- model_task_output_for_display.go
- model_task_output_localpath.go
- model_task_output_obs.go
- model_task_output_webhook.go
- model_task_service_config.go
Click to show internal directories.
Click to hide internal directories.