Added piechart to ceilometer
Change-Id: Ifd48eb528859b0d1d8bb26a029fe4c27090e82cd
diff --git a/views/ngXosViews/ceilometerDashboard/mock/data/meters.json b/views/ngXosViews/ceilometerDashboard/mock/data/meters.json
new file mode 100644
index 0000000..9a6451b
--- /dev/null
+++ b/views/ngXosViews/ceilometerDashboard/mock/data/meters.json
@@ -0,0 +1,26 @@
+[
+ {
+ "service":"service-a",
+ "slice":"slice-a-1",
+ "name":"broadview.bst.egress-uc-queue",
+ "resource_name":"resource-1",
+ "resource_id":"resource-1",
+ "tenant": "id-a-1"
+ },
+ {
+ "service":"service-a",
+ "slice":"slice-a-1",
+ "name":"broadview.pt.packet-trace-lag-resolution",
+ "resource_name":"resource-1",
+ "resource_id":"resource-1",
+ "tenant": "id-a-1"
+ },
+ {
+ "service":"service-a",
+ "slice":"slice-a-1",
+ "name":"broadview.pt.packet-trace-ecmp-resolution",
+ "resource_name":"resource-1",
+ "resource_id":"resource-1",
+ "tenant": "id-a-1"
+ }
+]
\ No newline at end of file
diff --git a/views/ngXosViews/ceilometerDashboard/mock/data/metersamples.json b/views/ngXosViews/ceilometerDashboard/mock/data/metersamples.json
new file mode 100644
index 0000000..4cb99eb
--- /dev/null
+++ b/views/ngXosViews/ceilometerDashboard/mock/data/metersamples.json
@@ -0,0 +1,120 @@
+[
+ {
+ "slice": "slice-a-1",
+ "user_id": null,
+ "resource_id": "resource-1",
+ "timestamp": "2016-09-19T14:53:55",
+ "meter": "broadview.bst.egress-uc-queue",
+ "volume": 1111.0,
+ "source": "openstack",
+ "resource_name": "resource-1",
+ "recorded_at": "2016-09-19T21:53:56.879000",
+ "project_id": "default_admin_tenant",
+ "type": "gauge",
+ "id": "8fe9a026-7eb3-11e6-9a9b-3417ebe580ce",
+ "unit": "bv-agent",
+ "limit": 10
+ },
+ {
+ "slice": "slice-a-1",
+ "user_id": null,
+ "resource_id": "resource-1",
+ "timestamp": "2016-09-19T14:54:55",
+ "meter": "broadview.bst.egress-uc-queue",
+ "volume": 1345.0,
+ "source": "openstack",
+ "resource_name": "resource-1",
+ "recorded_at": "2016-09-19T21:53:56.879000",
+ "project_id": "default_admin_tenant",
+ "type": "gauge",
+ "id": "8fe9a026-7eb3-11e6-9a9b-3417ebe580ce",
+ "unit": "bv-agent",
+ "limit": 10
+ },
+ {
+ "slice": "slice-a-1",
+ "user_id": null,
+ "resource_id": "resource-1",
+ "timestamp": "2016-09-19T14:55:55",
+ "meter": "broadview.bst.egress-uc-queue",
+ "volume": 945.0,
+ "source": "openstack",
+ "resource_name": "resource-1",
+ "recorded_at": "2016-09-19T21:53:56.879000",
+ "project_id": "default_admin_tenant",
+ "type": "gauge",
+ "id": "8fe9a026-7eb3-11e6-9a9b-3417ebe580ce",
+ "unit": "bv-agent",
+ "limit": 10
+ },
+
+
+
+
+
+ {
+ "slice": "slice-a-1",
+ "resource_id": "resource-1",
+ "resource_name": "resource-1",
+ "timestamp": "2016-09-19T14:54:05",
+ "meter": "broadview.pt.packet-trace-lag-resolution",
+ "limit": 30,
+ "metadata": {
+ "event_type": "broadview.pt.packet-trace-lag-resolution",
+ "lag-members": "['0/1', '0/2', '0/3', '0/4']",
+ "dst-lag-member": "0/1"
+ }
+ },
+ {
+ "slice": "slice-a-1",
+ "resource_id": "resource-1",
+ "resource_name": "resource-1",
+ "timestamp": "2016-09-19T14:54:05",
+ "meter": "broadview.pt.packet-trace-lag-resolution",
+ "limit": 30,
+ "metadata": {
+ "event_type": "broadview.pt.packet-trace-lag-resolution",
+ "lag-members": "['0/1', '0/2', '0/3', '0/4']",
+ "dst-lag-member": "0/1"
+ }
+ },
+ {
+ "slice": "slice-a-1",
+ "resource_id": "resource-1",
+ "resource_name": "resource-1",
+ "timestamp": "2016-09-19T14:54:05",
+ "meter": "broadview.pt.packet-trace-lag-resolution",
+ "limit": 30,
+ "metadata": {
+ "event_type": "broadview.pt.packet-trace-lag-resolution",
+ "lag-members": "['0/1', '0/2', '0/3', '0/4']",
+ "dst-lag-member": "0/2"
+ }
+ },
+ {
+ "slice": "slice-a-1",
+ "resource_id": "resource-1",
+ "resource_name": "resource-1",
+ "timestamp": "2016-09-19T14:54:05",
+ "meter": "broadview.pt.packet-trace-lag-resolution",
+ "limit": 30,
+ "metadata": {
+ "event_type": "broadview.pt.packet-trace-lag-resolution",
+ "lag-members": "['0/1', '0/2', '0/3', '0/4']",
+ "dst-lag-member": "0/3"
+ }
+ },
+ {
+ "slice": "slice-a-1",
+ "resource_id": "resource-1",
+ "resource_name": "resource-1",
+ "timestamp": "2016-09-19T14:54:05",
+ "meter": "broadview.pt.packet-trace-lag-resolution",
+ "limit": 30,
+ "metadata": {
+ "event_type": "broadview.pt.packet-trace-lag-resolution",
+ "lag-members": "['0/1', '0/2', '0/3', '0/4']",
+ "dst-lag-member": "0/4"
+ }
+ }
+]
\ No newline at end of file
diff --git a/views/ngXosViews/ceilometerDashboard/mock/data/xos-slice-service-mapping.json b/views/ngXosViews/ceilometerDashboard/mock/data/xos-slice-service-mapping.json
new file mode 100644
index 0000000..5e6ae23
--- /dev/null
+++ b/views/ngXosViews/ceilometerDashboard/mock/data/xos-slice-service-mapping.json
@@ -0,0 +1,11 @@
+[
+ {
+ "service":"service-a",
+ "slices":[
+ {
+ "project_id":"id-a-1",
+ "slice":"slice-a-1"
+ }
+ ]
+ }
+]
\ No newline at end of file