From 4b8f53542a6871c863fbaba16dd5e0e35cf05ce5 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Fri, 16 Mar 2018 02:44:42 +0000 Subject: Add SUT page in GUI JIRA: YARDSTICK-1076 We need to show SUT information in GUI. Change-Id: I885773894fc9f6aa5975b39383af1fdf1b88b8bb Signed-off-by: chenjiankun --- gui/app/scripts/factory/main.factory.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gui/app/scripts/factory/main.factory.js') diff --git a/gui/app/scripts/factory/main.factory.js b/gui/app/scripts/factory/main.factory.js index 7637a9ff3..16e9c81fe 100644 --- a/gui/app/scripts/factory/main.factory.js +++ b/gui/app/scripts/factory/main.factory.js @@ -58,6 +58,13 @@ angular.module('yardStickGui2App') } }) }, + SUTDetail: function() { + return $resource(Base_URL + '/api/v2/yardstick/environments/:envId/sut', { envId: "@envId" }, { + 'get': { + method: 'GET' + } + }) + }, ImageDetail: function() { return $resource(Base_URL + '/api/v2/yardstick/images/:image_id', { image_id: "@image_id" }, { 'get': { -- cgit 1.2.3-korg