Advertisement
Guest User

Untitled

a guest
Oct 25th, 2020
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.25 KB | None | 0 0
  1. <form>
  2.   <label>Police Activity</label>
  3.   <fieldset submitButton="true">
  4.     <input type="time" token="field1">
  5.       <label></label>
  6.       <default>
  7.         <earliest>0</earliest>
  8.         <latest></latest>
  9.       </default>
  10.     </input>
  11.     <input type="text" token="Input">
  12.       <label>Name</label>
  13.       <default>*</default>
  14.       <initialValue>*</initialValue>
  15.     </input>
  16.   </fieldset>
  17.   <row>
  18.     <panel>
  19.       <title>Top Activity by Cop</title>
  20.       <table>
  21.         <search>
  22.           <query>index=economy source="economy.csv" host="DESKTOP-B9KS0VG" sourcetype="csv" Job="Police" OnDuty="true" Name="$Input$"
  23. | stats count by JobLabel,Name
  24. | eval minutes = count * 5
  25. | eval hours = round(minutes / 60)
  26. | table Name,JobLabel,hours
  27. | sort -hours</query>
  28.           <earliest>$field1.earliest$</earliest>
  29.           <latest>$field1.latest$</latest>
  30.         </search>
  31.         <option name="drilldown">none</option>
  32.         <option name="refresh.display">progressbar</option>
  33.       </table>
  34.     </panel>
  35.     <panel>
  36.       <title>Top Activity by Rank</title>
  37.       <chart>
  38.         <search>
  39.           <query>index=economy source="economy.csv" host="DESKTOP-B9KS0VG" sourcetype="csv" Job="Police" OnDuty="true"  Name="$Input$"
  40. | stats count by JobLabel
  41. | eval minutes = count * 5
  42. | eval hours = round(minutes / 60)
  43. | table JobLabel,hours
  44. | sort -hours</query>
  45.           <earliest>$field1.earliest$</earliest>
  46.           <latest>$field1.latest$</latest>
  47.         </search>
  48.         <option name="charting.chart">pie</option>
  49.         <option name="charting.drilldown">none</option>
  50.         <option name="refresh.display">progressbar</option>
  51.       </chart>
  52.     </panel>
  53.   </row>
  54.   <row>
  55.     <panel>
  56.       <title>Average Number of Cops On</title>
  57.       <chart>
  58.         <search>
  59.           <query>index=economy source="economy.csv" host="DESKTOP-B9KS0VG" sourcetype="csv" Job="Police" OnDuty="true"  Name="$Input$"
  60. | streamstats count by Name
  61. | eval minutes = count * 5
  62. | eval hours = round(minutes / 60)
  63. | eval x = round(hours,1)
  64. | timechart span=1h avg(x) AS "Cops On Duty"</query>
  65.           <earliest>$field1.earliest$</earliest>
  66.           <latest>$field1.latest$</latest>
  67.         </search>
  68.         <option name="charting.chart">area</option>
  69.         <option name="charting.drilldown">none</option>
  70.         <option name="refresh.display">progressbar</option>
  71.       </chart>
  72.     </panel>
  73.     <panel>
  74.       <title>Average Number of Cops On by Rank</title>
  75.       <chart>
  76.         <search>
  77.           <query>index=economy source="economy.csv" host="DESKTOP-B9KS0VG" sourcetype="csv" Job="Police" OnDuty="true"  Name="$Input$"
  78. | streamstats count by Name
  79. | eval minutes = count * 5
  80. | eval hours = round(minutes / 60)
  81. | eval x = round(hours,1)
  82. | timechart span=1h avg(x) by JobLabel</query>
  83.           <earliest>$field1.earliest$</earliest>
  84.           <latest>$field1.latest$</latest>
  85.         </search>
  86.         <option name="charting.chart">line</option>
  87.         <option name="charting.chart.nullValueMode">connect</option>
  88.         <option name="charting.chart.stackMode">stacked</option>
  89.         <option name="charting.drilldown">none</option>
  90.         <option name="refresh.display">progressbar</option>
  91.       </chart>
  92.     </panel>
  93.   </row>
  94. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement