Skip to content

Commit a71345b

Browse files
api-clients-generation-pipeline[bot]mrhwickci.datadog-api-specjirikuncar
authored
Add the incident schema (#572)
* Regenerate client from commit 96d901b of spec repo 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: ci.datadog-api-spec <[email protected]> Co-authored-by: Jiri Kuncar <[email protected]>
1 parent 7ca36bd commit a71345b

File tree

103 files changed

+12439
-216
lines changed

Some content is hidden

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

103 files changed

+12439
-216
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 13:30:25.616174",
8-
"spec_repo_commit": "b0b5ae5"
7+
"regenerated": "2020-11-17 16:22:27.031496",
8+
"spec_repo_commit": "96d901b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-11-16 13:30:31.099009",
13-
"spec_repo_commit": "b0b5ae5"
12+
"regenerated": "2020-11-17 16:22:32.970149",
13+
"spec_repo_commit": "96d901b"
1414
}
1515
}
1616
}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')
3333
steps:
3434
- name: Install Go
35-
uses: actions/setup-go@v2-beta
35+
uses: actions/setup-go@v2
3636
with:
3737
go-version: ${{ matrix.go-version }}
3838
- name: Checkout code

api/v2/datadog/.openapi-generator/FILES

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ api/openapi.yaml
66
api_dashboard_lists.go
77
api_incident_services.go
88
api_incident_teams.go
9+
api_incidents.go
910
api_logs.go
1011
api_logs_archives.go
1112
api_roles.go
@@ -27,6 +28,22 @@ docs/DashboardListUpdateItemsRequest.md
2728
docs/DashboardListUpdateItemsResponse.md
2829
docs/DashboardListsApi.md
2930
docs/DashboardType.md
31+
docs/IncidentCreateAttributes.md
32+
docs/IncidentCreateData.md
33+
docs/IncidentCreateRelationships.md
34+
docs/IncidentCreateRequest.md
35+
docs/IncidentFieldAttributes.md
36+
docs/IncidentFieldAttributesMultipleValue.md
37+
docs/IncidentFieldAttributesSingleValue.md
38+
docs/IncidentFieldAttributesSingleValueType.md
39+
docs/IncidentFieldAttributesValueType.md
40+
docs/IncidentIntegrationMetadataType.md
41+
docs/IncidentPostmortemType.md
42+
docs/IncidentResponse.md
43+
docs/IncidentResponseAttributes.md
44+
docs/IncidentResponseData.md
45+
docs/IncidentResponseIncludedItem.md
46+
docs/IncidentResponseRelationships.md
3047
docs/IncidentServiceCreateAttributes.md
3148
docs/IncidentServiceCreateData.md
3249
docs/IncidentServiceCreateRequest.md
@@ -57,6 +74,17 @@ docs/IncidentTeamUpdateData.md
5774
docs/IncidentTeamUpdateRequest.md
5875
docs/IncidentTeamsApi.md
5976
docs/IncidentTeamsResponse.md
77+
docs/IncidentTimelineCellCreateAttributes.md
78+
docs/IncidentTimelineCellMarkdownContentType.md
79+
docs/IncidentTimelineCellMarkdownCreateAttributes.md
80+
docs/IncidentTimelineCellMarkdownCreateAttributesContent.md
81+
docs/IncidentType.md
82+
docs/IncidentUpdateAttributes.md
83+
docs/IncidentUpdateData.md
84+
docs/IncidentUpdateRelationships.md
85+
docs/IncidentUpdateRequest.md
86+
docs/IncidentsApi.md
87+
docs/IncidentsResponse.md
6088
docs/Log.md
6189
docs/LogAttributes.md
6290
docs/LogType.md
@@ -123,6 +151,10 @@ docs/PermissionAttributes.md
123151
docs/PermissionsResponse.md
124152
docs/PermissionsType.md
125153
docs/QuerySortOrder.md
154+
docs/RelationshipToIncidentIntegrationMetadataData.md
155+
docs/RelationshipToIncidentIntegrationMetadatas.md
156+
docs/RelationshipToIncidentPostmortem.md
157+
docs/RelationshipToIncidentPostmortemData.md
126158
docs/RelationshipToOrganization.md
127159
docs/RelationshipToOrganizationData.md
128160
docs/RelationshipToOrganizations.md
@@ -220,6 +252,22 @@ model_dashboard_list_items.go
220252
model_dashboard_list_update_items_request.go
221253
model_dashboard_list_update_items_response.go
222254
model_dashboard_type.go
255+
model_incident_create_attributes.go
256+
model_incident_create_data.go
257+
model_incident_create_relationships.go
258+
model_incident_create_request.go
259+
model_incident_field_attributes.go
260+
model_incident_field_attributes_multiple_value.go
261+
model_incident_field_attributes_single_value.go
262+
model_incident_field_attributes_single_value_type.go
263+
model_incident_field_attributes_value_type.go
264+
model_incident_integration_metadata_type.go
265+
model_incident_postmortem_type.go
266+
model_incident_response.go
267+
model_incident_response_attributes.go
268+
model_incident_response_data.go
269+
model_incident_response_included_item.go
270+
model_incident_response_relationships.go
223271
model_incident_service_create_attributes.go
224272
model_incident_service_create_data.go
225273
model_incident_service_create_request.go
@@ -248,6 +296,16 @@ model_incident_team_update_attributes.go
248296
model_incident_team_update_data.go
249297
model_incident_team_update_request.go
250298
model_incident_teams_response.go
299+
model_incident_timeline_cell_create_attributes.go
300+
model_incident_timeline_cell_markdown_content_type.go
301+
model_incident_timeline_cell_markdown_create_attributes.go
302+
model_incident_timeline_cell_markdown_create_attributes_content.go
303+
model_incident_type.go
304+
model_incident_update_attributes.go
305+
model_incident_update_data.go
306+
model_incident_update_relationships.go
307+
model_incident_update_request.go
308+
model_incidents_response.go
251309
model_log.go
252310
model_log_attributes.go
253311
model_log_type.go
@@ -312,6 +370,10 @@ model_permission_attributes.go
312370
model_permissions_response.go
313371
model_permissions_type.go
314372
model_query_sort_order.go
373+
model_relationship_to_incident_integration_metadata_data.go
374+
model_relationship_to_incident_integration_metadatas.go
375+
model_relationship_to_incident_postmortem.go
376+
model_relationship_to_incident_postmortem_data.go
315377
model_relationship_to_organization.go
316378
model_relationship_to_organization_data.go
317379
model_relationship_to_organizations.go

