Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <module name="HTML" layoutPanel="panel_row1_col1" group=" ">
- <param name="group"> </param>
- <param name="html"><![CDATA[Choose the versions you want to see.]]></param>
- <module name="Pulldown" autoRun="True">
- <param name="staticOptions">
- <list>
- <param name="value">1</param>
- <param name="label">last version</param>
- <!-- OTHER FIELDS-->
- </list>
- </param>
- <param name="name">cbSelectVersion</param>
- <module name="Switcher">
- <param name="selectedGroup">$cbSelectVersion$</param>
- <module name="HTML" group="1">
- <param name="html"><![CDATA[<br>]]></param>
- <param name="group">1</param>
- <module name="SavedSearch" autoRun="True">
- <param name="name"><!-- Name of the saved search--></param>
- <module name="PostProcess">
- <param name="search">
- <!-- Some postProcess is done to fill the $version$ variable-->
- <![CDATA[
- | top $cbSelectVersion$ v
- | stats values(v) as version
- | eval version="( v=\"" + mvjoin(version,"\" OR v=\"") + "\" )"
- | fields version]]>
- </param>
- <module name="ResultsValueSetter">
- <param name="fields">version</param>
- <module name="Search">
- <param name="latest">now</param>
- <param name="search">
- <!-- This search is valid because when done in the core search app I have some results-->
- <!-- It returns a single row, but I have tried with a search that returns several rows and it doesn't change anything-->
- <![CDATA[
- XXXXX $version$
- | transaction YYYYY maxpause=30m keeporphans=false keepevicted=false
- | search eventcount>1
- | eval v=if(isnull(v), 0, v)
- | stats avg(duration) as dur by v
- | eval sessionLength=round(dur/60, 1)
- | fields + v sessionLength
- ]]>
- </param>
- <!-- This is where the problems occurs, nothing results are displayed in the JSChart, just the axis and the value of the axis-->
- <module name="HiddenChartFormatter" layoutPanel="panel_row2_col1">
- <param name="chart.nullValueMode">connect</param>
- <module name="JSChart" />
- </module>
- <module name="HTML" layoutPanel="panel_row2_col1">
- <param name="html">
- <!-- The search and the version variable are both valid when displayed in this HTML module-->
- <![CDATA[
- The entire search is: <b>$search$</b><br>
- The versions are <b>$version$</b>]]>
- </param>
- </module>
- <module name="SimpleResultsTable" layoutPanel="panel_row3_col2" />
- <module name="CustomResultsTable" layoutPanel="panel_row3_col1">
- <module name="JSChart" />
- </module>
- </module>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement