I have the following SQL query that runs on one Orion instance.
SELECT
Containers_AlertsAndReportsData.GroupName AS 'Core Network Path',
CAST(AVG(CAST(Containers_ContainerAvailability.GroupPercentAvailability as DECIMAL(10,2))) AS DECIMAL(10,2)) as 'Percent Availability'
FROM
Containers_AlertsAndReportsData with (nolock) INNER JOIN Containers_ContainerAvailability with (nolock) ON (Containers_AlertsAndReportsData.GroupID = Containers_ContainerAvailability.GroupID)
WHERE
DateTime BETWEEN DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 1, 0) AND DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AND
Containers_AlertsAndReportsData.GroupName LIKE 'My Core Network%'
GROUP BY
Containers_AlertsAndReportsData.GroupName,Containers_AlertsAndReportsData.GroupID
ORDER BY
Containers_AlertsAndReportsData.GroupName ASC
I would like to run it from the EOC and have it combine the results from 3 Orion instances.
- Question 1: Can I convert the above query to SWQL?
- Question 2: When / if I run it from the EOC, will it automatically query all 3 instances and pull the data together into a single report?