Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion linode_api4/objects/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ class AlertDefinition(DerivedBase):
"severity": Property(mutable=True),
"type": Property(mutable=True),
"status": Property(mutable=True),
"has_more_resources": Property(), # Deprecated; use entities.has_more_resources.
"rule_criteria": Property(mutable=True, json_object=RuleCriteria),
"trigger_conditions": Property(
mutable=True, json_object=TriggerConditions
Expand All @@ -449,6 +448,7 @@ class AlertDefinition(DerivedBase):
"scope": Property(AlertScope),
"regions": Property(mutable=True),
"entities": Property(json_object=AlertEntities),
"channel_ids": Property(mutable=True),
}


Expand Down
2 changes: 0 additions & 2 deletions test/fixtures/monitor_alert-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"description": "A test alert for dbaas service",
"scope": "entity",
"regions": [],
"entity_ids": ["13217"],
"entities": {
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
"count": 1,
Expand All @@ -23,7 +22,6 @@
"url": "/monitor/alert-channels/10000"
}
],
"has_more_resources": false,
"rule_criteria": null,
"trigger_conditions": null,
"class": "alert",
Expand Down
4 changes: 0 additions & 4 deletions test/fixtures/monitor_services_dbaas_alert-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"description": "A test alert for dbaas service",
"scope": "entity",
"regions": [],
"entity_ids": [
"13217"
],
"entities": {
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
"count": 1,
Expand All @@ -25,7 +22,6 @@
"url": "/monitor/alert-channels/10000"
}
],
"has_more_resources": false,
"rule_criteria": {
"rules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"description": "A test alert for dbaas service",
"scope": "entity",
"regions": [],
"entity_ids": [
"13217"
],
"entities": {
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
"count": 1,
Expand All @@ -23,7 +20,6 @@
"url": "/monitor/alert-channels/10000"
}
],
"has_more_resources": false,
"rule_criteria": {
"rules": [
{
Expand Down