How to use the opennms.API.OnmsResult function in opennms

To help you get started, we’ve selected a few opennms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenNMS / opennms-helm / src / spec / entity_ds_datasource_spec.js View on Github external
ctx.backendSrv.datasourceRequest = function(request) {
               return ctx.$q.when({
                    _request: request,
                   status: 200,
                   headers: {
                        'content-type': 'application/json'
                   },
                   data: API.OnmsResult.ok({'packageDescription':'OpenNMS','displayVersion':'19.1.0','packageName':'opennms','version':'19.1.0'})
                });
           };