ProtectedconfigProtectedcontrollerProtectedcontrollerProtecteddebugProtectedinstanceProtectedprivateProtectedsiteProtectedcheckProtectedcheckFetch client devices that connected to the site within given timeframe
NOTES:
unknown need documentation (open PR)
unknown need documentation (open PR)
optional, hours to go back (default is 8760 hours or 1 year)
Fetch APs stats
returns an array stats objects for the current Aps (or AP with mac)
FIVE_MINUTES need version gte 5.5.*
OptionalAPMac: stringOptionalpStart: dateInputOptionalpEnd: dateInputFetch gateway stats
NOTES:
OptionalpStart: dateInputOptionalpEnd: dateInputProtectedgetFetch login sessions
NOTES:
// get all session between date
getSession({
 start: '2021-08-03T00:00:00.000Z',
 end: '2021-01-03T00:00:00.000Z',
 type: 'all'
});
// get 5 last sessions for mac address
getSession({
 mac: '00:0a:95:9d:68:16',
 _limit: 5,
 _sort: '-assoc_time'
});
Fetch site stats
returns an array stats objects for the current site
FIVE_MINUTES need version gte 5.5.*
OptionalpStart: dateInputOptionalpEnd: dateInputFetch Users stats
returns an array stats objects for the current Aps (or AP with mac)
OptionaluserMac: string | string[]OptionalpStart: dateInputOptionalpEnd: dateInputProtectedimportProtectedmapthe construtor to map the object
the properties passed to the constructor if defined
Protectedneedthe key object that need to be only supported on some versions
Optionalvalue: Tthe value store in this object
OptionalminVersion: stringthe minimal semver version for this object
OptionalunifiOs: booleanneed to be unifiOs ? or Unifi Controller ? if no need, pass undefined
to undefined check ?
Protectedset
the minimal semver version for this object