Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[site24x7_threshold_profile] - Cron Monitors - is the code below correct #311

Open
markkelly-payroc opened this issue Oct 10, 2024 · 0 comments

Comments

@markkelly-payroc
Copy link

// 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
}
}

@markkelly-payroc 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant