job

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// Instance ID
	Id string `json:"id"`
	// DB instance name
	Name string `json:"name"`
}

type JobDDSInstance

type JobDDSInstance struct {
	// Task ID
	Id string `json:"id"`
	// Task name
	Name string `json:"name"`
	// Task execution status
	//
	// Valid value:
	// Running: The task is being executed.
	// Completed: The task is successfully executed.
	// Failed: The task fails to be executed.
	Status string `json:"status"`
	// Creation time in the "yyyy-mm-ddThh:mm:ssZ" format.
	//
	// T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.
	Created string `json:"created"`
	// End time in the "yyyy-mm-ddThh:mm:ssZ" format.
	//
	// T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.
	Ended string `json:"ended"`
	// Task execution progress
	//
	// NOTE:
	// The execution progress (such as "60%", indicating the task execution progress is 60%) is displayed only when the task is being executed. Otherwise, "" is returned.
	Progress string `json:"progress"`
	// Task failure information.
	FailReason string `json:"fail_reason"`
	// Instance on which the task is executed.
	Instance Instance `json:"instance"`
}

func Get

func Get(client *golangsdk.ServiceClient, id string) (*JobDDSInstance, error)

Get TODO: merge to common job

Jump to

Keyboard shortcuts

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