Skip to content

Commit 86138ad

Browse files
api-clients-generation-pipeline[bot]zippolytemrhwickjirikuncarci.datadog-api-spec
authored
Add the incident schema (#154)
* Regenerate client from commit 96d901b of spec repo Co-authored-by: Hippolyte HENRY <[email protected]> Co-authored-by: MRHwick <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: Jiri Kuncar <[email protected]> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e8d46b8 commit 86138ad

File tree

127 files changed

+10217
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+10217
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.3.0",
7-
"regenerated": "2020-11-16 16:32:33.369096",
8-
"spec_repo_commit": "39e9110"
7+
"regenerated": "2020-11-17 16:22:53.385831",
8+
"spec_repo_commit": "96d901b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-11-16 16:32:43.927281",
13-
"spec_repo_commit": "39e9110"
12+
"regenerated": "2020-11-17 16:23:04.618624",
13+
"spec_repo_commit": "96d901b"
1414
}
1515
}
1616
}

.openapi-generator/FILES

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ datadog_api_client/v2/api/__init__.py
55
datadog_api_client/v2/api/dashboard_lists_api.py
66
datadog_api_client/v2/api/incident_services_api.py
77
datadog_api_client/v2/api/incident_teams_api.py
8+
datadog_api_client/v2/api/incidents_api.py
89
datadog_api_client/v2/api/logs_api.py
910
datadog_api_client/v2/api/logs_archives_api.py
1011
datadog_api_client/v2/api/roles_api.py
@@ -28,6 +29,22 @@ datadog_api_client/v2/model/dashboard_list_items.py
2829
datadog_api_client/v2/model/dashboard_list_update_items_request.py
2930
datadog_api_client/v2/model/dashboard_list_update_items_response.py
3031
datadog_api_client/v2/model/dashboard_type.py
32+
datadog_api_client/v2/model/incident_create_attributes.py
33+
datadog_api_client/v2/model/incident_create_data.py
34+
datadog_api_client/v2/model/incident_create_relationships.py
35+
datadog_api_client/v2/model/incident_create_request.py
36+
datadog_api_client/v2/model/incident_field_attributes.py
37+
datadog_api_client/v2/model/incident_field_attributes_multiple_value.py
38+
datadog_api_client/v2/model/incident_field_attributes_single_value.py
39+
datadog_api_client/v2/model/incident_field_attributes_single_value_type.py
40+
datadog_api_client/v2/model/incident_field_attributes_value_type.py
41+
datadog_api_client/v2/model/incident_integration_metadata_type.py
42+
datadog_api_client/v2/model/incident_postmortem_type.py
43+
datadog_api_client/v2/model/incident_response.py
44+
datadog_api_client/v2/model/incident_response_attributes.py
45+
datadog_api_client/v2/model/incident_response_data.py
46+
datadog_api_client/v2/model/incident_response_included_item.py
47+
datadog_api_client/v2/model/incident_response_relationships.py
3148
datadog_api_client/v2/model/incident_service_create_attributes.py
3249
datadog_api_client/v2/model/incident_service_create_data.py
3350
datadog_api_client/v2/model/incident_service_create_request.py
@@ -56,6 +73,16 @@ datadog_api_client/v2/model/incident_team_update_attributes.py
5673
datadog_api_client/v2/model/incident_team_update_data.py
5774
datadog_api_client/v2/model/incident_team_update_request.py
5875
datadog_api_client/v2/model/incident_teams_response.py
76+
datadog_api_client/v2/model/incident_timeline_cell_create_attributes.py
77+
datadog_api_client/v2/model/incident_timeline_cell_markdown_content_type.py
78+
datadog_api_client/v2/model/incident_timeline_cell_markdown_create_attributes.py
79+
datadog_api_client/v2/model/incident_timeline_cell_markdown_create_attributes_content.py
80+
datadog_api_client/v2/model/incident_type.py
81+
datadog_api_client/v2/model/incident_update_attributes.py
82+
datadog_api_client/v2/model/incident_update_data.py
83+
datadog_api_client/v2/model/incident_update_relationships.py
84+
datadog_api_client/v2/model/incident_update_request.py
85+
datadog_api_client/v2/model/incidents_response.py
5986
datadog_api_client/v2/model/log.py
6087
datadog_api_client/v2/model/log_attributes.py
6188
datadog_api_client/v2/model/log_type.py
@@ -120,6 +147,10 @@ datadog_api_client/v2/model/permission_attributes.py
120147
datadog_api_client/v2/model/permissions_response.py
121148
datadog_api_client/v2/model/permissions_type.py
122149
datadog_api_client/v2/model/query_sort_order.py
150+
datadog_api_client/v2/model/relationship_to_incident_integration_metadata_data.py
151+
datadog_api_client/v2/model/relationship_to_incident_integration_metadatas.py
152+
datadog_api_client/v2/model/relationship_to_incident_postmortem.py
153+
datadog_api_client/v2/model/relationship_to_incident_postmortem_data.py
123154
datadog_api_client/v2/model/relationship_to_organization.py
124155
datadog_api_client/v2/model/relationship_to_organization_data.py
125156
datadog_api_client/v2/model/relationship_to_organizations.py
@@ -215,6 +246,22 @@ docs/DashboardListUpdateItemsRequest.md
215246
docs/DashboardListUpdateItemsResponse.md
216247
docs/DashboardListsApi.md
217248
docs/DashboardType.md
249+
docs/IncidentCreateAttributes.md
250+
docs/IncidentCreateData.md
251+
docs/IncidentCreateRelationships.md
252+
docs/IncidentCreateRequest.md
253+
docs/IncidentFieldAttributes.md
254+
docs/IncidentFieldAttributesMultipleValue.md
255+
docs/IncidentFieldAttributesSingleValue.md
256+
docs/IncidentFieldAttributesSingleValueType.md
257+
docs/IncidentFieldAttributesValueType.md
258+
docs/IncidentIntegrationMetadataType.md
259+
docs/IncidentPostmortemType.md
260+
docs/IncidentResponse.md
261+
docs/IncidentResponseAttributes.md
262+
docs/IncidentResponseData.md
263+
docs/IncidentResponseIncludedItem.md
264+
docs/IncidentResponseRelationships.md
218265
docs/IncidentServiceCreateAttributes.md
219266
docs/IncidentServiceCreateData.md
220267
docs/IncidentServiceCreateRequest.md
@@ -245,6 +292,17 @@ docs/IncidentTeamUpdateData.md
245292
docs/IncidentTeamUpdateRequest.md
246293
docs/IncidentTeamsApi.md
247294
docs/IncidentTeamsResponse.md
295+
docs/IncidentTimelineCellCreateAttributes.md
296+
docs/IncidentTimelineCellMarkdownContentType.md
297+
docs/IncidentTimelineCellMarkdownCreateAttributes.md
298+
docs/IncidentTimelineCellMarkdownCreateAttributesContent.md
299+
docs/IncidentType.md
300+
docs/IncidentUpdateAttributes.md
301+
docs/IncidentUpdateData.md
302+
docs/IncidentUpdateRelationships.md
303+
docs/IncidentUpdateRequest.md
304+
docs/IncidentsApi.md
305+
docs/IncidentsResponse.md
248306
docs/Log.md
249307
docs/LogAttributes.md
250308
docs/LogType.md
@@ -311,6 +369,10 @@ docs/PermissionAttributes.md
311369
docs/PermissionsResponse.md
312370
docs/PermissionsType.md
313371
docs/QuerySortOrder.md
372+
docs/RelationshipToIncidentIntegrationMetadataData.md
373+
docs/RelationshipToIncidentIntegrationMetadatas.md
374+
docs/RelationshipToIncidentPostmortem.md
375+
docs/RelationshipToIncidentPostmortemData.md
314376
docs/RelationshipToOrganization.md
315377
docs/RelationshipToOrganizationData.md
316378
docs/RelationshipToOrganizations.md
@@ -407,6 +469,22 @@ test/test_dashboard_list_update_items_request.py
407469
test/test_dashboard_list_update_items_response.py
408470
test/test_dashboard_lists_api.py
409471
test/test_dashboard_type.py
472+
test/test_incident_create_attributes.py
473+
test/test_incident_create_data.py
474+
test/test_incident_create_relationships.py
475+
test/test_incident_create_request.py
476+
test/test_incident_field_attributes.py
477+
test/test_incident_field_attributes_multiple_value.py
478+
test/test_incident_field_attributes_single_value.py
479+
test/test_incident_field_attributes_single_value_type.py
480+
test/test_incident_field_attributes_value_type.py
481+
test/test_incident_integration_metadata_type.py
482+
test/test_incident_postmortem_type.py
483+
test/test_incident_response.py
484+
test/test_incident_response_attributes.py
485+
test/test_incident_response_data.py
486+
test/test_incident_response_included_item.py
487+
test/test_incident_response_relationships.py
410488
test/test_incident_service_create_attributes.py
411489
test/test_incident_service_create_data.py
412490
test/test_incident_service_create_request.py
@@ -437,6 +515,17 @@ test/test_incident_team_update_data.py
437515
test/test_incident_team_update_request.py
438516
test/test_incident_teams_api.py
439517
test/test_incident_teams_response.py
518+
test/test_incident_timeline_cell_create_attributes.py
519+
test/test_incident_timeline_cell_markdown_content_type.py
520+
test/test_incident_timeline_cell_markdown_create_attributes.py
521+
test/test_incident_timeline_cell_markdown_create_attributes_content.py
522+
test/test_incident_type.py
523+
test/test_incident_update_attributes.py
524+
test/test_incident_update_data.py
525+
test/test_incident_update_relationships.py
526+
test/test_incident_update_request.py
527+
test/test_incidents_api.py
528+
test/test_incidents_response.py
440529
test/test_log.py
441530
test/test_log_attributes.py
442531
test/test_log_type.py
@@ -503,6 +592,10 @@ test/test_permission_attributes.py
503592
test/test_permissions_response.py
504593
test/test_permissions_type.py
505594
test/test_query_sort_order.py
595+
test/test_relationship_to_incident_integration_metadata_data.py
596+
test/test_relationship_to_incident_integration_metadatas.py
597+
test/test_relationship_to_incident_postmortem.py
598+
test/test_relationship_to_incident_postmortem_data.py
506599
test/test_relationship_to_organization.py
507600
test/test_relationship_to_organization_data.py
508601
test/test_relationship_to_organizations.py

