start Diagnostic
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
diagnostic Sse Request
a diagnostic configuration
on Complete
on Tag Tracking
on Check
on Stop
event the SDK automatically stop the job and notify to the user