Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Pulling availability stats

$
0
0

Hello,

 

I have downloaded the SWQL studio and managed to run a number of queries successfully, allowing us to use the NPM data across our other internal systems.

* Apologies if this is not the correct place its a NPM API question

 

But I have got stumped on the Availability table that appears on both nodes and applications.

 

I have got as far as the Orion.NPM.EW.DeviceStats table/view but there seems to be a mixture of results (minute by minute, hourly and daily all combined some of which have an "Available" and "Available Percent" others are just blank).

 

The query I have for now is:

SELECT NodeID, Available, AvailablePercent, ObservationTimestamp

FROM Orion.NPM.EW.DeviceStats

WHERE NodeID = 1740

ORDER BY ObservationTimestamp

 

Essentially I just want to recreate the table, is there a better way to go about this:

 

Availability Statistics

PERIOD     AVAILABILITY

Today    100.000 %

Yesterday    100.000 %

Last 7 Days    100.000 %

Last 30 Days    100.000 %

This Month    100.000 %

Last Month    100.000 %

This Year    100.000 %

 

Am I missing something obvious?

 

Many thanks,

Oli


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>