Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions newrelic_api/alert_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def update(

data = {
'condition': {
'condition_type': condition_type or target_condition['condition_type'],
'type': condition_type or target_condition['type'],
'name': name or target_condition['name'],
'enabled': enabled or target_condition['enabled'],
'entities': entities or target_condition['entities'],
Expand All @@ -146,4 +146,4 @@ def update(
)

# TODO: implement create and delete
# See https://docs.newrelic.com/docs/alerts/new-relic-alerts-beta/getting-started/rest-api-calls-new-relic-alerts
# See https://docs.newrelic.com/docs/alerts/new-relic-alerts-beta/getting-started/rest-api-calls-new-relic-alerts