How to use the moesifapi.EventModel function in moesifapi

To help you get started, we’ve selected a few moesifapi 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 Moesif / moesif-express / test / outgoingWithMoesif.js View on Github external
var trySaveEventLocal = function(eventData) {
        moesifController.createEvent(new moesifapi.EventModel(eventData), function(err) {
          console.log('moesif API callback err=' + err);
          if (err) {
            console.log('moesif API failed with error.');
            if (options.callback) {
              options.callback(err, eventData);
            }
          } else {
              console.log('moesif API succeeded');
            if (options.callback) {
              options.callback(null, eventData);
            }
          }
        });
      };

moesifapi

Collection/Data Ingestion API for Moesif

Apache-2.0
Latest version published 1 month ago

Package Health Score

73 / 100
Full package analysis