Skip to content

Remove Synthetics tick interval enum #488

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.4.1.dev8",
"regenerated": "2021-06-21 15:11:55.610953",
"spec_repo_commit": "8327a94"
"regenerated": "2021-06-21 16:53:58.937124",
"spec_repo_commit": "609ca23"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-21 15:12:23.084029",
"spec_repo_commit": "8327a94"
"regenerated": "2021-06-21 16:54:23.397056",
"spec_repo_commit": "609ca23"
}
}
}
1 change: 0 additions & 1 deletion docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ Class | Method | HTTP request | Description
- [SyntheticsTestRequest](SyntheticsTestRequest.md)
- [SyntheticsTestRequestCertificate](SyntheticsTestRequestCertificate.md)
- [SyntheticsTestRequestCertificateItem](SyntheticsTestRequestCertificateItem.md)
- [SyntheticsTickInterval](SyntheticsTickInterval.md)
- [SyntheticsTiming](SyntheticsTiming.md)
- [SyntheticsTriggerCITestLocation](SyntheticsTriggerCITestLocation.md)
- [SyntheticsTriggerCITestRunResult](SyntheticsTriggerCITestRunResult.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/v1/SyntheticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ with ApiClient(configuration) as api_client:
count=1,
interval=3.14,
),
tick_every=SyntheticsTickInterval(30),
tick_every=30,
),
public_id="public_id_example",
status=SyntheticsTestPauseStatus("live"),
Expand Down Expand Up @@ -496,7 +496,7 @@ with ApiClient(configuration) as api_client:
count=1,
interval=3.14,
),
tick_every=SyntheticsTickInterval(30),
tick_every=30,
),
public_id="public_id_example",
status=SyntheticsTestPauseStatus("live"),
Expand Down Expand Up @@ -1912,7 +1912,7 @@ with ApiClient(configuration) as api_client:
count=1,
interval=3.14,
),
tick_every=SyntheticsTickInterval(30),
tick_every=30,
),
public_id="public_id_example",
status=SyntheticsTestPauseStatus("live"),
Expand Down Expand Up @@ -2065,7 +2065,7 @@ with ApiClient(configuration) as api_client:
count=1,
interval=3.14,
),
tick_every=SyntheticsTickInterval(30),
tick_every=30,
),
public_id="public_id_example",
status=SyntheticsTestPauseStatus("live"),
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/SyntheticsTestOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Name | Type | Description | Notes
**monitor_priority** | **int** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional]
**no_screenshot** | **bool** | Prevents saving screenshots of the steps. | [optional]
**retry** | [**SyntheticsTestOptionsRetry**](SyntheticsTestOptionsRetry.md) | | [optional]
**tick_every** | [**SyntheticsTickInterval**](SyntheticsTickInterval.md) | | [optional]
**tick_every** | **int** | The frequency at which to run the Synthetic test (in seconds). | [optional]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

Expand Down
12 changes: 0 additions & 12 deletions docs/v1/SyntheticsTickInterval.md

This file was deleted.

10 changes: 6 additions & 4 deletions src/datadog_api_client/v1/model/synthetics_test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ def lazy_import():
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
from datadog_api_client.v1.model.synthetics_test_options_monitor_options import SyntheticsTestOptionsMonitorOptions
from datadog_api_client.v1.model.synthetics_test_options_retry import SyntheticsTestOptionsRetry
from datadog_api_client.v1.model.synthetics_tick_interval import SyntheticsTickInterval

globals()["SyntheticsDeviceID"] = SyntheticsDeviceID
globals()["SyntheticsTestOptionsMonitorOptions"] = SyntheticsTestOptionsMonitorOptions
globals()["SyntheticsTestOptionsRetry"] = SyntheticsTestOptionsRetry
globals()["SyntheticsTickInterval"] = SyntheticsTickInterval


class SyntheticsTestOptions(ModelNormal):
Expand Down Expand Up @@ -65,6 +63,10 @@ class SyntheticsTestOptions(ModelNormal):
"inclusive_maximum": 5,
"inclusive_minimum": 1,
},
("tick_every",): {
"inclusive_maximum": 604800,
"inclusive_minimum": 30,
},
}

additional_properties_type = None
Expand Down Expand Up @@ -95,7 +97,7 @@ def openapi_types():
"monitor_priority": (int,), # noqa: E501
"no_screenshot": (bool,), # noqa: E501
"retry": (SyntheticsTestOptionsRetry,), # noqa: E501
"tick_every": (SyntheticsTickInterval,), # noqa: E501
"tick_every": (int,), # noqa: E501
}

@cached_property
Expand Down Expand Up @@ -178,7 +180,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
monitor_priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
no_screenshot (bool): Prevents saving screenshots of the steps.. [optional] # noqa: E501
retry (SyntheticsTestOptionsRetry): [optional] # noqa: E501
tick_every (SyntheticsTickInterval): [optional] # noqa: E501
tick_every (int): The frequency at which to run the Synthetic test (in seconds).. [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand Down
188 changes: 0 additions & 188 deletions src/datadog_api_client/v1/model/synthetics_tick_interval.py

This file was deleted.

1 change: 0 additions & 1 deletion src/datadog_api_client/v1/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@
from datadog_api_client.v1.model.synthetics_test_request import SyntheticsTestRequest
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
from datadog_api_client.v1.model.synthetics_test_request_certificate_item import SyntheticsTestRequestCertificateItem
from datadog_api_client.v1.model.synthetics_tick_interval import SyntheticsTickInterval
from datadog_api_client.v1.model.synthetics_timing import SyntheticsTiming
from datadog_api_client.v1.model.synthetics_trigger_ci_test_location import SyntheticsTriggerCITestLocation
from datadog_api_client.v1.model.synthetics_trigger_ci_test_run_result import SyntheticsTriggerCITestRunResult
Expand Down
32 changes: 5 additions & 27 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9837,7 +9837,11 @@ components:
retry:
$ref: '#/components/schemas/SyntheticsTestOptionsRetry'
tick_every:
$ref: '#/components/schemas/SyntheticsTickInterval'
description: The frequency at which to run the Synthetic test (in seconds).
format: int64
maximum: 604800
minimum: 30
type: integer
type: object
SyntheticsTestOptionsRetry:
description: Object describing the retry strategy to apply to a Synthetic test.
Expand Down Expand Up @@ -9959,32 +9963,6 @@ components:
description: Date of update of the certificate or key, ISO format.
type: string
type: object
SyntheticsTickInterval:
description: The frequency at which to run the Synthetic test (in seconds).
enum:
- 30
- 60
- 300
- 900
- 1800
- 3600
- 21600
- 43200
- 86400
- 604800
format: int64
type: integer
x-enum-varnames:
- THIRTY_SECONDS
- MINUTE
- FIVE_MINUTES
- FIFTEEN_MINUTES
- THIRTY_MINUTES
- HOUR
- SIX_HOURS
- TWELVE_HOURS
- DAY
- WEEK
SyntheticsTiming:
description: 'Object containing all metrics and their values collected for a
Synthetic API test.
Expand Down
Loading