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
103 changes: 103 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29903,6 +29903,35 @@ components:
type: string
nullable: true
type: array
DORADeploymentAveragedMetrics:
description: Averaged DORA and delivery metrics computed across the commits and pull requests included in the deployment.
properties:
change_lead_time:
description: The averaged change lead time, in seconds.
example: 166821
format: int64
type: integer
merge_time:
description: The averaged merge time, in seconds.
example: 5852
format: int64
type: integer
review_time:
description: The averaged review time, in seconds.
example: 140
format: int64
type: integer
time_to_deploy:
description: The averaged time to deploy, in seconds.
example: 164481
format: int64
type: integer
time_to_pr_ready:
description: The averaged time until the pull request was ready for review, in seconds.
example: 27
format: int64
type: integer
type: object
DORADeploymentFetchResponse:
description: Response for fetching a single deployment event.
properties:
Expand Down Expand Up @@ -29940,8 +29969,43 @@ components:
DORADeploymentObjectAttributes:
description: The attributes of the deployment event.
properties:
ai:
additionalProperties: {}
description: AI-assisted development metrics aggregated across the commits and pull requests included in the deployment.
type: object
averaged_metrics:
$ref: "#/components/schemas/DORADeploymentAveragedMetrics"
change_failure:
description: Whether the deployment is flagged as a change failure.
example: false
type: boolean
commits:
description: The list of commits included in the deployment.
items:
additionalProperties: {}
type: object
type: array
created_at:
description: The time when the deployment event was recorded.
example: "2023-08-31T14:26:24Z"
format: date-time
type: string
custom:
additionalProperties: {}
description: A map of custom metadata associated with the deployment.
example: {"service": ["courier-cloud"]}
type: object
custom_tags:
$ref: "#/components/schemas/DORACustomTags"
deployment_type:
description: The type of the deployment.
example: standard
type: string
duration:
description: The duration of the deployment.
example: 0
format: int64
type: integer
env:
description: Environment name to where the service was deployed.
example: production
Expand All @@ -29953,10 +30017,37 @@ components:
type: string
git:
$ref: "#/components/schemas/DORAGitInfoResponse"
number_of_commits:
description: The number of commits associated with the deployment.
example: 5
format: int64
type: integer
number_of_pull_requests:
description: The number of pull requests associated with the deployment.
example: 1
format: int64
type: integer
pull_requests:
description: The list of pull requests included in the deployment.
items:
additionalProperties: {}
type: object
type: array
recovery_time_sec:
description: The recovery time, in seconds, for a deployment flagged as a change failure.
example: 28230
format: int64
type: integer
remediation:
$ref: "#/components/schemas/DORADeploymentRemediation"
service:
description: Service name.
example: shopist
type: string
source:
description: The source of the deployment event.
example: apm_deployments
type: string
started_at:
description: The time when the deployment started.
example: "2023-08-31T14:26:14Z"
Expand Down Expand Up @@ -30148,6 +30239,18 @@ components:
type: string
x-enum-varnames:
- DORA_DEPLOYMENT_PATCH_REQUEST
DORADeploymentRemediation:
description: Remediation details for a deployment that was flagged as a change failure.
properties:
id:
description: The ID of the remediation deployment.
example: eG42zNIkVjM
type: string
type:
description: The type of remediation, such as a rollback.
example: rollback
type: string
type: object
DORADeploymentRequest:
description: Request to create a DORA deployment event.
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 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

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


class DORADeploymentAveragedMetrics(ModelNormal):
@cached_property
def openapi_types(_):
return {
"change_lead_time": (int,),
"merge_time": (int,),
"review_time": (int,),
"time_to_deploy": (int,),
"time_to_pr_ready": (int,),
}

attribute_map = {
"change_lead_time": "change_lead_time",
"merge_time": "merge_time",
"review_time": "review_time",
"time_to_deploy": "time_to_deploy",
"time_to_pr_ready": "time_to_pr_ready",
}

def __init__(
self_,
change_lead_time: Union[int, UnsetType] = unset,
merge_time: Union[int, UnsetType] = unset,
review_time: Union[int, UnsetType] = unset,
time_to_deploy: Union[int, UnsetType] = unset,
time_to_pr_ready: Union[int, UnsetType] = unset,
**kwargs,
):
"""
Averaged DORA and delivery metrics computed across the commits and pull requests included in the deployment.

:param change_lead_time: The averaged change lead time, in seconds.
:type change_lead_time: int, optional

:param merge_time: The averaged merge time, in seconds.
:type merge_time: int, optional

:param review_time: The averaged review time, in seconds.
:type review_time: int, optional

:param time_to_deploy: The averaged time to deploy, in seconds.
:type time_to_deploy: int, optional

:param time_to_pr_ready: The averaged time until the pull request was ready for review, in seconds.
:type time_to_pr_ready: int, optional
"""
if change_lead_time is not unset:
kwargs["change_lead_time"] = change_lead_time
if merge_time is not unset:
kwargs["merge_time"] = merge_time
if review_time is not unset:
kwargs["review_time"] = review_time
if time_to_deploy is not unset:
kwargs["time_to_deploy"] = time_to_deploy
if time_to_pr_ready is not unset:
kwargs["time_to_pr_ready"] = time_to_pr_ready
super().__init__(kwargs)
Loading
Loading