Skip to content

Commit 785b638

Browse files
authored
update InventoryJobStatus field ExecutionTime from time.Duration to string (#2171)
1 parent a5f6380 commit 785b638

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

api-inventory-ext.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -271,31 +271,31 @@ func (c *Client) ListBucketInventoryConfigurationsIterator(ctx context.Context,
271271

272272
// InventoryJobStatus represents the status of an inventory job.
273273
type InventoryJobStatus struct {
274-
Bucket string `json:"bucket"`
275-
ID string `json:"id"`
276-
User string `json:"user"`
277-
AccessKey string `json:"accessKey"`
278-
Schedule string `json:"schedule"`
279-
State string `json:"state"`
280-
NextScheduledTime time.Time `json:"nextScheduledTime,omitempty"`
281-
StartTime time.Time `json:"startTime,omitempty"`
282-
EndTime time.Time `json:"endTime,omitempty"`
283-
LastUpdate time.Time `json:"lastUpdate,omitempty"`
284-
Scanned string `json:"scanned,omitempty"`
285-
Matched string `json:"matched,omitempty"`
286-
ScannedCount uint64 `json:"scannedCount,omitempty"`
287-
MatchedCount uint64 `json:"matchedCount,omitempty"`
288-
RecordsWritten uint64 `json:"recordsWritten,omitempty"`
289-
OutputFilesCount uint64 `json:"outputFilesCount,omitempty"`
290-
ExecutionTime time.Duration `json:"executionTime,omitempty"`
291-
NumStarts uint64 `json:"numStarts,omitempty"`
292-
NumErrors uint64 `json:"numErrors,omitempty"`
293-
NumLockLosses uint64 `json:"numLockLosses,omitempty"`
294-
ManifestPath string `json:"manifestPath,omitempty"`
295-
NodeHostname string `json:"nodeHostname,omitempty"`
296-
RetryAttempts uint64 `json:"retryAttempts,omitempty"`
297-
LastFailTime time.Time `json:"lastFailTime,omitempty"`
298-
LastFailErrors []string `json:"lastFailErrors,omitempty"`
274+
Bucket string `json:"bucket"`
275+
ID string `json:"id"`
276+
User string `json:"user"`
277+
AccessKey string `json:"accessKey"`
278+
Schedule string `json:"schedule"`
279+
State string `json:"state"`
280+
NextScheduledTime time.Time `json:"nextScheduledTime,omitempty"`
281+
StartTime time.Time `json:"startTime,omitempty"`
282+
EndTime time.Time `json:"endTime,omitempty"`
283+
LastUpdate time.Time `json:"lastUpdate,omitempty"`
284+
Scanned string `json:"scanned,omitempty"`
285+
Matched string `json:"matched,omitempty"`
286+
ScannedCount uint64 `json:"scannedCount,omitempty"`
287+
MatchedCount uint64 `json:"matchedCount,omitempty"`
288+
RecordsWritten uint64 `json:"recordsWritten,omitempty"`
289+
OutputFilesCount uint64 `json:"outputFilesCount,omitempty"`
290+
ExecutionTime string `json:"executionTime,omitempty"`
291+
NumStarts uint64 `json:"numStarts,omitempty"`
292+
NumErrors uint64 `json:"numErrors,omitempty"`
293+
NumLockLosses uint64 `json:"numLockLosses,omitempty"`
294+
ManifestPath string `json:"manifestPath,omitempty"`
295+
NodeHostname string `json:"nodeHostname,omitempty"`
296+
RetryAttempts uint64 `json:"retryAttempts,omitempty"`
297+
LastFailTime time.Time `json:"lastFailTime,omitempty"`
298+
LastFailErrors []string `json:"lastFailErrors,omitempty"`
299299
}
300300

301301
// GetBucketInventoryJobStatus retrieves the status of an inventory job for a bucket.

0 commit comments

Comments
 (0)