Skip to content

Commit

Permalink
2.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
David Veuve committed May 12, 2015
1 parent 6753eb3 commit 77ee859
Show file tree
Hide file tree
Showing 35 changed files with 2,424 additions and 599 deletions.
30 changes: 30 additions & 0 deletions appserver/static/AddDescriptions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions appserver/static/ShowPanelsSelectively.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

var questionlist = "<h2>Questions To Ask</h2>\
<ul>\
<li><a href=\"javascript:SetToken('Visibility_CountByUser');\">I want to understand changes over time... how many searches are run per user, per day?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_ActivityBySearchType');\">I want to understand changes over time... how many searches by type, per day?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_ActivityBySearchHead');\">What is my activity per search head?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_ExportedSearch');\">Are my users exporting search results?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_SharedSearches');\">Are my users sharing search results?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_ExpensiveCommands');\">What search commands are associated with slow searches?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_SearchTimespan');\">Over what timespan are users searching?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_UserPerformance');\">Are the users search behavior changing over time (with regard to performance metrics)?</a></li>\
<li><a href=\"javascript:SetToken('Visibility_SystemPerformance');\">Is the system's performance behavior changing over time?</a></li>\
</ul>"

document.getElementById("ProvideQuestions").innerHTML = questionlist

//document.getElementById("ProvideQuestions").innerHTML = "<h2>Questions To Ask</h2><ul><li><a href=\"#\" onclick=\"SetToken('Visibility_ActivityBySearchHead');\">What is my activity per search head?</a></li></ul>"

function SetToken(tokenname){
console.log("Testing...")
require(['splunkjs/mvc','splunkjs/mvc/utils','splunkjs/mvc/simplexml/ready!'], function(mvc, utils){
var unsubmittedTokens = mvc.Components.getInstance('default');
var submittedTokens = mvc.Components.getInstance('submitted');
console.log("About to set token...")
console.log("token name", tokenname);
unsubmittedTokens.set(tokenname,"I have a token!");
submittedTokens.set(unsubmittedTokens.toJSON());
});

return false;
}
36 changes: 36 additions & 0 deletions appserver/static/ShowPanelsSelectively.js.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
var questionlist = "<h2>Questions To Ask</h2>\
<ul>\
<li><a href=\"javascript:SetToken('Visibility_ActivityBySearchHead');\">What is my activity per search head?</a></li>\
</ul>"

document.getElementById("ProvideQuestions").innerHTML = questionlist

//document.getElementById("ProvideQuestions").innerHTML = "<h2>Questions To Ask</h2><ul><li><a href=\"#\" onclick=\"SetToken('Visibility_ActivityBySearchHead');\">What is my activity per search head?</a></li></ul>"

function SetToken(tokenname){
console.log("Testing...")
require([
"splunkjs/mvc",
"splunkjs/mvc/utils",
"splunkjs/mvc/tokenutils",
],
function(
mvc,
utils,
TokenUtils,
_,
$
) {



var unsubmittedTokens = mvc.Components.getInstance('default');
var submittedTokens = mvc.Components.getInstance('submitted');
console.log("About to set token...")
console.log("token name", tokenname);
unsubmittedTokens.set(tokenname,"I have a token!");
submittedTokens.set(unsubmittedTokens.toJSON());
}
);
return false;
}
12 changes: 12 additions & 0 deletions appserver/static/tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
document.getElementById("ProvideQuestions").innerHTML = "<h2>Questions To Ask</h2><ul><li><a href=\"#\" onclick=\"SetToken('Visibility_ActivityBySearchHead');\">What is my activity per search head?</a></li></ul>"

function SetToken(tokenname){




var unsubmittedTokens = mvc.Components.getInstance('default');
var submittedTokens = mvc.Components.getInstance('submitted');
unsubmittedTokens.set(tokenname,"I have a token!");
submittedTokens.set(unsubmittedTokens.toJSON());
}
Loading

0 comments on commit 77ee859

Please sign in to comment.