Bump version to 1.0.51
This commit is contained in:
@@ -84,6 +84,8 @@ type JobResponse struct {
|
||||
ErrorCode *string `json:"error_code,omitempty"`
|
||||
DurationSeconds *int64 `json:"duration_seconds,omitempty"`
|
||||
LogLineCount *int64 `json:"log_line_count,omitempty"`
|
||||
TotalSizeBytes *int64 `json:"total_size_bytes,omitempty"`
|
||||
SentBytes *int64 `json:"sent_bytes,omitempty"`
|
||||
}
|
||||
|
||||
type LogLineResponse struct {
|
||||
|
||||
@@ -254,6 +254,12 @@ func jobToResp(j models.Job) JobResponse {
|
||||
s := j.FinishedAt.Format(time.RFC3339)
|
||||
resp.FinishedAt = &s
|
||||
}
|
||||
if j.TotalSizeBytes > 0 {
|
||||
resp.TotalSizeBytes = &j.TotalSizeBytes
|
||||
}
|
||||
if j.SentBytes > 0 {
|
||||
resp.SentBytes = &j.SentBytes
|
||||
}
|
||||
return resp
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user