-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Veuve
committed
May 12, 2015
1 parent
6753eb3
commit 77ee859
Showing
35 changed files
with
2,424 additions
and
599 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,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; | ||
} |
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,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; | ||
} |
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,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()); | ||
} |
Oops, something went wrong.