// CRON Threshold Profile API doc](https://www.site24x7.com/help/api/#threshold-cron))
resource "site24x7_threshold_profile" "cron_threshold" {
// (Required) Name of the profile
profile_name = "Cron Threshold - Terraform"
// (Required) Type of the profile - Denotes monitor type (eg) RESTAPI, SSL_CERT
type = "CRON"
// (Optional) Triggers Alert, if job does not start on schedule
cron_no_run_alert = {
severity = 0
value = true
}
// (Optional) Generate Trouble Alert if not pinged for more than x seconds
cron_duration_alert = {
trouble = 30
}
}
i found the below seems to work but not sure which is correct
// CRON Threshold Profile API doc](https://www.site24x7.com/help/api/#threshold-cron)) resource "site24x7_threshold_profile" "cron_threshold" { // (Required) Name of the profile profile_name = "Cron Threshold - Terraform" // (Required) Type of the profile - Denotes monitor type (eg) RESTAPI, SSL_CERT type = "CRON" // (Optional) Triggers Alert, if job does not start on schedule cron_no_run_alert = { severity = 0 value = true } // (Optional) Generate Trouble Alert if not pinged for more than x seconds cron_duration_alert = { trouble = 30 } }
i found the below seems to work but not sure which is correct
module "threshold_profile_us_cron_50m" { source = "./payroc/threshold_profiles/threshold_profile_cron"
profile_name = "IAC - THRESHOLD - 50mCRON" type = "CRON"
cron_duration_alert = { severity = 2 value = 3000 }
cron_no_run_alert = { severity = 0 strategy = 1 value = true polls_check = 5 } }