samplingSchemes property

  1. @override
DataTypeSamplingSchemeMap get samplingSchemes
override

The default sampling schemes for all dataTypes in this package.

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

Implementation

@override
DataTypeSamplingSchemeMap get samplingSchemes =>
    DataTypeSamplingSchemeMap.from([
      DataTypeSamplingScheme(
        CamsDataTypeMetaData(
          type: CONNECTIVITY,
          displayName: "Connectivity Status",
          timeType: DataTimeType.POINT,
        ),
      ),
      DataTypeSamplingScheme(
          CamsDataTypeMetaData(
            type: BLUETOOTH,
            displayName: "Bluetooth Scan of Nearby Devices",
            timeType: DataTimeType.TIME_SPAN,
            permissions: [Permission.bluetoothScan],
          ),
          PeriodicSamplingConfiguration(
            interval: const Duration(minutes: 10),
            duration: const Duration(seconds: 10),
          )),
      DataTypeSamplingScheme(
          CamsDataTypeMetaData(
            type: WIFI,
            displayName: "Wifi Connectivity Status",
            timeType: DataTimeType.POINT,
          ),
          IntervalSamplingConfiguration(
            interval: const Duration(minutes: 10),
          )),
    ]);