common property

SamplingSchema common
override

The default (common) sampling schema for all measures in this package.

Implementation

SamplingSchema get common => SamplingSchema(
      type: SamplingSchemaType.common,
      name: 'Common (default) communication sampling schema',
      powerAware: true,
    )..measures.addEntries([
        MapEntry(
            PHONE_LOG,
            MarkedMeasure(
              type: PHONE_LOG,
              name: 'Phone Log',
              description:
                  "Collects the log on in- and out-going calls from the phone",
              history: Duration(days: 1),
            )),
        MapEntry(
            TEXT_MESSAGE_LOG,
            CAMSMeasure(
              type: TEXT_MESSAGE_LOG,
              name: 'Text Messages Log',
              description:
                  "Collects the log on in- and out-going text messages (SMS) from the phone",
            )),
        MapEntry(
            TEXT_MESSAGE,
            CAMSMeasure(
              type: TEXT_MESSAGE,
              name: 'Text Messages',
              description:
                  "Collects the event when a text messages (SMS) is sent or received",
            )),
        MapEntry(
            CALENDAR,
            CalendarMeasure(
              type: CALENDAR,
              name: 'Calendar Events',
              description:
                  "Collects the list of calendar events on the calenders on the phone",
              past: Duration(days: 1),
              future: Duration(days: 1),
            )),
      ]);