Package com.wavefront.api.agent
Class WorkUnit
- java.lang.Object
-
- com.wavefront.api.agent.WorkUnit
-
public class WorkUnit extends Object
A work unit to execute.- Author:
- Clement Pang (clement@sunnylabs.com)
-
-
Field Summary
Fields Modifier and Type Field Description StringcommandCommand to execute.longdelaySeconds between work unit executions.UUIDidUnique id for the work unit (used for reporting).StringnameFriendly name for the work unit.MetricStagestageStage of this work unit -- trial, per-fetch, or active.Set<UUID>targetsTargets that participate in this work unit.
-
Constructor Summary
Constructors Constructor Description WorkUnit()
-
-
-
Field Detail
-
id
public UUID id
Unique id for the work unit (used for reporting).
-
name
public String name
Friendly name for the work unit.
-
delay
public long delay
Seconds between work unit executions.
-
command
public String command
Command to execute.
-
stage
public MetricStage stage
Stage of this work unit -- trial, per-fetch, or active.
-
-