-
Notifications
You must be signed in to change notification settings - Fork 122
Description
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