code: function isValidQuery(definition) {
    var requiredKeys = [
      'event_name',
      'resource_type',
      'tracker_id'
    ];
  
    return _.all(requiredKeys, function(key) {
      return _.has(definition, key);
    });
  }
docs: Checks for required keys to execute a query
  
  @param {definition} Query definition
  @returns {boolean}