Skip to content

[Bug] [Synthetics] Inconsistent implementation of schedule parameter #1251

@singhvirohan

Description

@singhvirohan

Describe the bug

The current API for synthetics has two types of values for schedule , one that is in minutes defined as numbers 1, 2, 3, 5, 10, 15, 20, 30, 60, 120, 240 . The other option is as a string 10s and 30s. This validation is handled by the API, however, this is not handled in our provider, as it expects the value as an Integer

Expected behavior

It would be better if we could define the values in numbers entirely with 10s and 30s substituted as 0.1 and 0.3. This would keep the API type consistent and cleaner.

Error

│ Error: Incorrect attribute value type

│ on modules/kibana/synthetics-icmp.tf line 30, in resource "elasticstack_kibana_synthetics_monitor" "icmp_test":
│ 30: schedule = "10s"

│ Inappropriate value for attribute "schedule": a number is required.

Versions (please complete the following information):

  • Elasticsearch Version 8.15+

Additional context
Public Kibana Issue: elastic/kibana#232446

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions