function PagerDuty(options, log) {
  var parsed = url.parse(options.url);
  delete parsed.host;
  this.url = url.format(parsed);

  this.users = options.users;
  this.schedules = options.schedules;
  this.log = log || logmagic.local('pagerduty');
  this.pagerduty_auth = sprintf('Token token=%s', options.password);
}
function PagerDuty(options, log) {
  var parsed = url.parse(options.url);
  delete parsed.host;
  this.url = url.format(parsed);

  this.users = options.users;
  this.schedules = options.schedules;
  this.log = log || logmagic.local('pagerduty');
  this.pagerduty_auth = sprintf('Token token=%s', options.password);
}
function PagerDuty ( options , log ) { var parsed = url . parse ( options . url ) ; delete parsed . host ; this . url = url . format ( parsed ) ; this . users = options . users ; this . schedules = options . schedules ; this . log = log || logmagic . local ( 'pagerduty' ) ; this . pagerduty_auth = sprintf ( 'Token token=%s' , options . password ) ; }
PagerDuty Client.
@constructor
@param {Object} options The options.
PagerDuty Client .