code: function Event(eventConfig) {
          eventConfig = utils.isUndefined(eventConfig) ? {} : eventConfig;
  
          this.data = utils.isUndefined(eventConfig.data) ? null : eventConfig.data;
          this.done = utils.isUndefined(eventConfig.done) ? true : eventConfig.done;
          this.host = utils.isUndefined(eventConfig.host) ? null : eventConfig.host;
          this.index = utils.isUndefined(eventConfig.index) ? null : eventConfig.index;
          this.source = utils.isUndefined(eventConfig.source) ? null : eventConfig.source;
          this.sourcetype = utils.isUndefined(eventConfig.sourcetype) ? null : eventConfig.sourcetype;
          this.stanza = utils.isUndefined(eventConfig.stanza) ? null : eventConfig.stanza;
          this.unbroken = utils.isUndefined(eventConfig.unbroken) ? true : eventConfig.unbroken;
  
          // eventConfig.time can be of type Date, Number, or String.
          this.time = utils.isUndefined(eventConfig.time) ? null : eventConfig.time;
      }
docs: `Event` represents an event or fragment of an event to be written by this
  modular input to Splunk.
  
  @example
  
  // Minimal configuration
  var myEvent =  new Event({
  data: "This is a test of my new event.",
  stanza: "myStanzaName",
  time: parseFloat("1372187084.000")
  });
  
  // Full configuration
  var myBetterEvent =  new Event({
  data: "This is a test of my better event.",
  stanza: "myStanzaName",
  time: parseFloat("1372187084.000"),
  host: "localhost",
  index: "main",
  source: "Splunk",
  sourcetype: "misc",
  done: true,
  unbroken: true
  });
  
  @param {Object} eventConfig An object containing the configuration for an `Event`.
  @class splunkjs.ModularInputs.Event