Is there a way to build a component availability report? I have been successful in pulling application availability however I am needing a break down by component.
I am assuming you are talking about SAM Component Availability, yes you can build it
Add the required fields onto the report like say Application Name, Application Status, Component Name, Component Status etc
Yes, thank you! I figured it out right after I posted this.
If you want SWQL query, this should get you started in the right direction:
SELECT node_name ,app_name ,comp_name ,Availability ,[sm].DisplayName as [Avail] ,date ,numrecs ,total ,ROUND(((numrecs*1.0)/(total*1.0))*100.0,1) as pFROM( select [as].Application.Node.NodeName as node_name ,[as].Application.Name as app_name ,[as].Application.Components.Name as comp_name ,[as].Availability ,DateTrunc('day', [as].TimeStamp) as date ,sum([as].RecordCount) as numrecs , ( select sum([as2].RecordCount) as s from Orion.APM.ApplicationStatus AS [as2] where [as].Application.Node.NodeName = [as2].Application.Node.NodeName and [as].Application.Name = [as2].Application.Name and DateTrunc('day', [as].TimeStamp) = DateTrunc('day', [as2].TimeStamp) ) as total from Orion.APM.ApplicationStatus AS [as] WHERE ([as].Application.Name like 'msi_%') and [as].TimeStamp BETWEEN DATETIME('2024-01-01') and DATETIME('2024-12-30') group BY [as].Application.Node.NodeName ,[as].Application.Name ,[as].Application.Components.Name ,DateTrunc('day', [as].TimeStamp) ,[as].Availability)JOIN Orion.APM.StatusMetadata [sm] on Availability = [sm].ApmStatusValueORDER BY node_name ,app_name ,comp_name ,date desc
A few notes:
<span>([</span><span>as</span><span>].</span>Application<span>.</span>Name <span>like</span> <span>'msi_%'</span><span>)</span>
<span>[</span><span>as</span><span>].</span>Application<span>.</span>Components<span>.</span>Name <span>as</span> comp_name
Use custom table, and select object as "application or component" It all depends on what fields you select during the report columns. It will be directly available