SamplingEventTrigger constructor

SamplingEventTrigger({
  1. required String measureType,
  2. ConditionalEvent? resumeCondition,
  3. ConditionalEvent? pauseCondition,
})

Create a trigger that triggers when a measure of measureType is collected, and checks the resumeCondition and pauseCondition to determine if the task should be resumed or paused, respectively.

Implementation

SamplingEventTrigger({
  required this.measureType,
  this.resumeCondition,
  this.pauseCondition,
}) : super();