Get top bandwidth usage devices within a custom period on your MSP. If the bandwidth usage reaches the configured limit, it will be able to send a message to Discord. It functions the same as Send alarms to Discord.
Reminder: It is only supported on MSP 2.1.0 or later.
Assume you've already cloned https://github.com/firewalla/msp-api-examples.git
and cd msp-api-examples
cd get-top-bandwidth-usage-devices
npm install
domain="<YOUR-MSP-DOMAIN>" token="<YOUR-MSP-TOKEN>" node ./index.js