api/v2/datadog/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ Class | Method | HTTP request | Description
9393
*IncidentTeamsApi* | [**GetIncidentTeam**](docs/IncidentTeamsApi.md#getincidentteam) | **Get** /api/v2/teams/{team_id} | Get details of an incident team
9494
*IncidentTeamsApi* | [**ListIncidentTeams**](docs/IncidentTeamsApi.md#listincidentteams) | **Get** /api/v2/teams | Get a list of all incident teams
9595
*IncidentTeamsApi* | [**UpdateIncidentTeam**](docs/IncidentTeamsApi.md#updateincidentteam) | **Patch** /api/v2/teams/{team_id} | Update an existing incident team
96+
*IncidentsApi* | [**CreateIncident**](docs/IncidentsApi.md#createincident) | **Post** /api/v2/incidents | Create an incident
97+
*IncidentsApi* | [**DeleteIncident**](docs/IncidentsApi.md#deleteincident) | **Delete** /api/v2/incidents/{incident_id} | Delete an existing incident
98+
*IncidentsApi* | [**GetIncident**](docs/IncidentsApi.md#getincident) | **Get** /api/v2/incidents/{incident_id} | Get the details of an incident
99+
*IncidentsApi* | [**ListIncidents**](docs/IncidentsApi.md#listincidents) | **Get** /api/v2/incidents | Get a list of incidents
100+
*IncidentsApi* | [**UpdateIncident**](docs/IncidentsApi.md#updateincident) | **Patch** /api/v2/incidents/{incident_id} | Update an existing incident
96101
*LogsApi* | [**AggregateLogs**](docs/LogsApi.md#aggregatelogs) | **Post** /api/v2/logs/analytics/aggregate | Aggregate events
97102
*LogsApi* | [**ListLogs**](docs/LogsApi.md#listlogs) | **Post** /api/v2/logs/events/search | Get a list of logs
98103
*LogsApi* | [**ListLogsGet**](docs/LogsApi.md#listlogsget) | **Get** /api/v2/logs/events | Get a quick list of logs
@@ -151,6 +156,22 @@ Class | Method | HTTP request | Description
151156
- [DashboardListUpdateItemsRequest](docs/DashboardListUpdateItemsRequest.md)
152157
- [DashboardListUpdateItemsResponse](docs/DashboardListUpdateItemsResponse.md)
153158
- [DashboardType](docs/DashboardType.md)
159+
- [IncidentCreateAttributes](docs/IncidentCreateAttributes.md)
160+
- [IncidentCreateData](docs/IncidentCreateData.md)
161+
- [IncidentCreateRelationships](docs/IncidentCreateRelationships.md)
162+
- [IncidentCreateRequest](docs/IncidentCreateRequest.md)
163+
- [IncidentFieldAttributes](docs/IncidentFieldAttributes.md)
164+
- [IncidentFieldAttributesMultipleValue](docs/IncidentFieldAttributesMultipleValue.md)
165+
- [IncidentFieldAttributesSingleValue](docs/IncidentFieldAttributesSingleValue.md)
166+
- [IncidentFieldAttributesSingleValueType](docs/IncidentFieldAttributesSingleValueType.md)
167+
- [IncidentFieldAttributesValueType](docs/IncidentFieldAttributesValueType.md)
168+
- [IncidentIntegrationMetadataType](docs/IncidentIntegrationMetadataType.md)
169+
- [IncidentPostmortemType](docs/IncidentPostmortemType.md)
170+
- [IncidentResponse](docs/IncidentResponse.md)
171+
- [IncidentResponseAttributes](docs/IncidentResponseAttributes.md)
172+
- [IncidentResponseData](docs/IncidentResponseData.md)
173+
- [IncidentResponseIncludedItem](docs/IncidentResponseIncludedItem.md)
174+
- [IncidentResponseRelationships](docs/IncidentResponseRelationships.md)
154175
- [IncidentServiceCreateAttributes](docs/IncidentServiceCreateAttributes.md)
155176
- [IncidentServiceCreateData](docs/IncidentServiceCreateData.md)
156177
- [IncidentServiceCreateRequest](docs/IncidentServiceCreateRequest.md)
@@ -179,6 +200,16 @@ Class | Method | HTTP request | Description
179200
- [IncidentTeamUpdateData](docs/IncidentTeamUpdateData.md)
180201
- [IncidentTeamUpdateRequest](docs/IncidentTeamUpdateRequest.md)
181202
- [IncidentTeamsResponse](docs/IncidentTeamsResponse.md)
203+
- [IncidentTimelineCellCreateAttributes](docs/IncidentTimelineCellCreateAttributes.md)
204+
- [IncidentTimelineCellMarkdownContentType](docs/IncidentTimelineCellMarkdownContentType.md)
205+
- [IncidentTimelineCellMarkdownCreateAttributes](docs/IncidentTimelineCellMarkdownCreateAttributes.md)
206+
- [IncidentTimelineCellMarkdownCreateAttributesContent](docs/IncidentTimelineCellMarkdownCreateAttributesContent.md)
207+
- [IncidentType](docs/IncidentType.md)
208+
- [IncidentUpdateAttributes](docs/IncidentUpdateAttributes.md)
209+
- [IncidentUpdateData](docs/IncidentUpdateData.md)
210+
- [IncidentUpdateRelationships](docs/IncidentUpdateRelationships.md)
211+
- [IncidentUpdateRequest](docs/IncidentUpdateRequest.md)
212+
- [IncidentsResponse](docs/IncidentsResponse.md)
182213
- [Log](docs/Log.md)
183214
- [LogAttributes](docs/LogAttributes.md)
184215
- [LogType](docs/LogType.md)
@@ -243,6 +274,10 @@ Class | Method | HTTP request | Description
243274
- [PermissionsResponse](docs/PermissionsResponse.md)
244275
- [PermissionsType](docs/PermissionsType.md)
245276
- [QuerySortOrder](docs/QuerySortOrder.md)
277+
- [RelationshipToIncidentIntegrationMetadataData](docs/RelationshipToIncidentIntegrationMetadataData.md)
278+
- [RelationshipToIncidentIntegrationMetadatas](docs/RelationshipToIncidentIntegrationMetadatas.md)
279+
- [RelationshipToIncidentPostmortem](docs/RelationshipToIncidentPostmortem.md)
280+
- [RelationshipToIncidentPostmortemData](docs/RelationshipToIncidentPostmortemData.md)
246281
- [RelationshipToOrganization](docs/RelationshipToOrganization.md)
247282
- [RelationshipToOrganizationData](docs/RelationshipToOrganizationData.md)
248283
- [RelationshipToOrganizations](docs/RelationshipToOrganizations.md)

0 commit comments

Comments
 (0)