'Updates monitoring policy
:param policy_id: Id of the monitoring policy
:param email: Email to send notifications to
:rtype: ``str``
:param thresholds: Thresholds for the monitoring policy
:rtype: ``dict``
:param name: Name of the monitoring policy
:rtype: ``str``
:param description: Description of the monitoring policy
:rtype: ``str``
:return: Instance of the monitoring policy being deleted
:rtype: ``dict``'

def ex_update_monitoring_policy(self, policy_id, email, thresholds, name=None, description=None):

    body = {}
    if (name is not None):
        body['name'] = name
    if (description is not None):
        body['description'] = description
    if (thresholds is not None):
        body['thresholds'] = thresholds
    if (email is not None):
        body['email'] = email
    response = self.connection.request(action=('monitoring_policies/%s' % policy_id), data=body, method='PUT')
    return response.object
