code: function createEvent(params, cb) {
    var resourcePath = config.addURIParams("/events", params);
    var method = "POST";
    var data = {
      uid: params.guid,
      timestamp: (new Date().toISOString()),
      details: params.data.msg,
      eventClass: 'APP_STATE',
      eventType: params.data.type,
      eventLevel: 'FATAL',
      env: params.environment,
      domain: params.domain,
      dyno: '',
      appName: params.appname,
      updateBy: ''
    };
  
    params.resourcePath = resourcePath;
    params.method = method;
    params.data = data;
  
    mbaasRequest.app(params, cb);
  }
docs: Create an Event in the MBaaS