site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
23 stars 36 forks source link

`primary_response_time_trouble_threshold` Parameter Not Setting for `site24x7_threshold_profile` Resource. #280

Open kardanielyan opened 5 months ago

kardanielyan commented 5 months ago

While creating a threshold profile resource using the site24x7_threshold_profile resource in the Site24x7 Terraform provider, the parameter value within the primary_response_time_trouble_threshold block is not being set correctly. Despite specifying the value, the provider does not apply this setting.

terraform {
  required_version = ">= 1.3.9, < 1.6"
  required_providers {
    site24x7 = {
      source = "site24x7/site24x7"
      version = ">= 1.0.90"
    }
  }
}

resource "site24x7_threshold_profile" "rum_application_threshold" {
  profile_name                            = "Default Threshold - RUM-Application"
  type                                    = "RUM-Application"
  down_location_threshold                 = 0
  primary_response_time_trouble_threshold = {
    comparison_operator = 1
    value               = 2000 #  Provider bug. The parameter is not set
    polls_check         = 5
    strategy            = 1
    severity            = 2
  }

  secondary_response_time_trouble_threshold = {
    comparison_operator = 1
    value               = 0.5 # Provider bug. The parameter is not set
    polls_check         = 5
    strategy            = 1
    severity            = 2
  }
}