RabbitDataConfig constructor
RabbitDataConfig({
- required String apiKey,
- String encryptKey = '',
- DataCollectionType collectionType = DataCollectionType.rotation,
- int rotationTime = con.rotationTime,
- int retentionDays = con.retentionDays,
- int retryTime = con.retryTime,
- bool deleteAfterSent = true,
- int cpu = con.cpu,
- int memory = con.memory,
- int batteryLevel = con.battery,
- DBType dbType = DBType.hive,
- bool? consent,
- bool permissionMaid = false,
- int sessionExpire = con.sessionExpireMin,
- int sessionAutoExpire = con.autoExpireMin,
- bool offlineMode = false,
- int storageMin = 1,
- int storageMax = 5,
- bool debugMode = false,
- bool isAutoExpire = true,
- int locationTimeout = 3,
Implementation
RabbitDataConfig(
{required this.apiKey,
this.encryptKey = '',
this.collectionType = DataCollectionType.rotation,
this.rotationTime = con.rotationTime,
this.retentionDays = con.retentionDays,
this.retryTime = con.retryTime,
this.deleteAfterSent = true,
this.cpu = con.cpu,
this.memory = con.memory,
this.batteryLevel = con.battery,
this.dbType = DBType.hive,
this.consent,
this.permissionMaid = false,
this.sessionExpire = con.sessionExpireMin,
this.sessionAutoExpire = con.autoExpireMin,
this.offlineMode = false,
this.storageMin = 1,
this.storageMax = 5,
this.debugMode = false,
this.isAutoExpire = true,
this.locationTimeout = 3})
: assert(rotationTime >= 1),
assert(retentionDays >= 0),
assert(retryTime >= 1),
assert(cpu >= 0),
assert(memory >= 0),
assert(batteryLevel >= 0),
assert(sessionExpire >= 1),
assert(sessionAutoExpire >= 1);