def create(self, name, patterns, logs, trigger_config, alert_reports):
data = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': [<EOL>alert_report.to_dict()<EOL>for alert_report<EOL>in alert_reports<EOL>],<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT>': patterns,<EOL>'<STR_LIT>': [<EOL>{'<STR_LIT:id>': log}<EOL>for log<EOL>in logs<EOL>],<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:type>': '<STR_LIT>'<EOL>}<EOL>}<EOL>data['<STR_LIT>'].update(trigger_config.to_dict())<EOL>return self._api_post(<EOL>url=self.url_template.format(account_id=self.account_id),<EOL>data=json.dumps(data, sort_keys=True)<EOL>)<EOL>
Create an inactivity alert

:param name: A name for the inactivity alert
:type name: str

:param patterns: A list of regexes to match
:type patterns: list of str

:param logs: A list of log UUID's. (The 'key' key of a log)
:type logs: list of str

:param trigger_config: A AlertTriggerConfig describing how far back to
    look for inactivity.
:type trigger_config: :class:`AlertTriggerConfig<logentries_api.special_alerts.AlertTriggerConfig>`

:param alert_reports: A list of AlertReportConfigs to send alerts to
:type alert_reports: list of
    :class:`AlertReportConfig<logentries_api.special_alerts.AlertReportConfig>`

:return: The API response
:rtype: dict

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