Hello all,
We've made great progress toward our end goal for the custom SWQL resource we are wanting. We have the down nodes showing and the interfaces that are down or flapping showing in two separate resources. The NOC would like these combined and sorted by trigger date/time. Figured it'd be as simple as a Union like SQL but we're seeing something unexpected.
Upon setting up the Union as such:
select all the things from
(select kung from fu
UNION
(select foo from bar))
Order by timedatestamp
We are finding that it's only displaying the first select results. So if the interfaces query comes first it'll only show the interfaces in the resource, if the nodes query comes first then it'll show all down nodes only.
Is there something I'm not getting about the union operator or maybe setting this up incorrectly?
Your help is much appreciated.
P.S. I've used the following examples as the framework: Custom SWQL resource, Re: Custom SWQL Query Resource Help