-
Notifications
You must be signed in to change notification settings - Fork 624
HDDS-11206. Statistics storage usage indicators include min, max, median, stdev #6977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,15 @@ | |||||||||||||||||||||||||||||||||||||||
| $scope.RecordsToDisplay = "10"; | ||||||||||||||||||||||||||||||||||||||||
| $scope.currentPage = 1; | ||||||||||||||||||||||||||||||||||||||||
| $scope.lastIndex = 0; | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics = { | ||||||||||||||||||||||||||||||||||||||||
| nodes : { | ||||||||||||||||||||||||||||||||||||||||
| usages : {} | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.min = ""; | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.max = ""; | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.median = ""; | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.stdev = ""; | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @jianghuazhu, was there any reason behind separating these values out?
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| function get_protocol(URLScheme, value, baseProto, fallbackProto) { | ||||||||||||||||||||||||||||||||||||||||
| let protocol = "unknown" | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -81,6 +90,18 @@ | |||||||||||||||||||||||||||||||||||||||
| $scope.totalItems = nodeStatusCopy.length; | ||||||||||||||||||||||||||||||||||||||||
| $scope.lastIndex = Math.ceil(nodeStatusCopy.length / $scope.RecordsToDisplay); | ||||||||||||||||||||||||||||||||||||||||
| $scope.nodeStatus = nodeStatusCopy.slice(0, $scope.RecordsToDisplay); | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ctrl.nodemanagermetrics.NodeStatistics.map(({ key, value }) => { | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While using a |
||||||||||||||||||||||||||||||||||||||||
| if(key == "Min") { | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.min = value; | ||||||||||||||||||||||||||||||||||||||||
| } else if(key == "Max") { | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.max = value; | ||||||||||||||||||||||||||||||||||||||||
| } else if(key == "Median") { | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.median = value; | ||||||||||||||||||||||||||||||||||||||||
| } else if(key == "Stdev") { | ||||||||||||||||||||||||||||||||||||||||
| $scope.statistics.nodes.usages.stdev = value; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||
| /*if option is 'All' display all records else display specified record on page*/ | ||||||||||||||||||||||||||||||||||||||||
| $scope.UpdateRecordsToShow = () => { | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
Statics->Stats/Statistics