|
20 | 20 |
|
21 | 21 | class DORAMetricsApi:
|
22 | 22 | """
|
23 |
| - Search or send events for DORA Metrics to measure and improve your software delivery performance. See the `DORA Metrics page <https://docs.datadoghq.com/dora_metrics/>`_ for more information. |
| 23 | + Search, send or delete events for DORA Metrics to measure and improve your software delivery performance. See the `DORA Metrics page <https://docs.datadoghq.com/dora_metrics/>`_ for more information. |
24 | 24 |
|
25 | 25 | **Note** : DORA Metrics are not available in the US1-FED site.
|
26 | 26 | """
|
@@ -90,6 +90,52 @@ def __init__(self, api_client=None):
|
90 | 90 | api_client=api_client,
|
91 | 91 | )
|
92 | 92 |
|
| 93 | + self._delete_dora_deployment_endpoint = _Endpoint( |
| 94 | + settings={ |
| 95 | + "response_type": None, |
| 96 | + "auth": ["apiKeyAuth", "appKeyAuth"], |
| 97 | + "endpoint_path": "/api/v2/dora/deployments/{deployment_id}", |
| 98 | + "operation_id": "delete_dora_deployment", |
| 99 | + "http_method": "DELETE", |
| 100 | + "version": "v2", |
| 101 | + }, |
| 102 | + params_map={ |
| 103 | + "deployment_id": { |
| 104 | + "required": True, |
| 105 | + "openapi_types": (str,), |
| 106 | + "attribute": "deployment_id", |
| 107 | + "location": "path", |
| 108 | + }, |
| 109 | + }, |
| 110 | + headers_map={ |
| 111 | + "accept": ["*/*"], |
| 112 | + }, |
| 113 | + api_client=api_client, |
| 114 | + ) |
| 115 | + |
| 116 | + self._delete_dora_failure_endpoint = _Endpoint( |
| 117 | + settings={ |
| 118 | + "response_type": None, |
| 119 | + "auth": ["apiKeyAuth", "appKeyAuth"], |
| 120 | + "endpoint_path": "/api/v2/dora/failures/{failure_id}", |
| 121 | + "operation_id": "delete_dora_failure", |
| 122 | + "http_method": "DELETE", |
| 123 | + "version": "v2", |
| 124 | + }, |
| 125 | + params_map={ |
| 126 | + "failure_id": { |
| 127 | + "required": True, |
| 128 | + "openapi_types": (str,), |
| 129 | + "attribute": "failure_id", |
| 130 | + "location": "path", |
| 131 | + }, |
| 132 | + }, |
| 133 | + headers_map={ |
| 134 | + "accept": ["*/*"], |
| 135 | + }, |
| 136 | + api_client=api_client, |
| 137 | + ) |
| 138 | + |
93 | 139 | self._get_dora_deployment_endpoint = _Endpoint(
|
94 | 140 | settings={
|
95 | 141 | "response_type": (DORAFetchResponse,),
|
@@ -243,6 +289,40 @@ def create_dora_incident(
|
243 | 289 | warnings.warn("create_dora_incident is deprecated", DeprecationWarning, stacklevel=2)
|
244 | 290 | return self._create_dora_incident_endpoint.call_with_http_info(**kwargs)
|
245 | 291 |
|
| 292 | + def delete_dora_deployment( |
| 293 | + self, |
| 294 | + deployment_id: str, |
| 295 | + ) -> None: |
| 296 | + """Delete a deployment event. |
| 297 | +
|
| 298 | + Use this API endpoint to delete a deployment event. |
| 299 | +
|
| 300 | + :param deployment_id: The ID of the deployment event to delete. |
| 301 | + :type deployment_id: str |
| 302 | + :rtype: None |
| 303 | + """ |
| 304 | + kwargs: Dict[str, Any] = {} |
| 305 | + kwargs["deployment_id"] = deployment_id |
| 306 | + |
| 307 | + return self._delete_dora_deployment_endpoint.call_with_http_info(**kwargs) |
| 308 | + |
| 309 | + def delete_dora_failure( |
| 310 | + self, |
| 311 | + failure_id: str, |
| 312 | + ) -> None: |
| 313 | + """Delete a failure event. |
| 314 | +
|
| 315 | + Use this API endpoint to delete a failure event. |
| 316 | +
|
| 317 | + :param failure_id: The ID of the failure event to delete. |
| 318 | + :type failure_id: str |
| 319 | + :rtype: None |
| 320 | + """ |
| 321 | + kwargs: Dict[str, Any] = {} |
| 322 | + kwargs["failure_id"] = failure_id |
| 323 | + |
| 324 | + return self._delete_dora_failure_endpoint.call_with_http_info(**kwargs) |
| 325 | + |
246 | 326 | def get_dora_deployment(
|
247 | 327 | self,
|
248 | 328 | deployment_id: str,
|
|
0 commit comments