зеркало из https://github.com/Azure/go-asyncjob.git
18 строки
355 B
Go
18 строки
355 B
Go
package asyncjob
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// StepExecutionData would measure the step execution time and retry report.
|
|
type StepExecutionData struct {
|
|
StartTime time.Time
|
|
Duration time.Duration
|
|
Retried *RetryReport
|
|
}
|
|
|
|
// RetryReport would record the retry count (could extend to include each retry duration, ...)
|
|
type RetryReport struct {
|
|
Count uint
|
|
}
|