New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

aiuptime-api

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiuptime-api

AIuptime Dealer System API Module

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
5
400%
Maintainers
0
Weekly downloads
 
Created
Source

AIuptime API

let uptimeAPI = new uptimeDealerAPI({ key: 'API KEY', api: 'https://api.aiuptime.net/v1' });

    let test = await uptimeAPI.test();
    let createMonitor = await uptimeAPI.createMonitor({ name: 'Test Monitor', url: 'https://www.aiuptime.net', description: 'This is a test monitor' });

    //deleteMonitor by monitor URL
    let deleteMonitor = await uptimeAPI.deleteMonitor({ url: 'https://aiuptime.net' }); 

    //deleteMonitor by monitor ID
    let deleteMonitor = await uptimeAPI.deleteMonitor({ monitorID: '3862852262479916500' });

    let getMonitors = await uptimeAPI.getMonitors();

    //getMonitor by monitor URL
    let getMonitor = await uptimeAPI.getMonitor({ url: 'https://www.aiuptime.net' });

    //getMonitor by monitor ID
    let getMonitor = await uptimeAPI.getMonitor({ monitorID: '7219057736083927000' });

    //monitorUpdate by monitor URL
    let monitorUpdate = await uptimeAPI.updateMonitor({ name: 'Test', url: 'https://www.aiuptime.net', description: 'This is a test monitor' });

    //monitorUpdate by monitor ID
    let monitorUpdate = await uptimeAPI.updateMonitor({ monitorID: '7219057736083927000', name: 'Test', description: 'This is a test monitor', url: 'https://www.aiuptime.net' });

    //changeStatus by monitor URL (statusType: status or maintenance)
    let changeStatus = await uptimeAPI.changeMonitorStatus({ url: 'https://www.aiuptime.net', status: true, statusType: 'status' });

    //changeStatus by monitor ID (statusType: status or maintenance)
    let changeStatus = await uptimeAPI.changeMonitorStatus({ monitorID: '7219057736083927000', status: false, statusType: 'maintenance' });

🎈 Images 🎈

Prew

  • For Support
  • 💕 Discord
  • 🏓 AIuptime
  • ☄️ Click For Contact

🎯 License 🎯

Keywords

aiuptime

FAQs

Package last updated on 01 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts