From e8f992021142ebc0b80cdda89558125889e4ffb4 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Tue, 15 Sep 2015 14:37:12 +0530 Subject: [PATCH] metrics: add metrics listView module, include js files in index.jsp Signed-off-by: Rohit Yadav --- ui/index.jsp | 2 ++ ui/scripts/metrics.js | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 ui/scripts/metrics.js diff --git a/ui/index.jsp b/ui/index.jsp index 60f3cc3832c..78bcce3a6e1 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -1763,6 +1763,8 @@ + + diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js new file mode 100644 index 00000000000..c9ffcb1a73c --- /dev/null +++ b/ui/scripts/metrics.js @@ -0,0 +1,38 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +(function(cloudStack) { + cloudStack.sections.metrics = { + title: 'label.metrics', + listView: { + id: 'metrics', + fields: { + name: { + label: 'label.name' + } + }, + dataProvider: function(args) { + var data = {}; + listViewDataProvider(args, data); + // TODO implement provider + }, + actions: { + // TODO implement refresh action + } + } + }; + +})(cloudStack);