Skip to content

MonitoringSamplingPackage

The built-in SamplingPackage that monitors data sampling itself.

Its measure types are:

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

Constructors

MonitoringSamplingPackage

MonitoringSamplingPackage()

Constants

COMPLETED_APP_TASK

String const COMPLETED_APP_TASK

Collect data whenever an AppTask has been completed.

COMPLETED_TASK

String const COMPLETED_TASK

Collect data whenever any TaskConfiguration has been completed.

ERROR

String const ERROR

Collect errors occurring during data collection.

TRIGGERED_TASK

String const TRIGGERED_TASK

Collect data on a triggered TaskConfiguration.

Properties

samplingSchemes

DataTypeSamplingSchemeMap get samplingSchemes
override

The default sampling schemes for all dataTypes in this package.

All sampling packages should define a DataTypeSamplingScheme for each data type.

Methods

create

Probe? create(
  1. String type
)
override

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.