In the Orion SAM database, component statistic data seems to reside in the [APM_PortEvidence_Detail], [APM_PortEvidence_Daily], and [APM_PortEvidence_Hourly] tables according to the configured data retention periods. In the SWQL tool, there is a data structure called
Orion.APM.PortEvidence that appears to return min/max/average statistic values like they exist in the daily, hourly, and detail PortEvidence tables in the database, but doesn't give access to the raw statistic polling data. There are a few views into current component stats and details as well, but they also don't contain what I need. Am I missing anything?
For example, I wrote this SQL (not SWQL) query against the SAM database to return all statistic data for a given ComponentID, assuming the component actually stores statistic data.
select cd.TimeStamp, a.Name, c.Name, apd.StatisticData, cd.Availability, cd.PercentAvailability from [dbo].[APM_ComponentStatus_Detail] cd inner join dbo.APM_Application a on a.ID=cd.ApplicationID inner join dbo.APM_Component c on c.ID=cd.ComponentID inner join [dbo].[APM_PortEvidence_Detail] apd on apd.ComponentStatusID=cd.ID where cd.ComponentID=1489 --enter component ID here order by cd.TimeStamp desc
1 of 1 people found this helpful
The Orion.APM.PortEvidence and Orion.APM.ProcessEvidence entities should give you access to the detail, hourly and daily data. You will notice that the detail stats will have a RecordCount of 1, while stats that were aggregated into Hourly and daily will be higher.