diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index acd63e70a6..c0e9f7f7f4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -31063,9 +31063,17 @@ components: type: string values: description: |- - Column values in row order. The element type matches the column's `type`; - for example a `VARCHAR` column carries strings, a `TIMESTAMP` column carries - Unix-millisecond integers. `null` is allowed for missing values. + Column values in row order, one entry per result row. The element type + follows the column's `type`. The following serialization rules should be + taken into account: + + - `BIGINT` values are encoded as JSON numbers in the signed 64-bit integer range. + - `DECIMAL` values are encoded as JSON numbers with 64-bit double precision. + - `TIMESTAMP` and `DATE` values are encoded as Unix-millisecond integers; a + `DATE` resolves to midnight UTC. + - `JSON` values are returned as a JSON-encoded string. + + `null` is allowed for any column type where a value is missing. example: - web-store - checkout @@ -38212,6 +38220,15 @@ components: items: $ref: "#/components/schemas/FlakyTestHistory" type: array + impact_level: + $ref: "#/components/schemas/FlakyTestImpactLevel" + nullable: true + impact_score: + description: A score from 0 to 1 indicating the impact of this flaky test, based on factors such as how often it fails and how many pipelines it affects. + example: 0.78 + format: double + nullable: true + type: number last_flaked_branch: description: The branch name where the test exhibited flakiness for the last time. example: main @@ -38420,6 +38437,12 @@ components: nullable: true type: array type: object + FlakyTestImpactLevel: + description: The impact level of the flaky test, derived from its impact score. + enum: [low, medium, high] + example: medium + type: string + x-enum-varnames: [LOW, MEDIUM, HIGH] FlakyTestPipelineStats: description: CI pipeline related statistics for the flaky test. This information is only available if test runs are associated with CI pipeline events from CI Visibility. properties: @@ -135602,9 +135625,6 @@ paths: summary: Execute a tabular DDSQL query tags: - DDSQL - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/ddsql/query/tabular/fetch: post: description: |- @@ -135713,9 +135733,6 @@ paths: summary: Fetch the result of a DDSQL query tags: - DDSQL - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deletion/data/{product}: post: description: Creates a data deletion request by providing a query and a timeframe targeting the proper data. diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 23d3cc34b8..fe8b591c0d 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -15327,6 +15327,13 @@ datadog\_api\_client.v2.model.flaky\_test\_history\_policy\_meta\_config module :members: :show-inheritance: +datadog\_api\_client.v2.model.flaky\_test\_impact\_level module +--------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.flaky_test_impact_level + :members: + :show-inheritance: + datadog\_api\_client.v2.model.flaky\_test\_pipeline\_stats module ----------------------------------------------------------------- diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index 19b8d3d76f..2845db8c13 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -490,8 +490,6 @@ def __init__( "v2.get_all_datasets": False, "v2.get_dataset": False, "v2.update_dataset": False, - "v2.execute_ddsql_tabular_query": False, - "v2.fetch_ddsql_tabular_query": False, "v2.cancel_data_deletion_request": False, "v2.create_data_deletion_request": False, "v2.get_data_deletion_requests": False, diff --git a/src/datadog_api_client/v2/model/ddsql_tabular_query_column.py b/src/datadog_api_client/v2/model/ddsql_tabular_query_column.py index ab778d989d..4fe462f5db 100644 --- a/src/datadog_api_client/v2/model/ddsql_tabular_query_column.py +++ b/src/datadog_api_client/v2/model/ddsql_tabular_query_column.py @@ -44,9 +44,17 @@ def __init__(self_, name: str, type: str, values: List[Any], **kwargs): for the full, up-to-date list. :type type: str - :param values: Column values in row order. The element type matches the column's ``type`` ; - for example a ``VARCHAR`` column carries strings, a ``TIMESTAMP`` column carries - Unix-millisecond integers. ``null`` is allowed for missing values. + :param values: Column values in row order, one entry per result row. The element type + follows the column's ``type``. The following serialization rules should be + taken into account: + + * ``BIGINT`` values are encoded as JSON numbers in the signed 64-bit integer range. + * ``DECIMAL`` values are encoded as JSON numbers with 64-bit double precision. + * ``TIMESTAMP`` and ``DATE`` values are encoded as Unix-millisecond integers; a + ``DATE`` resolves to midnight UTC. + * ``JSON`` values are returned as a JSON-encoded string. + + ``null`` is allowed for any column type where a value is missing. :type values: [bool, date, datetime, dict, float, int, list, str, UUID, none_type] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/flaky_test_attributes.py b/src/datadog_api_client/v2/model/flaky_test_attributes.py index 3a6bc23f67..db5a3e0407 100644 --- a/src/datadog_api_client/v2/model/flaky_test_attributes.py +++ b/src/datadog_api_client/v2/model/flaky_test_attributes.py @@ -17,6 +17,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.flaky_test_attributes_flaky_state import FlakyTestAttributesFlakyState from datadog_api_client.v2.model.flaky_test_history import FlakyTestHistory + from datadog_api_client.v2.model.flaky_test_impact_level import FlakyTestImpactLevel from datadog_api_client.v2.model.flaky_test_pipeline_stats import FlakyTestPipelineStats from datadog_api_client.v2.model.flaky_test_run_metadata import FlakyTestRunMetadata from datadog_api_client.v2.model.flaky_test_stats import FlakyTestStats @@ -27,6 +28,7 @@ class FlakyTestAttributes(ModelNormal): def openapi_types(_): from datadog_api_client.v2.model.flaky_test_attributes_flaky_state import FlakyTestAttributesFlakyState from datadog_api_client.v2.model.flaky_test_history import FlakyTestHistory + from datadog_api_client.v2.model.flaky_test_impact_level import FlakyTestImpactLevel from datadog_api_client.v2.model.flaky_test_pipeline_stats import FlakyTestPipelineStats from datadog_api_client.v2.model.flaky_test_run_metadata import FlakyTestRunMetadata from datadog_api_client.v2.model.flaky_test_stats import FlakyTestStats @@ -41,6 +43,8 @@ def openapi_types(_): "flaky_category": (str, none_type), "flaky_state": (FlakyTestAttributesFlakyState,), "history": ([FlakyTestHistory],), + "impact_level": (FlakyTestImpactLevel,), + "impact_score": (float, none_type), "last_flaked_branch": (str,), "last_flaked_sha": (str,), "last_flaked_ts": (int,), @@ -63,6 +67,8 @@ def openapi_types(_): "flaky_category": "flaky_category", "flaky_state": "flaky_state", "history": "history", + "impact_level": "impact_level", + "impact_score": "impact_score", "last_flaked_branch": "last_flaked_branch", "last_flaked_sha": "last_flaked_sha", "last_flaked_ts": "last_flaked_ts", @@ -86,6 +92,8 @@ def __init__( flaky_category: Union[str, none_type, UnsetType] = unset, flaky_state: Union[FlakyTestAttributesFlakyState, UnsetType] = unset, history: Union[List[FlakyTestHistory], UnsetType] = unset, + impact_level: Union[FlakyTestImpactLevel, UnsetType] = unset, + impact_score: Union[float, none_type, UnsetType] = unset, last_flaked_branch: Union[str, UnsetType] = unset, last_flaked_sha: Union[str, UnsetType] = unset, last_flaked_ts: Union[int, UnsetType] = unset, @@ -132,6 +140,12 @@ def __init__( Includes state transitions like new -> quarantined -> fixed, along with the associated commit SHA when available. :type history: [FlakyTestHistory], optional + :param impact_level: The impact level of the flaky test, derived from its impact score. + :type impact_level: FlakyTestImpactLevel, optional + + :param impact_score: A score from 0 to 1 indicating the impact of this flaky test, based on factors such as how often it fails and how many pipelines it affects. + :type impact_score: float, none_type, optional + :param last_flaked_branch: The branch name where the test exhibited flakiness for the last time. :type last_flaked_branch: str, optional @@ -189,6 +203,10 @@ def __init__( kwargs["flaky_state"] = flaky_state if history is not unset: kwargs["history"] = history + if impact_level is not unset: + kwargs["impact_level"] = impact_level + if impact_score is not unset: + kwargs["impact_score"] = impact_score if last_flaked_branch is not unset: kwargs["last_flaked_branch"] = last_flaked_branch if last_flaked_sha is not unset: diff --git a/src/datadog_api_client/v2/model/flaky_test_impact_level.py b/src/datadog_api_client/v2/model/flaky_test_impact_level.py new file mode 100644 index 0000000000..abe855ab3f --- /dev/null +++ b/src/datadog_api_client/v2/model/flaky_test_impact_level.py @@ -0,0 +1,41 @@ +# 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 FlakyTestImpactLevel(ModelSimple): + """ + The impact level of the flaky test, derived from its impact score. + + :param value: Must be one of ["low", "medium", "high"]. + :type value: str + """ + + allowed_values = { + "low", + "medium", + "high", + } + LOW: ClassVar["FlakyTestImpactLevel"] + MEDIUM: ClassVar["FlakyTestImpactLevel"] + HIGH: ClassVar["FlakyTestImpactLevel"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +FlakyTestImpactLevel.LOW = FlakyTestImpactLevel("low") +FlakyTestImpactLevel.MEDIUM = FlakyTestImpactLevel("medium") +FlakyTestImpactLevel.HIGH = FlakyTestImpactLevel("high") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 8a861f6dd6..b2ff9e1f5b 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -2890,6 +2890,7 @@ from datadog_api_client.v2.model.flaky_test_history_policy_id import FlakyTestHistoryPolicyId from datadog_api_client.v2.model.flaky_test_history_policy_meta import FlakyTestHistoryPolicyMeta from datadog_api_client.v2.model.flaky_test_history_policy_meta_config import FlakyTestHistoryPolicyMetaConfig +from datadog_api_client.v2.model.flaky_test_impact_level import FlakyTestImpactLevel from datadog_api_client.v2.model.flaky_test_pipeline_stats import FlakyTestPipelineStats from datadog_api_client.v2.model.flaky_test_run_metadata import FlakyTestRunMetadata from datadog_api_client.v2.model.flaky_test_stats import FlakyTestStats @@ -12208,6 +12209,7 @@ "FlakyTestHistoryPolicyId", "FlakyTestHistoryPolicyMeta", "FlakyTestHistoryPolicyMetaConfig", + "FlakyTestImpactLevel", "FlakyTestPipelineStats", "FlakyTestRunMetadata", "FlakyTestStats",