We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c069d3 commit 5ee602cCopy full SHA for 5ee602c
linode_api4/groups/monitor.py
@@ -275,14 +275,15 @@ def create_alert_definition(
275
"rule_criteria": rule_criteria,
276
"trigger_conditions": trigger_conditions,
277
}
278
+
279
+ if entity_ids is not None:
280
+ params["entity_ids"] = entity_ids
281
+ if description is not None:
282
+ params["description"] = description
283
if scope is not None:
284
params["scope"] = scope
285
if regions is not None:
286
params["regions"] = regions
- if description is not None:
- params["description"] = description
- if entity_ids is not None:
- params["entity_ids"] = entity_ids
287
288
# API will validate service_type and return an error if missing
289
result = self.client.post(
0 commit comments