Skip to content

Add alwaysExecute and exitIfSucceed to Synthetics steps #2246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-05 15:05:42.147981",
"spec_repo_commit": "8d63eae4"
"regenerated": "2024-11-05 20:16:36.893099",
"spec_repo_commit": "1a56bfda"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-05 15:05:42.166088",
"spec_repo_commit": "8d63eae4"
"regenerated": "2024-11-05 20:16:36.911327",
"spec_repo_commit": "1a56bfda"
}
}
}
9 changes: 8 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16227,6 +16227,13 @@ components:
allowFailure:
description: A boolean set to allow this step to fail.
type: boolean
alwaysExecute:
description: A boolean set to always execute this step even if the previous
step failed or was skipped.
type: boolean
exitIfSucceed:
description: A boolean set to exit the test if the step succeeds.
type: boolean
isCritical:
description: A boolean to use in addition to `allowFailure` to determine
if the test should be marked as failed when the step fails.
Expand All @@ -16235,7 +16242,7 @@ components:
description: The name of the step.
type: string
noScreenshot:
description: A boolean set to not take a screenshot for the step.
description: A boolean set to skip taking a screenshot for the step.
type: boolean
params:
description: The parameters of the step.
Expand Down
18 changes: 17 additions & 1 deletion src/datadog_api_client/v1/model/synthetics_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def openapi_types(_):

return {
"allow_failure": (bool,),
"always_execute": (bool,),
"exit_if_succeed": (bool,),
"is_critical": (bool,),
"name": (str,),
"no_screenshot": (bool,),
Expand All @@ -34,6 +36,8 @@ def openapi_types(_):

attribute_map = {
"allow_failure": "allowFailure",
"always_execute": "alwaysExecute",
"exit_if_succeed": "exitIfSucceed",
"is_critical": "isCritical",
"name": "name",
"no_screenshot": "noScreenshot",
Expand All @@ -45,6 +49,8 @@ def openapi_types(_):
def __init__(
self_,
allow_failure: Union[bool, UnsetType] = unset,
always_execute: Union[bool, UnsetType] = unset,
exit_if_succeed: Union[bool, UnsetType] = unset,
is_critical: Union[bool, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
no_screenshot: Union[bool, UnsetType] = unset,
Expand All @@ -59,13 +65,19 @@ def __init__(
:param allow_failure: A boolean set to allow this step to fail.
:type allow_failure: bool, optional

:param always_execute: A boolean set to always execute this step even if the previous step failed or was skipped.
:type always_execute: bool, optional

:param exit_if_succeed: A boolean set to exit the test if the step succeeds.
:type exit_if_succeed: bool, optional

:param is_critical: A boolean to use in addition to ``allowFailure`` to determine if the test should be marked as failed when the step fails.
:type is_critical: bool, optional

:param name: The name of the step.
:type name: str, optional

:param no_screenshot: A boolean set to not take a screenshot for the step.
:param no_screenshot: A boolean set to skip taking a screenshot for the step.
:type no_screenshot: bool, optional

:param params: The parameters of the step.
Expand All @@ -79,6 +91,10 @@ def __init__(
"""
if allow_failure is not unset:
kwargs["allow_failure"] = allow_failure
if always_execute is not unset:
kwargs["always_execute"] = always_execute
if exit_if_succeed is not unset:
kwargs["exit_if_succeed"] = exit_if_succeed
if is_critical is not unset:
kwargs["is_critical"] = is_critical
if name is not unset:
Expand Down
Loading