client/splunk.js
function(earliestTime, callback) {
            // If earliestTime parameter is not specified, then set callback to its value
            if (!callback && utils.isFunction(earliestTime)) {
                callback = earliestTime;
                earliestTime = undefined;
            }

            var query = "| datamodel \"" + this.dataModel.name + "\" " + this.name + " search | tscollect";
            var args = earliestTime ? {earliest_time: earliestTime} : {};

            this.dataModel.service.search(query, args, callback);
        }
function(earliestTime, callback) {
            // If earliestTime parameter is not specified, then set callback to its value
            if (!callback && utils.isFunction(earliestTime)) {
                callback = earliestTime;
                earliestTime = undefined;
            }

            var query = "| datamodel \"" + this.dataModel.name + "\" " + this.name + " search | tscollect";
            var args = earliestTime ? {earliest_time: earliestTime} : {};

            this.dataModel.service.search(query, args, callback);
        }
function ( earliestTime , callback ) { // If earliestTime parameter is not specified, then set callback to its value if ( ! callback && utils . isFunction ( earliestTime ) ) { callback = earliestTime ; earliestTime = undefined ; } var query = "| datamodel \"" + this . dataModel . name + "\" " + this . name + " search | tscollect" ; var args = earliestTime ? { earliest_time : earliestTime } : { } ; this . dataModel . service . search ( query , args , callback ) ; }
Local acceleration is tsidx acceleration of a data model object that is handled
manually by a user. You create a job which generates an index, and then use that
index in your pivots on the data model object.

The namespace created by the job is 'sid={sid}' where {sid} is the job's sid. You
would use it in another job by starting your search query with `| tstats ... from sid={sid} | ...`

The tsidx index created by this job is deleted when the job is garbage collected by Splunk.

It is the user's responsibility to manage this job, including cancelling it.

@example

service.dataModels().fetch(function(err, dataModels) {
var object = dataModels.item("some_data_model").objectByName("some_object");
object.createLocalAccelerationJob("-1d", function(err, accelerationJob) {
console.log("The job has name:", accelerationJob.name);
});
});

@param {String} earliestTime A time modifier (e.g., "-2w") setting the earliest time to index.
@param {Function} callback A function to call with the search job: `(err, accelerationJob)`.

@method splunkjs.Service.DataModelObject
Local acceleration is tsidx acceleration of a data model object that is handled manually by a user . You create a job which generates an index and then use that index in your pivots on the data model object .