Skip to content

Commit

Permalink
Merge pull request #74 from sbricoutmac/patch-1
Browse files Browse the repository at this point in the history
Add delete_monitoring_configuration method
  • Loading branch information
Dynatrace-James-Kitson authored Nov 28, 2023
2 parents 82c0931 + ba4080c commit a2b54d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dynatrace/environment_v2/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ def put_monitoring_configuration(self,
response = self.__http_client.make_request(url, method="PUT", params=params)
return MonitoringConfigurationResponse(raw_element=response.json())

def delete_monitoring_configuration(self,
extension_name:str,
config_id: str):
url = f"{self.ENDPOINT}/{extension_name}/monitoringConfigurations/{config_id}"
return self.__http_client.make_request(url, method="DELETE")

class SchemaFiles(DynatraceObject):
def _create_from_raw_data(self, raw_element: Dict[str, Any]):
Expand Down

0 comments on commit a2b54d3

Please sign in to comment.