when I query EOC 2.0, I get a null reply. Shouldn't EOC forward the query to the individual instances using the federated SWIS - then combine it all and present the data as a result set?
var swqlNodeStatusTable=`
select top 3 caption, InstanceSiteId from orion.nodes
`
var params = JSON.stringify({
query: swqlNodeStatusTable,
parameters: { } });
$.ajax({
type: 'POST',
url: '/Orion/Services/Information.asmx/QueryWithParameters',
data: params,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function(response) {
console.log('response',response);
$("#output").text(JSON.stringify(response, null, 2));
}
});
when I query using custom table, it works fine. I get tghe instance name and summary of node states. So the federsated SWIS reaches out to all of the instances, condolidates the data and presents the result set.
select caption, InstanceSiteId from orion.nodes
My theory is that the federated SWIS doesn't work at the javascript level.
Any ideas?