collectors

DSL function for configuring the list of device collectors to be used during profile collection.

This function provides a clean, readable syntax for specifying which collectors should be used for gathering device metadata. The configuration block operates directly on the collectors list, allowing for intuitive collector management.

Usage Examples:

collectors {
// Add standard collectors
add(PlatformCollector)
add(HardwareCollector())

// Add conditional collectors
if (requiresLocation) {
add(LocationCollector())
}

// Add custom collectors
add(CustomApplicationCollector())
}

Collector Categories:

  • Platform Collectors: OS version, device model, system information

  • Hardware Collectors: CPU, memory, storage, display specifications

  • Connectivity Collectors: Network status, Bluetooth, telephony information

  • Location Collectors: GPS coordinates, location services

  • Custom Collectors: Application-specific data gathering

Parameters

block

A configuration block that operates on the collectors list, providing DSL-style collector configuration capabilities

See also