Skip to content

Commit 6385d29

Browse files
authored
Merge branch 'dev' into ACLP-logs-support
2 parents 2bdb1b2 + 4fec1e5 commit 6385d29

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
@@ -482,7 +482,6 @@ class AlertDefinition(DerivedBase):
482482
"severity": Property(mutable=True),
483483
"type": Property(mutable=True),
484484
"status": Property(mutable=True),
485-
"has_more_resources": Property(), # Deprecated; use entities.has_more_resources.
486485
"rule_criteria": Property(mutable=True, json_object=RuleCriteria),
487486
"trigger_conditions": Property(
488487
mutable=True, json_object=TriggerConditions
@@ -498,6 +497,7 @@ class AlertDefinition(DerivedBase):
498497
"scope": Property(AlertScope),
499498
"regions": Property(mutable=True),
500499
"entities": Property(json_object=AlertEntities),
500+
"channel_ids": Property(mutable=True),
501501
}
502502

503503

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)