startDiagnostic

fun startDiagnostic(checkTimeout: Int = 30000, diagnosticSseRequest: DiagnosticSseRequest, onComplete: (DiagnosticSseResponse) -> Any, onTagTracking: (Map<String, DiagnosticStatus>?) -> Any? = null, onCheck: (String?) -> Unit? = null, onStop: (String) -> Unit? = null)

Accessory method for activate the diagnostic. If a previously job is active, its stopped and a new diagnostic started with the new configuration.

Parameters

diagnosticSseRequest

a diagnostic configuration

onComplete
onTagTracking
onCheck
onStop

event the SDK automatically stop the job and notify to the user