diff --git a/src/main/resources/support/http/resources/js/lang.js b/src/main/resources/support/http/resources/js/lang.js index ff65d9096d..5e2ed7f2ed 100644 --- a/src/main/resources/support/http/resources/js/lang.js +++ b/src/main/resources/support/http/resources/js/lang.js @@ -203,6 +203,7 @@ druid.lang = function() { 'TableName':['TableName', '表名'], 'SelectCount':['SelectCount', 'Select数'], + 'SelectIntoCount':['SelectIntoCount', 'SelectInto数'], 'InsertCount':['InsertCount', 'Insert数'], 'UpdateCount':['UpdateCount', 'Update数'], 'DeleteCount':['DeleteCount', 'Delete数'], diff --git a/src/main/resources/support/http/resources/wall.html b/src/main/resources/support/http/resources/wall.html index d004d62bbf..db58a46539 100644 --- a/src/main/resources/support/http/resources/wall.html +++ b/src/main/resources/support/http/resources/wall.html @@ -1,171 +1,172 @@ - - - - Druid DataSourceStat - - - - - - - - - - -
-
-
-

- Wall Stat - View JSON API -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CheckCount
HardCheckCount
ViolationCount
BlackListHitCount
BlackListSize
WhiteListHitCount
WhiteListSize
SyntaxErrrorCount
- - - - - - - - - - - - - - - - - - - -
TableNameSelectCountInsertCountUpdateCountDeleteCountTruncateCountCreateCountAlterCountDropCountReplaceCountDeleteDataCountUpdateDataCountFetchRowCount
- - - - - - - - -
Function NameInvokeCount
-
-
-
- + + + + + + +
+
+
+

+ Wall Stat + View JSON API +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CheckCount
HardCheckCount
ViolationCount
BlackListHitCount
BlackListSize
WhiteListHitCount
WhiteListSize
SyntaxErrrorCount
+ + + + + + + + + + + + + + + + + + + + +
TableNameSelectCountSelectCountInsertCountUpdateCountDeleteCountTruncateCountCreateCountAlterCountDropCountReplaceCountDeleteDataCountUpdateDataCountFetchRowCount
+ + + + + + + + +
Function NameInvokeCount
+
+
+
+ - - + handleAjaxResult : function(data) { + $("#CheckCount").text(data.Content.checkCount) + $("#HardCheckCount").text(data.Content.hardCheckCount) + $("#ViolationCount").text(data.Content.violationCount) + $("#BlackListHitCount").text(data.Content.blackListHitCount) + $("#BlackListSize").text(data.Content.blackListSize) + $("#WhiteListHitCount").text(data.Content.whiteListHitCount) + $("#WhiteListSize").text(data.Content.whiteListSize) + $("#SyntaxErrrorCount").text(data.Content.syntaxErrrorCount) + + var html = ""; + var tables = data.Content.tables; + if(tables) { + for ( var i = 0; i < tables.length; i++) { + var table = tables[i]; + html += ""; + html += "" + table.name + ""; + html += "" + (table.selectCount ? table.selectCount : 0)+ ""; + html += "" + (table.selectIntoCount ? table.selectIntoCount : 0) + ""; + html += "" + (table.insertCount ? table.insertCount : 0) + ""; + html += "" + (table.updateCount ? table.updateCount : 0) + ""; + html += "" + (table.deleteCount ? table.deleteCount : 0) + ""; + html += "" + (table.truncateCount ? table.truncateCount : 0) + ""; + html += "" + (table.createCount ? table.createCount : 0) + ""; + html += "" + (table.alterCount ? table.alterCount : 0) + ""; + html += "" + (table.dropCount ? table.dropCount : 0) + ""; + html += "" + (table.replaceCount ? table.replaceCount : 0) + ""; + html += "" + (table.deleteDataCount ? table.deleteDataCount : 0) + ""; + html += "" + (table.updateDataCount ? table.updateDataCount : 0) + ""; + html += "" + (table.fetchRowCount ? table.fetchRowCount : 0) + ""; + html += ""; + } + $("#dataTable1 tbody").html(html); + } + + html = ""; + var functions = data.Content.functions; + if (functions) { + for ( var i = 0; i < functions.length; i++) { + var fun = functions[i]; + html += ""; + html += "" + fun.name + ""; + html += "" + fun.invokeCount + ""; + html += ""; + } + $("#dataTable2 tbody").html(html); + } + } + } + }(); + + $(document).ready(function() { + druid.wall.init(); + }); + + +