Skip to content
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

Advanced Scheduling for Datadog Synthetics Non-Functional #100

Closed
elx-bob opened this issue Aug 26, 2024 · 2 comments · Fixed by #107
Closed

Advanced Scheduling for Datadog Synthetics Non-Functional #100

elx-bob opened this issue Aug 26, 2024 · 2 comments · Fixed by #107
Labels
bug 🐛 An issue with the system

Comments

@elx-bob
Copy link
Contributor

elx-bob commented Aug 26, 2024

Describe the Bug

Currently unable to set advanced Scheduling options for Datadog Synthetics. While I can easily set multiple Assertions on a single Synthetic Test, I am not able to set multiple Timeframes when attempting to create an advanced schedule for Synthetics.

Expected Behavior

When passing multiple timeframes into the Synthetics module, multiple timeframes are expected to be set for the Synthetic Test.

Steps to Reproduce

This module's usage was setup based on the provided examples. When passed into the Synthetics module, the below will set one Timeframe for the Synthetic Test.

  options:
    scheduling:
      timeframes:
        day: 1
        from: "07:00"
        to: "16:00"
      timezone: "America/New_York"

If you pass in multiple tiemframes, even though it is a valid YAML, the module errors out.

  options:
    scheduling:
      timeframes:
      - day: 1
        from: "07:00"
        to: "16:00"
      - day: 2
        from: "07:00"
        to: "16:00"
      timezone: "America/New_York"

We could not find a valid pattern for passing in multiple timeframes.

Screenshots


│ Error: Unsupported attribute

│ on .terraform/modules/datadog_synthetics/modules/synthetics/main.tf line 411, in resource "datadog_synthetics_test" "default":
│ 411: day = timeframes.value.day
│ ├────────────────
│ │ timeframes.value is tuple with 2 elements

│ This value does not have any attributes.


│ Error: Unsupported attribute

│ on .terraform/modules/datadog_synthetics/modules/synthetics/main.tf line 412, in resource "datadog_synthetics_test" "default":
│ 412: from = timeframes.value.from
│ ├────────────────
│ │ timeframes.value is tuple with 2 elements

│ This value does not have any attributes.


│ Error: Unsupported attribute

│ on .terraform/modules/datadog_synthetics/modules/synthetics/main.tf line 413, in resource "datadog_synthetics_test" "default":
│ 413: to = timeframes.value.to
│ ├────────────────
│ │ timeframes.value is tuple with 2 elements

│ This value does not have any attributes.

Environment

No response

Additional Context

There also do not appear to be any examples of this functionality in the documentation or repository. If this is not an error, could someone show how to properly pass multiple timeframes into the Synthetics module via YAML?

@elx-bob elx-bob added the bug 🐛 An issue with the system label Aug 26, 2024
@elx-bob
Copy link
Contributor Author

elx-bob commented Aug 30, 2024

If this is not a bug, would someone be available to show how to set multiple timeframes for a Synthetic?

@GabisCampana
Copy link

@Nuru

@Nuru Nuru closed this as completed in #107 Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@elx-bob @GabisCampana and others