def update(self, alert):
data = {<EOL>'<STR_LIT:id>': alert['<STR_LIT:id>'],<EOL>'<STR_LIT:args>': alert['<STR_LIT:args>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT>': alert['<STR_LIT>'],<EOL>'<STR_LIT:type>': alert['<STR_LIT:type>'],<EOL>}<EOL>return self._post(<EOL>request=ApiActions.UPDATE.value,<EOL>uri=ApiUri.ACTIONS.value,<EOL>params=data<EOL>)<EOL>
Update an alert

:param alert: The data to update. Must include keys:

    * id (str)
    * rate_count (int)
    * rate_range (str): 'day' or 'hour'
    * limit_count (int)
    * limit_range (str): 'day' or 'hour'
    * type (str)
    * schedule (list)
    * args (dict)
:type alert: dict

Example:

.. code-block:: python

    Alert().update(
        alert={
            'id': 'd9d4596e-49e4-4135-b3b3-847f9e7c1f43',
            'args': {'direct': 'you@example.com'},
            'rate_count': 1,
            'rate_range': 'hour',
            'limit_count': 1,
            'limit_range': 'hour',
            'schedule': [],
            'enabled': True,
            'type': 'mailto',
        }
    )

:return:
:rtype: dict