code: function(service, props) {
              this.service = service;
              this.search = props.search;
              this.drilldownSearch = props.drilldown_search;
              this.prettyQuery = this.openInSearch = props.open_in_search;
              this.pivotSearch = props.pivot_search;
              this.tstatsSearch = props.tstats_search || null;
  
              this.run = utils.bind(this, this.run);
          }
docs: Constructor for a pivot.
  SDK users are not expected to invoke this constructor directly.
  
  @constructor
  @param {splunkjs.Service} service A `Service` instance.
  @param {Object} props A dictionary of properties to set:
  - `search` (_string_): The search string for running the pivot report.
  - `drilldown_search` (_string_): The search for running this pivot report using drilldown.
  - `open_in_search` (_string_): Equivalent to search parameter, but listed more simply.
  - `pivot_search` (_string_): A pivot search command based on the named data model.
  - `tstats_search` (_string_|_null_): The search for running this pivot report using tstats, null if acceleration is disabled.
  
  @method splunkjs.Service.Pivot