Skip to content

Commit 7a5a43f

Browse files
committed
Applied review comments across
1 parent d45fcbe commit 7a5a43f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linode_api4/objects/monitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class AlertChannelEnvelope(JSONObject):
304304

305305
id: int = 0
306306
label: str = ""
307-
type: str = ""
307+
_type: str = field(default="", metadata={"json_key": "type"})
308308
url: str = ""
309309

310310

@@ -345,9 +345,9 @@ class AlertDefinition(DerivedBase):
345345
"type": Property(mutable=True),
346346
"status": Property(mutable=True),
347347
"has_more_resources": Property(mutable=True),
348-
"rule_criteria": Property(mutable=True),
348+
"rule_criteria": Property(mutable=True, json_object=RuleCriteria),
349349
"trigger_conditions": Property(mutable=True, json_object=TriggerConditions),
350-
"alert_channels": Property(mutable=True),
350+
"alert_channels": Property(mutable=True, json_object=AlertChannelEnvelope),
351351
"created": Property(is_datetime=True),
352352
"updated": Property(is_datetime=True),
353353
"updated_by": Property(),

0 commit comments

Comments
 (0)