0.1.6 • Published 7 years ago

statuspage v0.1.6

Weekly downloads
45
License
ISC
Repository
github
Last release
7 years ago

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.