diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b058232198..8a0eaeb9d0 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -2080,6 +2080,7 @@ components: - $ref: "#/components/schemas/FormulaAndFunctionMetricQueryDefinition" - $ref: "#/components/schemas/FormulaAndFunctionEventQueryDefinition" - $ref: "#/components/schemas/FormulaAndFunctionApmResourceStatsQueryDefinition" + - $ref: "#/components/schemas/FormulaAndFunctionApmMetricsQueryDefinition" DistributionWidgetRequest: description: Updated distribution widget. properties: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4afc8ca399..795f35ac35 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -55624,7 +55624,6 @@ components: - $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination" - $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination" - $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination" - - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination" ObservabilityPipelineConfigPipelineType: default: logs description: The type of data being ingested. Defaults to `logs` if not specified. @@ -59746,81 +59745,6 @@ components: type: string x-enum-varnames: - SPLUNK_HEC - ObservabilityPipelineSplunkHecMetricsDestination: - description: |- - The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). - - **Supported pipeline types:** metrics - properties: - buffer: - $ref: "#/components/schemas/ObservabilityPipelineBufferOptions" - compression: - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression" - default_namespace: - description: Optional default namespace for metrics sent to Splunk HEC. - example: "custom_namespace" - type: string - endpoint_url_key: - description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL. - example: SPLUNK_HEC_ENDPOINT_URL - type: string - id: - description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components). - example: splunk-hec-metrics-destination - type: string - index: - description: Optional name of the Splunk index where metrics are written. - example: "metrics" - type: string - inputs: - description: A list of component IDs whose output is used as the `input` for this component. - example: ["metrics-filter-processor"] - items: - description: The ID of a component whose output is used as input for this destination. - type: string - type: array - source: - description: The Splunk source field value for metric events. - example: "observability_pipelines" - type: string - sourcetype: - description: The Splunk sourcetype to assign to metric events. - example: "custom_sourcetype" - type: string - tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" - token_key: - description: Name of the environment variable or secret that holds the Splunk HEC token. - example: SPLUNK_HEC_TOKEN - type: string - type: - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType" - required: - - id - - type - - inputs - type: object - x-pipeline-types: [metrics] - ObservabilityPipelineSplunkHecMetricsDestinationCompression: - default: none - description: Compression algorithm applied when sending metrics to Splunk HEC. - enum: - - none - - gzip - example: none - type: string - x-enum-varnames: - - NONE - - GZIP - ObservabilityPipelineSplunkHecMetricsDestinationType: - default: splunk_hec_metrics - description: The destination type. Always `splunk_hec_metrics`. - enum: - - splunk_hec_metrics - example: splunk_hec_metrics - type: string - x-enum-varnames: - - SPLUNK_HEC_METRICS ObservabilityPipelineSplunkHecSource: description: |- The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API. diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 8c6243db4a..203d259c74 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -25470,27 +25470,6 @@ datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_destination\ :members: :show-inheritance: -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination module ------------------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_compression module ------------------------------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_type module ------------------------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type - :members: - :show-inheritance: - datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_source module --------------------------------------------------------------------------------- diff --git a/src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py b/src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py index e896fb35bb..2bdc29a4d6 100644 --- a/src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py +++ b/src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py @@ -68,6 +68,21 @@ def __init__(self, **kwargs): :param stat: APM resource stat name. :type stat: FormulaAndFunctionApmResourceStatName + + :param operation_mode: Optional operation mode to aggregate across operation names. + :type operation_mode: str, optional + + :param peer_tags: Tags to query for a specific downstream entity (peer.service, peer.db_instance, peer.s3, peer.s3.bucket, etc.). + :type peer_tags: [str], optional + + :param query_filter: Additional filters for the query using metrics query syntax (e.g., env, primary_tag). + :type query_filter: str, optional + + :param resource_hash: The hash of a specific resource to filter by. + :type resource_hash: str, optional + + :param span_kind: Describes the relationship between the span, its parents, and its children in a trace. + :type span_kind: FormulaAndFunctionApmMetricsSpanKind, optional """ super().__init__(kwargs) @@ -89,11 +104,15 @@ def _composed_schemas(_): from datadog_api_client.v1.model.formula_and_function_apm_resource_stats_query_definition import ( FormulaAndFunctionApmResourceStatsQueryDefinition, ) + from datadog_api_client.v1.model.formula_and_function_apm_metrics_query_definition import ( + FormulaAndFunctionApmMetricsQueryDefinition, + ) return { "oneOf": [ FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionApmResourceStatsQueryDefinition, + FormulaAndFunctionApmMetricsQueryDefinition, ], } diff --git a/src/datadog_api_client/v1/model/distribution_widget_request.py b/src/datadog_api_client/v1/model/distribution_widget_request.py index e71d3b0a20..35bf1dd25e 100644 --- a/src/datadog_api_client/v1/model/distribution_widget_request.py +++ b/src/datadog_api_client/v1/model/distribution_widget_request.py @@ -148,6 +148,7 @@ def __init__( FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionApmResourceStatsQueryDefinition, + FormulaAndFunctionApmMetricsQueryDefinition, UnsetType, ] = unset, request_type: Union[WidgetHistogramRequestType, UnsetType] = unset, diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config.py b/src/datadog_api_client/v2/model/observability_pipeline_config.py index afd1a78d88..13a3ef23e0 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config.py @@ -97,9 +97,6 @@ from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( ObservabilityPipelineDatadogMetricsDestination, ) - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, - ) from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import ( ObservabilityPipelineDatadogAgentSource, ) @@ -203,7 +200,6 @@ def __init__( ObservabilityPipelineSyslogNgDestination, ObservabilityPipelineDatabricksZerobusDestination, ObservabilityPipelineDatadogMetricsDestination, - ObservabilityPipelineSplunkHecMetricsDestination, ] ], sources: List[ diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py index be0e39e2c7..0ddc4d1ff8 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py @@ -226,12 +226,6 @@ def __init__(self, **kwargs): :param unity_catalog_endpoint_key: Name of the environment variable or the secret identifier that references your Databricks workspace URL, which is used to communicate with the Unity Catalog API. :type unity_catalog_endpoint_key: str, optional - - :param default_namespace: Optional default namespace for metrics sent to Splunk HEC. - :type default_namespace: str, optional - - :param source: The Splunk source field value for metric events. - :type source: str, optional """ super().__init__(kwargs) @@ -315,9 +309,6 @@ def _composed_schemas(_): from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( ObservabilityPipelineDatadogMetricsDestination, ) - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, - ) return { "oneOf": [ @@ -346,6 +337,5 @@ def _composed_schemas(_): ObservabilityPipelineSyslogNgDestination, ObservabilityPipelineDatabricksZerobusDestination, ObservabilityPipelineDatadogMetricsDestination, - ObservabilityPipelineSplunkHecMetricsDestination, ], } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py deleted file mode 100644 index 477fcd1092..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py +++ /dev/null @@ -1,163 +0,0 @@ -# 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 List, Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, - ) - from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, - ) - 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 ObservabilityPipelineSplunkHecMetricsDestination(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, - ) - from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, - ) - - return { - "buffer": (ObservabilityPipelineBufferOptions,), - "compression": (ObservabilityPipelineSplunkHecMetricsDestinationCompression,), - "default_namespace": (str,), - "endpoint_url_key": (str,), - "id": (str,), - "index": (str,), - "inputs": ([str],), - "source": (str,), - "sourcetype": (str,), - "tls": (ObservabilityPipelineTls,), - "token_key": (str,), - "type": (ObservabilityPipelineSplunkHecMetricsDestinationType,), - } - - attribute_map = { - "buffer": "buffer", - "compression": "compression", - "default_namespace": "default_namespace", - "endpoint_url_key": "endpoint_url_key", - "id": "id", - "index": "index", - "inputs": "inputs", - "source": "source", - "sourcetype": "sourcetype", - "tls": "tls", - "token_key": "token_key", - "type": "type", - } - - def __init__( - self_, - id: str, - inputs: List[str], - type: ObservabilityPipelineSplunkHecMetricsDestinationType, - buffer: Union[ - ObservabilityPipelineBufferOptions, - ObservabilityPipelineDiskBufferOptions, - ObservabilityPipelineMemoryBufferOptions, - ObservabilityPipelineMemoryBufferSizeOptions, - UnsetType, - ] = unset, - compression: Union[ObservabilityPipelineSplunkHecMetricsDestinationCompression, UnsetType] = unset, - default_namespace: Union[str, UnsetType] = unset, - endpoint_url_key: Union[str, UnsetType] = unset, - index: Union[str, UnsetType] = unset, - source: Union[str, UnsetType] = unset, - sourcetype: Union[str, UnsetType] = unset, - tls: Union[ObservabilityPipelineTls, UnsetType] = unset, - token_key: Union[str, UnsetType] = unset, - **kwargs, - ): - """ - The ``splunk_hec_metrics`` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). - - **Supported pipeline types:** metrics - - :param buffer: Configuration for buffer settings on destination components. - :type buffer: ObservabilityPipelineBufferOptions, optional - - :param compression: Compression algorithm applied when sending metrics to Splunk HEC. - :type compression: ObservabilityPipelineSplunkHecMetricsDestinationCompression, optional - - :param default_namespace: Optional default namespace for metrics sent to Splunk HEC. - :type default_namespace: str, optional - - :param endpoint_url_key: Name of the environment variable or secret that holds the Splunk HEC endpoint URL. - :type endpoint_url_key: str, optional - - :param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the ``input`` to downstream components). - :type id: str - - :param index: Optional name of the Splunk index where metrics are written. - :type index: str, optional - - :param inputs: A list of component IDs whose output is used as the ``input`` for this component. - :type inputs: [str] - - :param source: The Splunk source field value for metric events. - :type source: str, optional - - :param sourcetype: The Splunk sourcetype to assign to metric events. - :type sourcetype: str, optional - - :param tls: Configuration for enabling TLS encryption between the pipeline component and external services. - :type tls: ObservabilityPipelineTls, optional - - :param token_key: Name of the environment variable or secret that holds the Splunk HEC token. - :type token_key: str, optional - - :param type: The destination type. Always ``splunk_hec_metrics``. - :type type: ObservabilityPipelineSplunkHecMetricsDestinationType - """ - if buffer is not unset: - kwargs["buffer"] = buffer - if compression is not unset: - kwargs["compression"] = compression - if default_namespace is not unset: - kwargs["default_namespace"] = default_namespace - if endpoint_url_key is not unset: - kwargs["endpoint_url_key"] = endpoint_url_key - if index is not unset: - kwargs["index"] = index - if source is not unset: - kwargs["source"] = source - if sourcetype is not unset: - kwargs["sourcetype"] = sourcetype - if tls is not unset: - kwargs["tls"] = tls - if token_key is not unset: - kwargs["token_key"] = token_key - super().__init__(kwargs) - - self_.id = id - self_.inputs = inputs - self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py deleted file mode 100644 index a0fb62edb8..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ObservabilityPipelineSplunkHecMetricsDestinationCompression(ModelSimple): - """ - Compression algorithm applied when sending metrics to Splunk HEC. - - :param value: If omitted defaults to "none". Must be one of ["none", "gzip"]. - :type value: str - """ - - allowed_values = { - "none", - "gzip", - } - NONE: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationCompression"] - GZIP: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationCompression"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ObservabilityPipelineSplunkHecMetricsDestinationCompression.NONE = ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression("none") -) -ObservabilityPipelineSplunkHecMetricsDestinationCompression.GZIP = ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression("gzip") -) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py deleted file mode 100644 index 825a741bb2..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ObservabilityPipelineSplunkHecMetricsDestinationType(ModelSimple): - """ - The destination type. Always `splunk_hec_metrics`. - - :param value: If omitted defaults to "splunk_hec_metrics". Must be one of ["splunk_hec_metrics"]. - :type value: str - """ - - allowed_values = { - "splunk_hec_metrics", - } - SPLUNK_HEC_METRICS: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationType"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ObservabilityPipelineSplunkHecMetricsDestinationType.SPLUNK_HEC_METRICS = ( - ObservabilityPipelineSplunkHecMetricsDestinationType("splunk_hec_metrics") -) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 43f1649b2a..71577769a7 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -5199,15 +5199,6 @@ from datadog_api_client.v2.model.observability_pipeline_splunk_hec_destination_type import ( ObservabilityPipelineSplunkHecDestinationType, ) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, -) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, -) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, -) from datadog_api_client.v2.model.observability_pipeline_splunk_hec_source import ObservabilityPipelineSplunkHecSource from datadog_api_client.v2.model.observability_pipeline_splunk_hec_source_type import ( ObservabilityPipelineSplunkHecSourceType, @@ -12070,9 +12061,6 @@ "ObservabilityPipelineSplunkHecDestinationEncoding", "ObservabilityPipelineSplunkHecDestinationTokenStrategy", "ObservabilityPipelineSplunkHecDestinationType", - "ObservabilityPipelineSplunkHecMetricsDestination", - "ObservabilityPipelineSplunkHecMetricsDestinationCompression", - "ObservabilityPipelineSplunkHecMetricsDestinationType", "ObservabilityPipelineSplunkHecSource", "ObservabilityPipelineSplunkHecSourceType", "ObservabilityPipelineSplunkHecSourceValidToken",