Package Exports
- beacon-sdk-node
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (beacon-sdk-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Beacon SDK
To install the sdk:
npm install git+ssh://git@gitswarm.f5net.com:f5aas/beacon-sdk-node
Sample usage:
const beacon = require('beacon-sdk-node');
async function createInsight() {
await beacon.login("your_username", "your_password");
let myInsight = {
title:"foo",
description:"I now have a desc!",
category:"INS_CAT_COST",
severity:"INS_SEV_CRITICAL"
};
try {
// This is now NotImplemented as it's using the deprecated imperative api internally
await beacon.insights.insertOrUpdate(myInsight);
} catch (e) {
console.log("Error calling insertOrUpdate: " + e.message)
}
console.log(await beacon.insights.list());
}
createInsight();