Skip to content

Commit d327b02

Browse files
committed
fixed unittest
1 parent c39a19d commit d327b02

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

linode_api4/groups/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def alert_definitions(
153153
self,
154154
*filters,
155155
service_type: Optional[str] = None,
156-
) -> Union[PaginatedList, AlertDefinition]:
156+
) -> Union[PaginatedList]:
157157
"""
158158
Retrieve alert definitions.
159159

linode_api4/objects/monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ class AlertDefinition(DerivedBase):
318318
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-alert-definition
319319
"""
320320

321-
api_endpoint = "/monitor/services/{service_type}/alert-definitions/{id}"
321+
api_endpoint = "/monitor/services/{service}/alert-definitions/{id}"
322322
derived_url_path = "alert-definitions"
323-
parent_id_name = "service_type"
323+
parent_id_name = "service"
324324
id_attribute = "id"
325325

326326
properties = {

0 commit comments

Comments
 (0)