Hello,
We have been trying to setup our pagerduty configuration using Terraform and have discovered a âquirkâ of the API that I would like to have resolved (if possible) - the details of the issue can be seen here (Terraform Pagerduty Provider Issue - Github) but I think this is ultimately an API issue.
At a high level, when creating services via the API, there is a strange setup where âSupport Hoursâ based services require a âscheduled actionâ entry in the request that is empty. This occurs when a service uses the severity based urgency. I would like to have the API updated, to not require this field when it is not required - e.g. why do I have to send an empty array into the API. This needlessly complicates the API.
Here is an excerpt of a request that has this issue:
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "severity_based"
}
},
"scheduled_actions": [],
"support_hours": {
"type": "fixed_time_per_day",
"time_zone": "Canada/Toronto",
"days_of_week": [
1,
2,
3,
4,
5
],
"start_time": "09:00:00",
"end_time": "17:00:00"
},
Would like to request that where I want to use a severity_based urgency rule with a support hours based service, that the scheduled_actions empty array not be required.
Thanks.