Fix AlarmDiagnostic.get_diagnostics encode.

13 jobs for !3036 with noc-1198 in 14 minutes and 30 seconds (queued for 4 seconds)
merge request