Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
533 changes: 360 additions & 173 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

110 changes: 97 additions & 13 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7214,6 +7214,27 @@ datadog\_api\_client.v2.model.domain\_allowlist\_type module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_deployment\_fetch\_response module
----------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_deployment_fetch_response
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_deployment\_object module
-------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_deployment_object
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_deployment\_object\_attributes module
-------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_deployment_object_attributes
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_deployment\_request module
--------------------------------------------------------------

Expand Down Expand Up @@ -7256,10 +7277,17 @@ datadog\_api\_client.v2.model.dora\_deployment\_type module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_event module
------------------------------------------------
datadog\_api\_client.v2.model.dora\_deployments\_list\_response module
----------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_event
.. automodule:: datadog_api_client.v2.model.dora_deployments_list_response
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_failure\_fetch\_response module
-------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_failure_fetch_response
:members:
:show-inheritance:

Expand Down Expand Up @@ -7305,10 +7333,10 @@ datadog\_api\_client.v2.model.dora\_failure\_type module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_fetch\_response module
----------------------------------------------------------
datadog\_api\_client.v2.model.dora\_failures\_list\_response module
-------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_fetch_response
.. automodule:: datadog_api_client.v2.model.dora_failures_list_response
:members:
:show-inheritance:

Expand All @@ -7319,6 +7347,20 @@ datadog\_api\_client.v2.model.dora\_git\_info module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_incident\_object module
-----------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_incident_object
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_incident\_object\_attributes module
-----------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_incident_object_attributes
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_list\_deployments\_request module
---------------------------------------------------------------------

Expand Down Expand Up @@ -7375,13 +7417,6 @@ datadog\_api\_client.v2.model.dora\_list\_failures\_request\_data\_type module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.dora\_list\_response module
---------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.dora_list_response
:members:
:show-inheritance:

datadog\_api\_client.v2.model.downtime\_create\_request module
--------------------------------------------------------------

Expand Down Expand Up @@ -15467,6 +15502,34 @@ datadog\_api\_client.v2.model.observability\_pipeline\_aws\_auth module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options module
-----------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_disk\_type module
-----------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_disk_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_memory\_type module
-------------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_when\_full module
-----------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_config module
--------------------------------------------------------------------

Expand Down Expand Up @@ -15656,6 +15719,13 @@ datadog\_api\_client.v2.model.observability\_pipeline\_dedupe\_processor\_type m
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_disk\_buffer\_options module
-----------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_disk_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_elasticsearch\_destination module
----------------------------------------------------------------------------------------

Expand Down Expand Up @@ -16020,6 +16090,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_logstash\_source\_type mo
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_memory\_buffer\_options module
-------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_memory_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_memory\_buffer\_size\_options module
-------------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_memory_buffer_size_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_metadata\_entry module
-----------------------------------------------------------------------------

Expand Down
30 changes: 16 additions & 14 deletions src/datadog_api_client/v2/api/dora_metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
from datadog_api_client.configuration import Configuration
from datadog_api_client.v2.model.dora_deployment_response import DORADeploymentResponse
from datadog_api_client.v2.model.dora_deployment_request import DORADeploymentRequest
from datadog_api_client.v2.model.dora_list_response import DORAListResponse
from datadog_api_client.v2.model.dora_deployments_list_response import DORADeploymentsListResponse
from datadog_api_client.v2.model.dora_list_deployments_request import DORAListDeploymentsRequest
from datadog_api_client.v2.model.dora_fetch_response import DORAFetchResponse
from datadog_api_client.v2.model.dora_deployment_fetch_response import DORADeploymentFetchResponse
from datadog_api_client.v2.model.dora_failure_response import DORAFailureResponse
from datadog_api_client.v2.model.dora_failure_request import DORAFailureRequest
from datadog_api_client.v2.model.dora_failures_list_response import DORAFailuresListResponse
from datadog_api_client.v2.model.dora_list_failures_request import DORAListFailuresRequest
from datadog_api_client.v2.model.dora_failure_fetch_response import DORAFailureFetchResponse


class DORAMetricsApi:
Expand Down Expand Up @@ -138,7 +140,7 @@ def __init__(self, api_client=None):

