MonitoringSamplingPackage
The built-in SamplingPackage that monitors data sampling itself.
Its measure types are:
- ERROR - errors during data collection.
- TRIGGERED_TASK - a task was triggered.
- COMPLETED_TASK - a task was completed.
- COMPLETED_APP_TASK - an AppTask was completed.
These are collected by the CAMS runtime, not by a probe, so create returns a StubProbe. SmartphoneStudyProtocol adds the first three to each device automatically.
- Inheritance
-
- Object
- SamplingPackage
- SmartphoneSamplingPackage
- MonitoringSamplingPackage
Constructors
MonitoringSamplingPackage
Constants
COMPLETED_APP_TASK
Collect data whenever an AppTask has been completed.
COMPLETED_TASK
Collect data whenever any TaskConfiguration has been completed.
ERROR
Collect errors occurring during data collection.
TRIGGERED_TASK
Collect data on a triggered TaskConfiguration.
Properties
samplingSchemes
The default sampling schemes for all dataTypes in this package.
All sampling packages should define a DataTypeSamplingScheme for each data type.
Methods
create
Creates a new Probe of the specified type. Note that type should be one of the dataTypes that this package supports. Returns null if a probe cannot be created for the type.