def create(self,<EOL>alert_config,<EOL>occurrence_frequency_count=None,<EOL>occurrence_frequency_unit=None,<EOL>alert_frequency_count=None,<EOL>alert_frequency_unit=None):
data = {<EOL>'<STR_LIT>': occurrence_frequency_count or <NUM_LIT:1>,<EOL>'<STR_LIT>': occurrence_frequency_unit or '<STR_LIT>',<EOL>'<STR_LIT>': alert_frequency_count or <NUM_LIT:1>,<EOL>'<STR_LIT>': alert_frequency_unit or '<STR_LIT>',<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': True,<EOL>}<EOL>data.update(alert_config.args())<EOL>return self._post(<EOL>request=ApiActions.CREATE.value,<EOL>uri=ApiUri.ACTIONS.value,<EOL>params=data<EOL>)<EOL>
Create a new alert

:param alert_config: A list of AlertConfig classes (Ex:
    ``[EmailAlertConfig('me@mydomain.com')]``)
:type alert_config: list of
    :class:`PagerDutyAlertConfig<logentries_api.alerts.PagerDutyAlertConfig>`,
    :class:`WebHookAlertConfig<logentries_api.alerts.WebHookAlertConfig>`,
    :class:`EmailAlertConfig<logentries_api.alerts.EmailAlertConfig>`,
    :class:`SlackAlertConfig<logentries_api.alerts.SlackAlertConfig>`, or
    :class:`HipChatAlertConfig<logentries_api.alerts.HipChatAlertConfig>`

:param occurrence_frequency_count: How many times per
    ``alert_frequency_unit`` for a match before issuing an alert.
    Defaults to 1
:type occurrence_frequency_count: int

:param occurrence_frequency_unit: The time period to monitor for sending
    an alert. Must be 'day', or 'hour'. Defaults to 'hour'
:type occurrence_frequency_unit: str

:param alert_frequency_count: How many times per
    ``alert_frequency_unit`` to issue an alert. Defaults to 1
:type alert_frequency_count: int

:param alert_frequency_unit: How often to regulate sending alerts.
    Must be 'day', or 'hour'. Defaults to 'hour'
:type alert_frequency_unit: str

:returns: The response of your post
:rtype: dict

:raises: This will raise a
    :class:`ServerException<logentries_api.exceptions.ServerException>`
    if there is an error from Logentries