@@ -14,15 +14,25 @@ An [Incident Custom Field](https://support.pagerduty.com/docs/custom-fields-on-i
14
14
15
15
``` hcl
16
16
resource "pagerduty_incident_custom_field" "cs_impact" {
17
- name = "impact"
18
- data_type = "string"
19
- field_type = "single_value"
17
+ name = "impact"
18
+ display_name = "Customer Impact"
19
+ data_type = "string"
20
+ field_type = "single_value"
20
21
}
21
22
22
23
resource "pagerduty_incident_custom_field" "sre_environment" {
23
- name = "environment"
24
- data_type = "string"
25
- field_type = "single_value_fixed"
24
+ name = "environment"
25
+ display_name = "Environment"
26
+ data_type = "string"
27
+ field_type = "single_value_fixed"
28
+ }
29
+
30
+ resource "pagerduty_incident_custom_field" "false_alarm" {
31
+ name = "false_alarm"
32
+ display_name = "False Alarm"
33
+ data_type = "boolean"
34
+ field_type = "single_value"
35
+ default_value = "false"
26
36
}
27
37
```
28
38
@@ -31,8 +41,11 @@ resource "pagerduty_incident_custom_field" "sre_environment" {
31
41
The following arguments are supported:
32
42
33
43
* ` name ` - (Required) The name of the field.
44
+ * ` display_name ` - (Required) The display name of the field.
45
+ * ` description ` - (Optional) The description of the field.
34
46
* ` data_type ` - (Required) The data type of the field. Must be one of ` string ` , ` integer ` , ` float ` , ` boolean ` , ` datetime ` , or ` url ` .
35
- * ` field_type ` - (Required) The field type of the field. Must be one of ` single_value ` , ` single_value_fixed ` , ` multi_value ` , or ` multi_value_fixed ` .
47
+ * ` field_type ` - (Required) The field type of the field. Must be one of ` single_value ` , ` single_value_fixed ` , ` multi_value ` , or ` multi_value_fixed ` .
48
+ * ` default_value ` - (Optional) The default value to set when new incidents are created. Always specified as a string.
36
49
37
50
## Attributes Reference
38
51
0 commit comments