class Beetle::JobTaskExec
- Beetle::JobTaskExec
- Reference
- Object
Overview
Defines the statistics captured for an individual Task
subclass as part of
a Job
execution.
As with JobExec
, you never instantiate this class directly.
It contains the following fields:
host
- The actual host URL used for aTask
executionweight
- SeeJobTask#weight
sleep_min_msec
- SeeJobTask#sleep_min_msec
sleep_max_msec
- SeeJobTask#sleep_max_msec
threshold_avg_usec
- SeeJobTask#threshold_avg_usec
threshold_max_usec
- SeeJobTask#threshold_max_usec
n_task
- The number of times this task was executed for thisJob
execution.n_success
- The number of times the task execution succeeded (return2xx
).n_fail
- The number of times the task execution failed (return not2xx
).min_usec
- The minimum task execution duration in microseconds.max_usec
- The maxumum task execution duration in microseconds.avg_usec
- The average task execution duration in microseconds.tot_usec
- The total task execution duration in microseconds.threshold_avg_exceeded
- Set totrue
ifthreshold_avg_usec
is non-zero for aJobTask
and theavg_usec
value exceeds it.threshold_max_exceeded
- Set totrue
ifthreshold_max_usec
is non-zero for aJobTask
and themax_usec
value exceeds it.
Included Modules
- JSON::Serializable
Defined in:
beetle/job-task-exec.crConstructors
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned.