Skip to content

Commit

Permalink
Merge pull request #88 from Dynatrace-James-Kitson/kitson
Browse files Browse the repository at this point in the history
Return HTTP response from settings api delete
  • Loading branch information
Dynatrace-James-Kitson authored Aug 15, 2024
2 parents 10550c6 + 6a0600a commit db14c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dynatrace/environment_v2/monitored_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def _create_from_raw_data(self, raw_element: Dict[str, Any]):
self.icon: Optional[
EntityIcon] = EntityIcon(raw_element=raw_element.get("icon")) if raw_element.get("icon") else None
self.display_name: str = raw_element["displayName"]
self.type: str = raw_element['type']
self.entity_id: str = raw_element["entityId"]
self.properties: Optional[Dict[str, Any]] = raw_element.get("properties", {})
self.tags: List[METag] = [METag(raw_element=tag) for tag in raw_element.get("tags", [])]
Expand Down
2 changes: 1 addition & 1 deletion dynatrace/environment_v2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def delete_object(self, object_id: str, update_token: Optional[str] = None):
f"{self.OBJECTS_ENDPOINT}/{object_id}",
method="DELETE",
query_params=query_params,
).json()
)


class ModificationInfo(DynatraceObject):
Expand Down

0 comments on commit db14c12

Please sign in to comment.