Hi
Have tried out the query and not sure if I am doing it right as it has return no results found. Thanks!
Have attached my query below.
<row>
<panel>
<input type="time" token="time1">
<label></label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
<input type="dropdown" depends="$hide$">
<search>
<query>|makeresults </query>
<earliest>$time1.earliest$</earliest>
<latest>$time1.latest$</latest>
<progress>
<eval token="toEarliest">strptime($job.earliestTime$,"%Y-%m-%d%H:%M:%S.%Q")</eval>
<eval token="toLatest">strptime($job.latestTime$,"%Y-%m-%d%H:%M:%S.%Q")</eval>
<set token="jobEarliest">$job.earliestTime$</set>
<set token="jobLatest">$job.latestTime$</set>
</progress>
</search>
</input>
</panel>
</row>
<row>
<panel>
<title>SLA Email Response Time Breached Rate %</title>
<single>
<search base="base_search">
<query>|eval earliest = $toEarliest$ |eval latest = if($toLatest$ <0,now(),$toLatest$)
|where _time >=earliest AND _time <=latest
|where reportedsource="Email"|stats count(eval(responsetime >2)) as "Breached" , count(eval(reportedsource ="Email")) as total_count | eval percentage= round((Breached/total_count)*100,2) |eval Breached Rate=percentage| table "Breached Rate"</query>
</search>
<option name="colorMode">block</option>
<option name="drilldown">none</option>
<option name="rangeColors">["0xf7bc38","0xf58f39","0xd93f3c"]</option>
<option name="rangeValues">[50,80]</option>
<option name="refresh.display">preview</option>
<option name="unit">%</option>
<option name="unitPosition">after</option>
<option name="useColors">1</option>
</single>
</panel>
... View more