Hello,
I want to display two single values on the same line in one panel. Because I only need to use one title for each value, the right value is displaying higher than the left value. I've tried adding in black spaces in the XML to make up for the lack of title, but it's not working. Is there anyway I can fix this? I'm not sure how I would go about fixing it if I used CSS either. Any suggestions?
use `` tag to do it like this :
<title>"Value Title"</title>
<description>This example shows description Values </description>
<row>
<single>
<search>
<query>source="Source" | stats last(StatusCode) as value | rangemap field=value low=200-200 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Availability</option>
</single>
<single>
<search>
<query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value low=0-5 elevated=5-10 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Performance</option>
</single>
</row>
Thanks, but I think that will give the entire tier a title. I want multiple single values lined up in one panel... have a look at my image here to get a better understanding.
Thanks!
<panel>
<title>"Title"</title>
<single>
<title>"Value Title"</title>
<search>
<query>source="Source" | stats last(StatusCode) as value | rangemap field=value low=200-200 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Availability</option>
</single>
<single>
<search>
<query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value low=0-5 elevated=5-10 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Performance</option>
</single>
I've put your code into a dashboard but I can't see your issue, could you be a little more descriptive please so i can help.
Sure. I've added the second title back into the code below for better understanding. Because there is a title on the first Single Value, but not the second, the right value is displaying higher on the panel than the left one. I'd like them to be even, so I basically want to trick the code into thinking there is a title on the second Single Value so they display correctly.
<title>"Value Title"</title>
<search>
<query>source="Source" | stats last(StatusCode) as value | rangemap field=value low=200-200 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Availability</option>
<search>
<query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value low=0-5 elevated=5-10 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Performance</option>
Sorry... I noticed the code didn't post correctly.
<title>"Value Title"</title>
<search>
<query>source="Source" | stats last(StatusCode) as value | rangemap field=value low=200-200 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Availability</option>
<search>
<title> </title>
<query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value low=0-5 elevated=5-10 default=severe</query>
</search>
<option name="classField">range</option>
<option name="field">value</option>
<option name="drilldown">none</option>
<option name="linkView">search</option>
<option name="underLabel">Performance</option>
Can we get your sample code?