DiagnosticsSchedulePolicy

data class DiagnosticsSchedulePolicy(val scheduledEnabled: Boolean = false, val scheduleType: DiagnosticsSchedulePolicy.ScheduleType = ScheduleType.DAILY, val scheduleHour: Int = 3, val scheduleDayOfWeek: Int = 1, val remoteTriggerEnabled: Boolean = false, val maxRemoteTriggersPerDay: Int = 3, val remoteTriggerCooldownMs: Long, val autoUploadEnabled: Boolean = false, val includeExtendedPosture: Boolean = true, val maxExportBytes: Long = 50L * 1024L * 1024L)

Policy for scheduled and remote-triggered diagnostics collection.

Security Controls (BSI APP.4.4.A7):

  • Remote triggers require explicit opt-in

  • Rate limiting prevents abuse (maxRemoteTriggersPerDay)

  • Cooldown prevents rapid cycling attacks

  • All triggers are audit logged

Constructors

Link copied to clipboard
constructor(scheduledEnabled: Boolean = false, scheduleType: DiagnosticsSchedulePolicy.ScheduleType = ScheduleType.DAILY, scheduleHour: Int = 3, scheduleDayOfWeek: Int = 1, remoteTriggerEnabled: Boolean = false, maxRemoteTriggersPerDay: Int = 3, remoteTriggerCooldownMs: Long, autoUploadEnabled: Boolean = false, includeExtendedPosture: Boolean = true, maxExportBytes: Long = 50L * 1024L * 1024L)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Schedule type for diagnostics collection.

Properties

Link copied to clipboard

Auto-upload scheduled diagnostics (requires uploader)

Link copied to clipboard

Include extended posture in reports

Link copied to clipboard

Maximum size in bytes for the diagnostics ZIP produced by com.sarastarquant.kioskops.sdk.KioskOpsSdk.exportDiagnostics. On a deep backlog the export can otherwise reach hundreds of MiB, stalling the host-supplied uploader or running the device out of memory. When the cap is exceeded, later telemetry/audit/log entries are omitted and a truncation.txt marker entry is added to the ZIP.

Link copied to clipboard

Maximum remote triggers per day (rate limit)

Link copied to clipboard

Minimum interval between triggers (ms)

Link copied to clipboard

Enable remote diagnostics trigger via managed config

Link copied to clipboard

Day of week for WEEKLY (1=Monday, 7=Sunday)

Link copied to clipboard

Enable scheduled diagnostics collection

Link copied to clipboard

Hour of day for collection (0-23, device local time)

Link copied to clipboard