Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

opsgenie-sdk

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opsgenie-sdk - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

lib/alertV2/test.js

14

package.json
{
"name": "opsgenie-sdk",
"version": "0.4.3",
"version": "0.4.4",
"description": "OpsGenie Node.js SDK",
"main": "./index.js",
"scripts": {
"test": "grunt"
"test": "jest"
},

@@ -40,13 +40,5 @@ "repository": {

"chai": "^3.5.0",
"coveralls": "~2.11.9",
"grunt": "^1.0.1",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-nodeunit": "^1.0.0",
"grunt-contrib-uglify": "^1.0.1",
"grunt-jsdoc": "^2.1.0",
"grunt-simple-mocha": "^0.4.1",
"mocha": "^2.5.3",
"nock": "^8.0.0"
"jest": "^26.6.3"
},
"readmeFilename": "README.md"
}

@@ -14,14 +14,13 @@ # OpsGenie Node.js SDK

* Alert API v2
* Alert API
* User API
* Group API
* Team 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)
* Heartbeat API (TODO: will be available soon)
* Integration API (TODO: will be available soon)
* Policy API (TODO: will be available soon)
- Alert API v2
- User API
- Group API
- Team 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)
- Heartbeat API (TODO: will be available soon)
- Integration API (TODO: will be available soon)
- Policy API (TODO: will be available soon)

@@ -31,2 +30,3 @@ Future releases are subject to be delivered for packing more APIs soon.

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

@@ -39,6 +39,6 @@

```js
var opsgenie = require('opsgenie-sdk');
var opsgenie = require("opsgenie-sdk");
opsgenie.configure({
'api_key': 'your_api_key'
api_key: "your_api_key",
});

@@ -49,14 +49,15 @@ ```

var get_alert_identifier = {
identifier : "alert_id",
identifierType : "id"
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);
}
if (error) {
// handle error
} else {
console.log("Alert data received", alert);
}
});
```
## Samples

@@ -63,0 +64,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc