NEMS SaaS API¶
Trends API¶
Obtain the JSON output of your NEMS SaaS endpoint trends for a duration of time.
https://api-saas.nemslinux.com/trends/SAASKEY?ver=[num]
SAASKEY
= Your NEMS SaaS Key
ver
:
0
= [Default] The current state of your NEMS SaaS endpoints1
= The last hour’s trends for your NEMS SaaS endpoints2
= The past 6 hours trends3
= The past 12 hours trends4
= 24 hour trend for your NEMS SaaS endpoints5
= 7 days worth of trends6
= 1 month trend7
= Last 10 state changes8
= Last 25 state changes9
= Last 50 state changes
Sample JSON Output:
{"results":[{"ok":4,"warn":0,"crit":0,"statechange":"2022-08-27 07:51:40"}]}
Results are presented most recent to oldest. Timezone of statechange matches the user’s defined timezone.