ArgosConfig constructor
ArgosConfig({
- List<
String> ? hostWhiteList, - List<
ArgosCapability> ? apmTypes, - bool enableStorage = false,
- ArgosSessionMode sessionMode = ArgosSessionMode.automatic,
- ArgosAutomaticSessionPolicy automaticSessionPolicy = const ArgosAutomaticSessionPolicy.process(),
- int maxSessions = 5,
- int maxPacketRecords = 200,
- int resourceMaxRecords = 50,
- String? proxyProvider()?,
- ArgosStorageAdapter? storageAdapter,
- double jankThresholdMultiplier = 1.0,
- Duration resourceSampleInterval = const Duration(seconds: 2),
- Duration storagePersistInterval = const Duration(seconds: 5),
Implementation
ArgosConfig({
this.hostWhiteList,
this.apmTypes,
this.enableStorage = false,
this.sessionMode = ArgosSessionMode.automatic,
this.automaticSessionPolicy = const ArgosAutomaticSessionPolicy.process(),
this.maxSessions = 5,
this.maxPacketRecords = 200,
this.resourceMaxRecords = 50,
this.proxyProvider,
this.storageAdapter,
this.jankThresholdMultiplier = 1.0,
this.resourceSampleInterval = const Duration(seconds: 2),
this.storagePersistInterval = const Duration(seconds: 5),
}) : assert(maxSessions > 0),
assert(maxPacketRecords > 0),
assert(resourceMaxRecords > 0),
assert(jankThresholdMultiplier > 0),
assert(!resourceSampleInterval.isNegative),
assert(!storagePersistInterval.isNegative);