Dashboard changes to adapt to ceilometer mitaka output

Change-Id: I1f5169d494708e42ed4bc222b305b04c127923af
diff --git a/xos/api/tenant/monitoring/dashboard/ceilometerdashboard.py b/xos/api/tenant/monitoring/dashboard/ceilometerdashboard.py
index 0f8c6b4..d4e5d94 100644
--- a/xos/api/tenant/monitoring/dashboard/ceilometerdashboard.py
+++ b/xos/api/tenant/monitoring/dashboard/ceilometerdashboard.py
@@ -175,6 +175,11 @@
                 name = r['metadata']['display_name']
             elif 'name' in r['metadata']:
                 name = r['metadata']['name']
+            #Output of 'resources' REST query has chnaged from kilo to mitaka,below if conditions to handle mitaka output
+            elif 'resource_metadata.display_name' in r['metadata']:
+                name = r['metadata']['resource_metadata.display_name']
+            elif 'resource_metadata.name' in r['metadata']:
+                name = r['metadata']['resource_metadata.name']
             else:
                 name = r['resource_id']
             resource_map[r['resource_id']] = name