Skip to content

Commit d671e08

Browse files
committed
update alert definition object
1 parent 5ee602c commit d671e08

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

linode_api4/objects/monitor.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,7 @@ class AlertDefinition(DerivedBase):
433433
"severity": Property(mutable=True),
434434
"type": Property(mutable=True),
435435
"status": Property(mutable=True),
436-
"scope": Property(AlertScope),
437-
"regions": Property(mutable=True),
438-
"has_more_resources": Property(), # Deprecated; use entities.has_more_resources
439-
"entities": Property(json_object=AlertEntities),
436+
"has_more_resources": Property(), # Deprecated; use entities.has_more_resources.
440437
"rule_criteria": Property(mutable=True, json_object=RuleCriteria),
441438
"trigger_conditions": Property(
442439
mutable=True, json_object=TriggerConditions
@@ -446,11 +443,12 @@ class AlertDefinition(DerivedBase):
446443
"updated": Property(is_datetime=True),
447444
"updated_by": Property(),
448445
"created_by": Property(),
449-
"entity_ids": Property(
450-
mutable=True
451-
), # Deprecated; use entities.url to fetch associated entities
446+
"entity_ids": Property(mutable=True),
452447
"description": Property(mutable=True),
453448
"service_class": Property(alias_of="class"),
449+
"scope": Property(AlertScope),
450+
"regions": Property(mutable=True),
451+
"entities": Property(json_object=AlertEntities),
454452
}
455453

456454

0 commit comments

Comments
 (0)