code: function Publisher(options) {
      // handle configuration
      options = options || {};
      this.enabled = options.enabled || false;
      this.port = options.port || 31000;
      this.clientId = options.clientId || '';
      if (this.clientId.length > 255) {
          // ClientId has a max length of 255
          this.clientId = this.clientId.substr(0, 255);
      }
      this.messagesInFlight = 0;
      this.address = 'localhost';
  }
docs: 8 KB 
  Publishes metrics via udp.
  @param {object} options Paramters for Publisher constructor
  @param {number} [options.port = 31000] Port number
  @param {string} [options.clientId = ''] Client Identifier
  @param {boolean} [options.enabled = false] enable sending metrics datagram
  @api private