opsgenie-sdk
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
64
52652
18
927
1