Display the "type" of event log

The GUI before displayed the "Severity" of the event log in the
name field. It now displays the type. Type is from the "Message"
field in the event log. An example of the type is:
"xyz.openbmc_project.Software.Version.Error.ManifestFileFailure".
This is much more useful than the "Severity" ( e.g.
"xyz.openbmc_project.Logging.Entry.Level.Error"). Severity is
still displayed in the event log, above the type.

Resolves openbmc/openbmc#2875

Change-Id: I10fdf90f6498f49b11a64e2c1e556b9a1c95f7b4
Tested: Running GUI locally
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/common/directives/log-event.html b/app/common/directives/log-event.html
index 970598d..0077a6f 100644
--- a/app/common/directives/log-event.html
+++ b/app/common/directives/log-event.html
@@ -26,7 +26,7 @@
              <p class="inline event__severity" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.severity_code}}</p>
              <p class="inline event__timestamp">{{event.Timestamp| date:'MM/dd/yyyy  HH:mm:ss '+tmz: tmz}}</p></div>
              <div>
-                 <p class="inline event__description">{{event.Severity}}</p>
+                 <p class="inline event__description">{{event.type}}</p>
              </div>
          <div class="column small-1 large-1">
              <button class="accord-trigger" ng-class="{'active': event.meta}"
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 1b26b93..9b619bd 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -445,6 +445,7 @@
                             severity_flags: severityFlags,
                             health_flags: healthFlags,
                             additional_data: content.data[key].AdditionalData.join("\n"),
+                            type: content.data[key].Message,
                             selected: false,
                             search_text: ("#" + content.data[key].Id + " " + severityCode + " " + content.data[key].Severity + " " + content.data[key].AdditionalData.join(" ")).toLowerCase(),
                             meta: false,