# Certification Tool - iOS
The diagnostic presents the following local configurations:
// Set Diagnostic options
let diagnosticOptions = DiagnosticOptions()
// Enables/disables CDN Balancer diagnostic
diagnosticOptions.proBalancerEnabled = true/false
// Enables/disables video analytics diagnostic
diagnosticOptions.analyticsEnabled = true/false
// If you want to reduce the time for the report to 2 minutes (optional - value in milliseconds)
diagnosticOptions.timeout = 2 * 60 * 1000
// Set the Diagnostic options during the build of Unified Plugin
unifiedPlugin = UnifiedPlugin.Builder(...)
.setDiagnosticOptions(diagnosticOptions: diagnosticOptions)
...
.build()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Also, a report can be forced to be generated with the command:
unifiedPlugin.report()
1
To view the report you need to open the XCode console, inside Debug Area, and look for the Diagnostics Tool print.
# Diagnostic Tool Output Example
-------------------------------
Diagnostic Tool
-------------------------------
Unified Plugin Diagnostics
✅ [There is at least one initialized balancer instance] YES
✅ Unified Plugin is integrated!
-------------------------------
CDN Balancer Diagnostics
✅ [Sent mandatory events to server] YES
✅ [Reached stats server] YES - Sent events: (/cdn: 11)
✅ [Intercepted requests] YES - Intercepted 46 requests
✅ [Successful response from the CDN Selector API] YES
✅ [Made decision based on CDN Selector API] YES - Made decisions for 45 requests
✅ [CDN List]
CDN Provider # of total requests % of failed requests Traffic served (MB)
CDN 1|0.01 3RADSR 90 0.0 42.58
✅ CDN Balancer is integrated!
-------------------------------
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
NEED MORE INFO?
Get in touch with support@codavel.com.
← Android