MonitoringSamplingPackage class
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
Properties
-
dataTypes
→ List<
DataTypeMetaData> -
The data types this package supports.
no setterinherited
-
deviceManager
→ DeviceManager<
DeviceConfiguration< DeviceRegistration> , DeviceRegistration> -
Get the DeviceManager for the device used by this package.
no setterinherited
- deviceType → String
-
The type of device this package collects data from.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samplingSchemes → DataTypeSamplingSchemeMap
-
The default sampling schemes for all dataTypes in this package.
no setteroverride
Methods
-
create(
String type) → Probe? -
Creates a new Probe of the specified
type. Note thattypeshould be one of the dataTypes that this package supports. Returns null if a probe cannot be created for thetype.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onRegister(
) → void -
Called when this package is registered in the SamplingPackageRegistry.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- COMPLETED_APP_TASK → const String
- Collect data whenever an AppTask has been completed.
- COMPLETED_TASK → const String
-
Collect data whenever any
TaskConfigurationhas been completed. - ERROR → const String
- Collect errors occurring during data collection.
- TRIGGERED_TASK → const String
-
Collect data on a triggered
TaskConfiguration.