github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dds/v3/jobs/results.go (about)

     1  package jobs
     2  
     3  // Job is the structure that represents the detail of the process job.
     4  type Job struct {
     5  	// Job ID.
     6  	ID string `json:"id"`
     7  	// Job name.
     8  	Name string `json:"name"`
     9  	// Status info.
    10  	// + Running
    11  	// + Completed
    12  	// + Failed
    13  	Status string `json:"status"`
    14  	// Creation time, the format is "yyyy-mm-ddThh:mm:ssZ".
    15  	Created string `json:"created"`
    16  	// End time, the format is "yyyy-mm-ddThh:mm:ssZ".
    17  	Ended string `json:"ended"`
    18  	// The execution progress of the job.
    19  	Progress string `json:"progress"`
    20  	// The DDS instance info to which the job belongs.
    21  	Instance Instance `json:"instance"`
    22  	// Error information generated when the job fails to be executed.
    23  	FailReason string `json:"fail_reason"`
    24  }
    25  
    26  // Instance is the structure that represents the detail of the DDS instnace.
    27  type Instance struct {
    28  	// Instance ID.
    29  	ID string `json:"id"`
    30  	// Instance name.
    31  	Name string `json:"name"`
    32  }