You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
The text was updated successfully, but these errors were encountered:
markkelly-payroc
changed the title
Cron Monitors - is the code below correct
[site24x7_threshold_profile] - Cron Monitors - is the code below correct
Oct 10, 2024
// 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
}
}
The text was updated successfully, but these errors were encountered: