UNPKG

opsgenie-sdk-revived

Version:

Reviving the opsgenie-sdk, Giving Node.js access to the OpsGenie Web API

17 lines (14 loc) 369 B
const opsgenie = require('../..'); require('../configure'); const get_rule_identifier = { identifier: 'ebb3c4e0-b9b9-4b6d-89d8-6b10032719db', identifierType: 'id', }; opsgenie.forwardingV2.get(get_rule_identifier, (error, rule) => { if (error) { console.error(error); } else { console.log('Get Rule Response for id: '); console.log(rule); } });