-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)New color scheme for config node & analytics node summary pages. 2)Subtracting the failed records from total records. Closes-Bug:#1581650 Did the following changes, 1)Using the start time and end time in query response for bucketizing the data, instead of the min & max time stamp of response to make sure always the bars are of same width irrespective of data 2)When there is not data for a given bucket, adding 0.01 times the max value/height(in case data is 0) as data to improve look and feel. Closes-Bug:#1581650 Handled the following in monitor infra config & Analytics nodes summary page 1)Irrespective of the response of chart queries legends will show all nodes 2)Add the tooltips for the legend which will show the node name 3)Fixed the issue, same node is getting assigned different colors across the charts in same page. Closed-Bug:#1581650 1)Replaced the database reads stack bar chart with analytics database usage in analytics summary page 2)Fixed the issue last bar is hidden in all summary page stack charts. Closes-Bug:#1581650 Changed the timestamp field from T to T= in sandesh message query in analytics node summary page chart & fixed the legend showing color code instead of node name summary page charts. Closes-Bug:#1610850 1)Fixed the issue analytics node summary page charts are not loading. 2)Added the cache and increased the ajax call timeout to 2 mins for config and analytics node summary charts. Change-Id: I153e178f34fa2a3fd706399c0d97172e312b6bd5
- Loading branch information
Showing
15 changed files
with
376 additions
and
152 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
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
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
53 changes: 53 additions & 0 deletions
53
webroot/monitor/infrastructure/common/ui/js/models/DatabaseUsageModel.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,53 @@ | ||
/* | ||
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
|
||
define([ | ||
'contrail-list-model' | ||
], function (ContrailListModel) { | ||
var DatabaseUsageModel = function () { | ||
var queryPostData = { | ||
"autoSort": true, | ||
"async": false, | ||
"formModelAttrs": { | ||
"table_name": "StatTable.DatabaseUsageInfo.database_usage", | ||
"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, MAX(database_usage.analytics_db_size_1k)", | ||
"time_granularity_unit": "secs", | ||
"limit": "150000" | ||
}, | ||
}; | ||
var listModelConfig = { | ||
remote : { | ||
ajaxConfig : { | ||
url : "/api/qe/query", | ||
type: 'POST', | ||
data: JSON.stringify(queryPostData), | ||
timeout : 120000 //2 mins | ||
}, | ||
dataParser : function (response) { | ||
var stats = getValueByJsonPath(response, 'data', []); | ||
$.each(stats, function(idx, obj) { | ||
obj['MAX(database_usage.analytics_db_size_1k)'] = | ||
ifNull(obj['MAX(database_usage.analytics_db_size_1k)'],0) * 1024; //Converting KB to Bytes | ||
}); | ||
listModel.queryJSON = response['queryJSON']; | ||
return stats; | ||
} | ||
}, | ||
cacheConfig : { | ||
ucid: ctwl.CACHE_DATABASE_USAGE_CHARTS | ||
} | ||
}; | ||
var listModel = new ContrailListModel(listModelConfig) | ||
return listModel; | ||
}; | ||
return DatabaseUsageModel; | ||
} | ||
); |
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.