Hi All,
I'm trying to list all the volumes for a group of nodes for a business unit on a single row, With my script I get a new row per volume which takes up valuable real estate in the dashboard.
If the column macro END AS [Volume], [_linkfor_Volume] and [_IconFor_Volume] supported the use of a string I think it would do what I'm after which is create a new column for each volume, e.g. END AS [CONCAT(substring(n.Volumes.Caption, 1, 1)]
I have looked but have been unable to find documentation to determine if this is supported and I just have an incorrect syntax.
Does anyone know if this is possible or an allowed method of getting the layout I'm after.
select c.container.Name as [Group]
,c.container.DetailsUrl as [_linkfor_Group]
, n.Caption as Node
, c.detailsurl as [_linkfor_Node]
,'/Orion/images/StatusIcons/Small-' + n.StatusIcon AS [_IconFor_Node]
,CASE
WHEN n.Volumes.Caption like CONCAT(substring(n.Volumes.Caption, 1, 1),'%') then CONCAT(substring(n.Volumes.Caption, 1, 1),': ', round(n.Volumes.VolumePercentUsed,0),'% of ',round(n.Volumes.volumeSize/1073741824,0),' GB total')
END AS [Volume]
,concat('/Orion/NetPerfMon/VolumeDetails.aspx&NetObject=V:',n.Volumes.VolumeID) as [_linkfor_Volume]
,CASE
WHEN n.Volumes.VolumePercentUsed>= 95 THEN '/Orion/images/StatusIcons/Small-Down.gif'
WHEN n.Volumes.VolumePercentUsed< 95 and n.Volumes.VolumePercentUsed >= 85 THEN '/Orion/images/StatusIcons/Small-Warning.gif'
WHEN n.Volumes.VolumePercentUsed< 85 THEN '/Orion/images/StatusIcons/Small-Up.gif'
END AS [_IconFor_Volume]
from orion.nodes n
join orion.nodescustomproperties cp on cp.nodeid=n.nodeid
join Orion.ContainerMembers c on c.memberprimaryid=n.nodeid
left join orion.apm.application a on a.nodeid=n.nodeid
where MemberEntityType like 'orion.nodes'
and c.container.Name like 'WBU Production Servers'
order by n.caption
Thanks
Craig Boyce