Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Related-Bug:#1581650 Initial checkin for monitor infra config …
…node summary and dashboard new design implementation. Change-Id: I072860251d3ad7b603d5dd0521713b2a33d429f8"
- Loading branch information
Showing
11 changed files
with
705 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
webroot/monitor/infrastructure/common/ui/js/models/ConfigNodeChartsModel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
|
||
define([ | ||
'contrail-list-model' | ||
], function (ContrailListModel) { | ||
var ConfigNodeChartsModel = function () { | ||
var queryPostData = { | ||
"autoSort": true, | ||
"async": false, | ||
"formModelAttrs": { | ||
"table_name": "StatTable.VncApiStatsLog.api_stats", | ||
"table_type": "STAT", | ||
"query_prefix": "stat", | ||
"time_range": "3600", | ||
"from_time": Date.now() - (2 * 60 * 60 * 1000), | ||
"from_time_utc": Date.now() - (2 * 60 * 60 * 1000), | ||
"to_time": Date.now(), | ||
"to_time_utc": Date.now(), | ||
"select": "Source, T, UUID, api_stats.operation_type," + | ||
" api_stats.user, api_stats.useragent, api_stats.remote_ip," + | ||
" api_stats.domain_name, api_stats.project_name, api_stats.object_type," + | ||
" api_stats.response_time_in_usec, api_stats.response_size," + | ||
" api_stats.resp_code, name", | ||
"time_granularity_unit": "secs", | ||
"where": "", | ||
"where_json": null, | ||
"filter_json": null, | ||
"direction": "1", | ||
"filters": "", | ||
"limit": "150000" | ||
}, | ||
}; | ||
var listModelConfig = { | ||
remote : { | ||
ajaxConfig : { | ||
url : "/api/qe/query", | ||
type: 'POST', | ||
data: JSON.stringify(queryPostData) | ||
}, | ||
dataParser : function (response) { | ||
return response['data']; | ||
} | ||
}, | ||
cacheConfig : { | ||
ucid: ctwl.CACHE_CONFIGNODE_CHARTS | ||
} | ||
}; | ||
|
||
return ContrailListModel(listModelConfig); | ||
}; | ||
return ConfigNodeChartsModel; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.