code: function(event, params, callback) {
              if (!callback && utils.isFunction(params)) {
                  callback = params;
                  params = {};
              }
              
              callback = callback || function() {};
              params = params || {};
              
              // Add the index name
              params["index"] = this.name;
              
              var that = this;
              return this.service.log(event, params, function(err, result) {
                  callback(err, result, that); 
              });
          }
docs: Submits an event to this index.
  
  @example
  
  var index = service.indexes().item("_internal");
  index.submitEvent("A new event", {sourcetype: "mysourcetype"}, function(err, result, index) {
  console.log("Submitted event: ", result);
  });
  
  @param {String} event The text for this event.
  @param {Object} params A dictionary of parameters for indexing:
  - `host` (_string_): The value to populate in the host field for events from this data input.
  - `host_regex` (_string_): A regular expression used to extract the host value from each event.
  - `source` (_string_): The source value to fill in the metadata for this input's events.
  - `sourcetype` (_string_): The sourcetype to apply to events from this input.
  @param {Function} callback A function to call when the event is submitted: `(err, result, index)`.
  
  @endpoint receivers/simple?index={name}
  @method splunkjs.Service.Index