function Publisher(options) {
    // handle configuration
    options = options || {};
    this.enabled = options.enabled || false;
    this.port = options.port || 31000;
    this.clientId = options.clientId || '';
    this.address = options.host || '127.0.0.1';
    if (this.clientId.length > 255) {
        // ClientId has a max length of 255
        this.clientId = this.clientId.substr(0, 255);
    }
    this.messagesInFlight = 0;
}
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