Skip to content

Commit 5a9dfd7

Browse files
authored
Merge branch 'dev' into hotfix/TPT-4428-linodepy-incorrect-type-of-ip-address-assignments
2 parents 6ce9bac + 4fec1e5 commit 5a9dfd7

4 files changed

Lines changed: 1 addition & 11 deletions

File tree

linode_api4/objects/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ class AlertDefinition(DerivedBase):
433433
"severity": Property(mutable=True),
434434
"type": Property(mutable=True),
435435
"status": Property(mutable=True),
436-
"has_more_resources": Property(), # Deprecated; use entities.has_more_resources.
437436
"rule_criteria": Property(mutable=True, json_object=RuleCriteria),
438437
"trigger_conditions": Property(
439438
mutable=True, json_object=TriggerConditions
@@ -449,6 +448,7 @@ class AlertDefinition(DerivedBase):
449448
"scope": Property(AlertScope),
450449
"regions": Property(mutable=True),
451450
"entities": Property(json_object=AlertEntities),
451+
"channel_ids": Property(mutable=True),
452452
}
453453

454454

test/fixtures/monitor_alert-definitions.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"description": "A test alert for dbaas service",
1010
"scope": "entity",
1111
"regions": [],
12-
"entity_ids": ["13217"],
1312
"entities": {
1413
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
1514
"count": 1,
@@ -23,7 +22,6 @@
2322
"url": "/monitor/alert-channels/10000"
2423
}
2524
],
26-
"has_more_resources": false,
2725
"rule_criteria": null,
2826
"trigger_conditions": null,
2927
"class": "alert",

test/fixtures/monitor_services_dbaas_alert-definitions.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"description": "A test alert for dbaas service",
1010
"scope": "entity",
1111
"regions": [],
12-
"entity_ids": [
13-
"13217"
14-
],
1512
"entities": {
1613
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
1714
"count": 1,
@@ -25,7 +22,6 @@
2522
"url": "/monitor/alert-channels/10000"
2623
}
2724
],
28-
"has_more_resources": false,
2925
"rule_criteria": {
3026
"rules": [
3127
{

test/fixtures/monitor_services_dbaas_alert-definitions_12345.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"description": "A test alert for dbaas service",
88
"scope": "entity",
99
"regions": [],
10-
"entity_ids": [
11-
"13217"
12-
],
1310
"entities": {
1411
"url": "/monitor/services/dbaas/alert-definitions/12345/entities",
1512
"count": 1,
@@ -23,7 +20,6 @@
2320
"url": "/monitor/alert-channels/10000"
2421
}
2522
],
26-
"has_more_resources": false,
2723
"rule_criteria": {
2824
"rules": [
2925
{

0 commit comments

Comments
 (0)