All Projects → opsgenie → opsgenie-nodejs-sdk

opsgenie / opsgenie-nodejs-sdk

Licence: Apache-2.0 license
OpsGenie Node.js SDK

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to opsgenie-nodejs-sdk

techno-boto-slack
A Slack bot written in JavaScript using the official Slack APIs and Node SDK
Stars: ✭ 21 (+16.67%)
Mutual labels:  node-sdk
aftership-sdk-nodejs
The node.js SDK of AfterShip API
Stars: ✭ 59 (+227.78%)
Mutual labels:  node-sdk
npr-one-api-js-sdk
An SDK for interfacing with the NPR One API, designed as a Universal Javascript Module
Stars: ✭ 22 (+22.22%)
Mutual labels:  node-sdk
open-sdk-node
有赞云网关 SDK for Node
Stars: ✭ 22 (+22.22%)
Mutual labels:  node-sdk
Alertmanager
Prometheus Alertmanager
Stars: ✭ 4,574 (+25311.11%)
Mutual labels:  opsgenie
slack-to-opsgenie-alert-creator
Create alerts from messages sent to a Slack channel
Stars: ✭ 25 (+38.89%)
Mutual labels:  opsgenie
workos-node
Official Node SDK for interacting with the WorkOS API
Stars: ✭ 42 (+133.33%)
Mutual labels:  node-sdk

OpsGenie Node.js SDK

npm version Dependency Status

This is the repository for Node.js SDK of OpsGenie.

Aim and Scope

OpsGenie Node.js SDK aims to access OpsGenie Web API through HTTP calls from Node.js applications.

OpsGenie Node.js SDK covers:

  • Alert API v2
  • User API
  • User API v2
  • Group API
  • Team API
  • Heartbeat API
  • Incident API
  • Escalation API (TODO: will be available soon)
  • Schedule API (TODO: will be available soon)
  • Schedule Override API (TODO: will be available soon)
  • Forwarding Rule API (TODO: will be available soon)
  • Integration API (TODO: will be available soon)
  • Policy API (TODO: will be available soon)

Future releases are subject to be delivered for packing more APIs soon.

Installation

Node.js version >=0.6.x is required.

npm install opsgenie-sdk

Getting Started

var opsgenie = require("opsgenie-sdk");

opsgenie.configure({
  api_key: "your_api_key",
});

Those using the European Service Region should set the EU endpooint in the configuration along with the API key.

opsgenie.configure({
    'api_key': 'your_api_key',
    'host': 'https://api.eu.opsgenie.com',
});
var get_alert_identifier = {
  identifier: "alert_id",
  identifierType: "id",
};

opsgenie.alertV2.get(get_alert_identifier, function (error, alert) {
  if (error) {
    // handle error
  } else {
    console.log("Alert data received", alert);
  }
});

Samples

More samples can be found under /samples directory

Also, checkout "Node.js SDK page" for detailed documentation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].