// DescribeJobResponse finds job in DescribeJobResponse format
DescribeJobResponse finds job in DescribeJobResponse format
// DescribeJobResponse finds job in DescribeJobResponse format
func (wr *WriterReader) DescribeJobResponse(name string) (uc.DescribeJobResponse, error) {
	var r uc.DescribeJobResponse
	stmt, _ := db.Prepare(describeJobSQL)
	_ = stmt.Exec(name, name)
	if hasRow, _ := stmt.Step(); !hasRow {
		return r, errResourceNotFound
	}
	_ = stmt.Scan(
		&r.Name,
		&r.Command,
		&r.Tick,
		&r.LastExecution,
		&r.Status,
		&r.ExecutionsSucceeded,
		&r.ExecutionsFailed,
		&r.AverageCPU,
		&r.AverageMem,
	)
	r.AssignedNotifiers = readAssignedNotifiers(name)
	return r, nil
}
func ( wr * WriterReader ) DescribeJobResponse ( name string ) ( uc . DescribeJobResponse , error ) { var r uc . DescribeJobResponse stmt , _ := db . Prepare ( describeJobSQL ) _ = stmt . Exec ( name , name ) if hasRow , _ := stmt . Step ( ) ; ! hasRow { return r , errResourceNotFound } _ = stmt . Scan ( & r . Name , & r . Command , & r . Tick , & r . LastExecution , & r . Status , & r . ExecutionsSucceeded , & r . ExecutionsFailed , & r . AverageCPU , & r . AverageMem , ) r . AssignedNotifiers = readAssignedNotifiers ( name ) return r , nil }
DescribeJobResponse finds job in DescribeJobResponse format
DescribeJobResponse finds job in DescribeJobResponse format