lib/endpoints/maintenance_mode.js
/**
 * End maintenance mode for routing keys.
 *
 * @param {String} modeId Maintenance mode ID.
 * @returns {Promise<Object>} VictorOps API response.
 */
End maintenance mode for routing keys.
@param {String} modeId Maintenance mode ID.
@returns {Promise} VictorOps API response.
End maintenance mode for routing keys . @param { String } modeId Maintenance mode ID . @returns { Promise } VictorOps API response .
async function endMode(modeId) {
  try {
    const apiPrefix = this.getApiPrefix();
    const options = this._getRequestOptions('PUT',
      `${apiPrefix}/maintenancemode/${modeId}/end`, null, {});
    return await this._performRequest(options);
  } catch (err) {
    throw this._handleError(err);
  }
}
async function endMode ( modeId ) { try { const apiPrefix = this . getApiPrefix ( ) ; const options = this . _getRequestOptions ( 'PUT' , ` ${ apiPrefix } ${ modeId } ` , null , { } ) ; return await this . _performRequest ( options ) ; } catch ( err ) { throw this . _handleError ( err ) ; } }
End maintenance mode for routing keys.
End maintenance mode for routing keys .
// Get the API prefix. // Get the request options. // Peform the request.