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
35 changes: 26 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------------------------------------------

Expand Down
2 changes: 0 additions & 2 deletions src/datadog_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 11 additions & 3 deletions src/datadog_api_client/v2/model/ddsql_tabular_query_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions src/datadog_api_client/v2/model/flaky_test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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,),
Expand All @@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
41 changes: 41 additions & 0 deletions src/datadog_api_client/v2/model/flaky_test_impact_level.py
Original file line number Diff line number Diff line change
@@ -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")
2 changes: 2 additions & 0 deletions src/datadog_api_client/v2/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -12208,6 +12209,7 @@
"FlakyTestHistoryPolicyId",
"FlakyTestHistoryPolicyMeta",
"FlakyTestHistoryPolicyMetaConfig",
"FlakyTestImpactLevel",
"FlakyTestPipelineStats",
"FlakyTestRunMetadata",
"FlakyTestStats",
Expand Down
Loading