incident_io_client.models.custom_field_v1
CustomFieldV1
Example
{'catalog_type_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'created_at': '2021-08-17T13:28:57.801578Z', 'description': 'Which team is impacted by this issue', 'field_type': 'single_select', 'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'name': 'Affected Team', 'options': [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}], 'required': 'never', 'required_v2': 'never', 'show_before_closure': True, 'show_before_creation': True, 'show_before_update': True, 'show_in_announcement_post': True, 'updated_at': '2021-08-17T13:28:57.801578Z'}
Attributes:
Name | Type | Description |
---|---|---|
created_at |
datetime
|
When the action was created Example: 2021-08-17T13:28:57.801578Z. |
description |
str
|
Description of the custom field Example: Which team is impacted by this issue. |
field_type |
CustomFieldV1FieldType
|
Type of custom field Example: single_select. |
id |
str
|
Unique identifier for the custom field Example: 01FCNDV6P870EA6S7TK1DSYDG0. |
name |
str
|
Human readable name for the custom field Example: Affected Team. |
options |
List[CustomFieldOptionV1]
|
What options are available for this custom field, if this field has options Example: [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}]. |
show_before_closure |
bool
|
Whether a custom field should be shown in the incident resolve modal. If this custom field is required before resolution, but no value has been set for it, the field will be shown in the resolve modal whatever the value of this setting. Example: True. |
show_before_creation |
bool
|
Whether a custom field should be shown in the incident creation modal. This must be true if the field is always required. Example: True. |
show_before_update |
bool
|
Whether a custom field should be shown in the incident update modal. Example: True. |
updated_at |
datetime
|
When the action was last updated Example: 2021-08-17T13:28:57.801578Z. |
catalog_type_id |
Union[Unset, str]
|
For catalog fields, the ID of the associated catalog type Example: 01FCNDV6P870EA6S7TK1DSYDG0. |
required |
Union[Unset, CustomFieldV1Required]
|
When this custom field must be set during the incident lifecycle. [DEPRECATED: please use required_v2 instead]. Example: never. |
required_v2 |
Union[Unset, CustomFieldV1RequiredV2]
|
When this custom field must be set during the incident lifecycle. Example: never. |
show_in_announcement_post |
Union[Unset, bool]
|
Whether a custom field should be shown in the list of fields as part of the announcement post when set. Example: True. |
Source code in incident_io_client/models/custom_field_v1.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|