Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
/ npm-statuspage Public archive

A npm module for interacting with the statuspage.io API.

Notifications You must be signed in to change notification settings

dperezmavro/npm-statuspage

Repository files navigation

Introduction

This is a simple promise-based library to interact with the statuspage.io API.

Usage

In your code, simply:

const StatusPage = require('statuspage')
const status = new StatusPage(apiKey, pageId)

Supported Operations

This ever-growing list, currently supports:

  • updateMetric(metricId, val)
  • updateComponentState(componentId, status, componentName)
  • getComponents()
  • createComponent(componentName)
  • deleteComponent(componentId)

All of these methods return a promise for you to handle, with the exception of getComponents that is marked as async and will return the response data.

About

A npm module for interacting with the statuspage.io API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published