self._get_dora_deployment_endpoint = _Endpoint(
settings={
"response_type": (DORAFetchResponse,),
"response_type": (DORADeploymentFetchResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/dora/deployments/{deployment_id}",
"operation_id": "get_dora_deployment",
Expand All @@ -161,7 +163,7 @@ def __init__(self, api_client=None):

self._get_dora_failure_endpoint = _Endpoint(
settings={
"response_type": (DORAFetchResponse,),
"response_type": (DORAFailureFetchResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/dora/failures/{failure_id}",
"operation_id": "get_dora_failure",
Expand All @@ -184,7 +186,7 @@ def __init__(self, api_client=None):

self._list_dora_deployments_endpoint = _Endpoint(
settings={
"response_type": (DORAListResponse,),
"response_type": (DORADeploymentsListResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/dora/deployments",
"operation_id": "list_dora_deployments",
Expand All @@ -204,7 +206,7 @@ def __init__(self, api_client=None):

self._list_dora_failures_endpoint = _Endpoint(
settings={
"response_type": (DORAListResponse,),
"response_type": (DORAFailuresListResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/dora/failures",
"operation_id": "list_dora_failures",
Expand Down Expand Up @@ -326,14 +328,14 @@ def delete_dora_failure(
def get_dora_deployment(
self,
deployment_id: str,
) -> DORAFetchResponse:
) -> DORADeploymentFetchResponse:
"""Get a deployment event.

Use this API endpoint to get a deployment event.

:param deployment_id: The ID of the deployment event.
:type deployment_id: str
:rtype: DORAFetchResponse
:rtype: DORADeploymentFetchResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["deployment_id"] = deployment_id
Expand All @@ -343,14 +345,14 @@ def get_dora_deployment(
def get_dora_failure(
self,
failure_id: str,
) -> DORAFetchResponse:
) -> DORAFailureFetchResponse:
"""Get a failure event.

Use this API endpoint to get a failure event.

:param failure_id: The ID of the failure event.
:type failure_id: str
:rtype: DORAFetchResponse
:rtype: DORAFailureFetchResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["failure_id"] = failure_id
Expand All @@ -360,13 +362,13 @@ def get_dora_failure(
def list_dora_deployments(
self,
body: DORAListDeploymentsRequest,
) -> DORAListResponse:
) -> DORADeploymentsListResponse:
"""Get a list of deployment events.

Use this API endpoint to get a list of deployment events.

:type body: DORAListDeploymentsRequest
:rtype: DORAListResponse
:rtype: DORADeploymentsListResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["body"] = body
Expand All @@ -376,13 +378,13 @@ def list_dora_deployments(
def list_dora_failures(
self,
body: DORAListFailuresRequest,
) -> DORAListResponse:
) -> DORAFailuresListResponse:
"""Get a list of failure events.

Use this API endpoint to get a list of failure events.

:type body: DORAListFailuresRequest
:rtype: DORAListResponse
:rtype: DORAFailuresListResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["body"] = body
Expand Down
25 changes: 25 additions & 0 deletions src/datadog_api_client/v2/model/azure_storage_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,28 @@


if TYPE_CHECKING:
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType
from datadog_api_client.v2.model.observability_pipeline_disk_buffer_options import (
ObservabilityPipelineDiskBufferOptions,
)
from datadog_api_client.v2.model.observability_pipeline_memory_buffer_options import (
ObservabilityPipelineMemoryBufferOptions,
)
from datadog_api_client.v2.model.observability_pipeline_memory_buffer_size_options import (
ObservabilityPipelineMemoryBufferSizeOptions,
)


class AzureStorageDestination(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType

return {
"blob_prefix": (str,),
"buffer": (ObservabilityPipelineBufferOptions,),
"container_name": (str,),
"id": (str,),
"inputs": ([str],),
Expand All @@ -32,6 +44,7 @@ def openapi_types(_):

attribute_map = {
"blob_prefix": "blob_prefix",
"buffer": "buffer",
"container_name": "container_name",
"id": "id",
"inputs": "inputs",
Expand All @@ -45,6 +58,13 @@ def __init__(
inputs: List[str],
type: AzureStorageDestinationType,
blob_prefix: Union[str, UnsetType] = unset,
buffer: Union[
ObservabilityPipelineBufferOptions,
ObservabilityPipelineDiskBufferOptions,
ObservabilityPipelineMemoryBufferOptions,
ObservabilityPipelineMemoryBufferSizeOptions,
UnsetType,
] = unset,
**kwargs,
):
"""
Expand All @@ -53,6 +73,9 @@ def __init__(
:param blob_prefix: Optional prefix for blobs written to the container.
:type blob_prefix: str, optional

:param buffer: Configuration for buffer settings on destination components.
:type buffer: ObservabilityPipelineBufferOptions, optional

:param container_name: The name of the Azure Blob Storage container to store logs in.
:type container_name: str

Expand All @@ -67,6 +90,8 @@ def __init__(
"""
if blob_prefix is not unset:
kwargs["blob_prefix"] = blob_prefix
if buffer is not unset:
kwargs["buffer"] = buffer
super().__init__(kwargs)

self_.container_name = container_name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.dora_deployment_object import DORADeploymentObject


class DORADeploymentFetchResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.dora_deployment_object import DORADeploymentObject

return {
"data": (DORADeploymentObject,),
}

attribute_map = {
"data": "data",
}

def __init__(self_, data: Union[DORADeploymentObject, UnsetType] = unset, **kwargs):
"""
Response for fetching a single deployment event.

:param data: A DORA deployment event.
:type data: DORADeploymentObject, optional
"""
if data is not unset:
kwargs["data"] = data
super().__init__(kwargs)
Loading