docs/v2/IncidentCreateAttributes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# IncidentCreateAttributes
2+
3+
The incident's attributes for a create request.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**customer_impacted** | **bool** | A flag indicating whether the incident caused customer impact. |
8+
**title** | **str** | The title of the incident, which summarizes what happened. |
9+
**fields** | [**{str: (IncidentFieldAttributes,)}**](IncidentFieldAttributes.md) | A condensed view of the user-defined fields for which to create initial selections. | [optional]
10+
**initial_timeline_cells** | [**[IncidentTimelineCellCreateAttributes]**](IncidentTimelineCellCreateAttributes.md) | An array of initial timeline cells to be placed at the beginning of the incident timeline. | [optional]
11+
**notification_handles** | **[str]** | Notification handles that will be notified of the incident at creation. | [optional]
12+
13+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
14+
15+

docs/v2/IncidentCreateData.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# IncidentCreateData
2+
3+
Incident data for a create request.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**attributes** | [**IncidentCreateAttributes**](IncidentCreateAttributes.md) | |
8+
**type** | [**IncidentType**](IncidentType.md) | |
9+
**relationships** | [**IncidentCreateRelationships**](IncidentCreateRelationships.md) | | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IncidentCreateRelationships
2+
3+
The relationships the incident will have with other resources once created.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**commander** | [**RelationshipToUser**](RelationshipToUser.md) | |
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/IncidentCreateRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IncidentCreateRequest
2+
3+
Create request for an incident.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**IncidentCreateData**](IncidentCreateData.md) | |
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/IncidentFieldAttributes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# IncidentFieldAttributes
2+
3+
Dynamic fields for which selections can be made, with field names as keys.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**type** | [**IncidentFieldAttributesValueType**](IncidentFieldAttributesValueType.md) | |
8+
**value** | **[str]** | The multiple values selected for this field. | [optional]
9+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# IncidentFieldAttributesMultipleValue
2+
3+
A field with potentially multiple values selected.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**type** | [**IncidentFieldAttributesValueType**](IncidentFieldAttributesValueType.md) | | [optional]
8+
**value** | **[str]** | The multiple values selected for this field. | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# IncidentFieldAttributesSingleValue
2+
3+
A field with a single value selected.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**type** | [**IncidentFieldAttributesSingleValueType**](IncidentFieldAttributesSingleValueType.md) | | [optional]
8+
**value** | **str** | The single value selected for this field. | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IncidentFieldAttributesSingleValueType
2+
3+
Type of the single value field definitions.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Type of the single value field definitions. | defaults to "dropdown", must be one of ["dropdown", "textbox", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

0 commit comments

Comments
 (0)