Skip to content

Commit

Permalink
Correct linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Lock committed Apr 23, 2021
1 parent bb141fd commit a6e8673
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions elastalert/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,7 @@ def get_info(self):
"chatwork_room_id": self.chatwork_room_id
}


class DatadogAlerter(Alerter):
''' Creates a Datadog Event for each alert '''
required_options = frozenset(['datadog_api_key', 'datadog_app_key'])
Expand Down
1 change: 1 addition & 0 deletions tests/alerts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,7 @@ def test_alert_subject_size_limit_with_args(ea):
alertSubject = alert.create_custom_title([{'test_term': 'test_value', '@timestamp': '2014-10-31T00:00:00'}])
assert 6 == len(alertSubject)


def test_datadog_alerter():
rule = {
'name': 'Test Datadog Event Alerter',
Expand Down

0 comments on commit a6e8673

Please sign in to comment.