From 38feba060dfeafbe460bd6122967000e1bf48081 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 26 Jan 2022 10:50:06 +0000 Subject: [PATCH] Regenerate client from commit 78095ca of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 32 ++- api/v2/datadog/.openapi-generator/FILES | 4 + api/v2/datadog/README.md | 2 + .../docs/IncidentCreateRelationships.md | 26 +-- .../docs/IncidentResponseRelationships.md | 8 +- .../docs/IncidentUpdateRelationships.md | 8 +- .../docs/NullableRelationshipToUser.md | 59 ++++++ .../docs/NullableRelationshipToUserData.md | 67 +++++++ .../model_incident_create_relationships.go | 38 ++-- .../model_incident_response_relationships.go | 14 +- .../model_incident_update_relationships.go | 14 +- .../model_nullable_relationship_to_user.go | 104 ++++++++++ ...odel_nullable_relationship_to_user_data.go | 184 ++++++++++++++++++ examples/v2/incidents/CreateIncident.go | 10 +- examples/v2/incidents/DeleteIncident.go | 4 +- examples/v2/incidents/GetIncident.go | 4 +- examples/v2/incidents/UpdateIncident.go | 6 +- .../v2/incidents/UpdateIncident_1009194038.go | 42 ++++ .../v2/incidents/UpdateIncident_3369341440.go | 48 +++++ ..._to_an_incident_returns_OK_response.freeze | 1 + ...er_to_an_incident_returns_OK_response.yaml | 88 +++++++++ ...n_incident_returns_CREATED_response.freeze | 2 +- ..._an_incident_returns_CREATED_response.yaml | 20 +- ...isting_incident_returns_OK_response.freeze | 2 +- ...existing_incident_returns_OK_response.yaml | 14 +- ...st_of_incidents_returns_OK_response.freeze | 2 +- ...list_of_incidents_returns_OK_response.yaml | 12 +- ..._of_an_incident_returns_OK_response.freeze | 2 +- ...ls_of_an_incident_returns_OK_response.yaml | 14 +- ...rom_an_incident_returns_OK_response.freeze | 1 + ..._from_an_incident_returns_OK_response.yaml | 54 +++++ ...isting_incident_returns_OK_response.freeze | 2 +- ...existing_incident_returns_OK_response.yaml | 16 +- tests/scenarios/features/v2/incidents.feature | 38 +++- tests/scenarios/features/v2/logs.feature | 4 +- 36 files changed, 820 insertions(+), 134 deletions(-) create mode 100644 api/v2/datadog/docs/NullableRelationshipToUser.md create mode 100644 api/v2/datadog/docs/NullableRelationshipToUserData.md create mode 100644 api/v2/datadog/model_nullable_relationship_to_user.go create mode 100644 api/v2/datadog/model_nullable_relationship_to_user_data.go create mode 100644 examples/v2/incidents/UpdateIncident_1009194038.go create mode 100644 examples/v2/incidents/UpdateIncident_3369341440.go create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.yaml diff --git a/.apigentools-info b/.apigentools-info index 4233c474fc5..562dcb38e92 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.1", - "regenerated": "2022-01-21 15:36:28.646928", - "spec_repo_commit": "a7ac3db" + "regenerated": "2022-01-26 10:49:12.736147", + "spec_repo_commit": "78095ca" }, "v2": { "apigentools_version": "1.6.1", - "regenerated": "2022-01-21 15:36:28.658569", - "spec_repo_commit": "a7ac3db" + "regenerated": "2022-01-26 10:49:12.747566", + "spec_repo_commit": "78095ca" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4a79c4326e2..5de103a659c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1216,10 +1216,10 @@ components: description: The relationships the incident will have with other resources once created. properties: - commander: - $ref: '#/components/schemas/RelationshipToUser' + commander_user: + $ref: '#/components/schemas/NullableRelationshipToUser' required: - - commander + - commander_user type: object IncidentCreateRequest: description: Create request for an incident. @@ -1476,7 +1476,7 @@ components: description: The incident's relationships from a response. properties: commander_user: - $ref: '#/components/schemas/RelationshipToUser' + $ref: '#/components/schemas/NullableRelationshipToUser' created_by_user: $ref: '#/components/schemas/RelationshipToUser' integrations: @@ -1969,7 +1969,7 @@ components: description: The incident's relationships for an update request. properties: commander_user: - $ref: '#/components/schemas/RelationshipToUser' + $ref: '#/components/schemas/NullableRelationshipToUser' created_by_user: $ref: '#/components/schemas/RelationshipToUser' integrations: @@ -3638,6 +3638,28 @@ components: type: array readOnly: true type: object + NullableRelationshipToUser: + description: Relationship to user. + properties: + data: + $ref: '#/components/schemas/NullableRelationshipToUserData' + required: + - data + type: object + NullableRelationshipToUserData: + description: Relationship to user object. + nullable: true + properties: + id: + description: A unique identifier that represents the user. + example: 00000000-0000-0000-0000-000000000000 + type: string + type: + $ref: '#/components/schemas/UsersType' + required: + - id + - type + type: object Organization: description: Organization object. properties: diff --git a/api/v2/datadog/.openapi-generator/FILES b/api/v2/datadog/.openapi-generator/FILES index 537bd67d4d2..045a00c99f4 100644 --- a/api/v2/datadog/.openapi-generator/FILES +++ b/api/v2/datadog/.openapi-generator/FILES @@ -245,6 +245,8 @@ docs/MetricVolumesResponse.md docs/MetricsAndMetricTagConfigurations.md docs/MetricsAndMetricTagConfigurationsResponse.md docs/MetricsApi.md +docs/NullableRelationshipToUser.md +docs/NullableRelationshipToUserData.md docs/Organization.md docs/OrganizationAttributes.md docs/OrganizationsType.md @@ -599,6 +601,8 @@ model_metric_volumes.go model_metric_volumes_response.go model_metrics_and_metric_tag_configurations.go model_metrics_and_metric_tag_configurations_response.go +model_nullable_relationship_to_user.go +model_nullable_relationship_to_user_data.go model_organization.go model_organization_attributes.go model_organizations_type.go diff --git a/api/v2/datadog/README.md b/api/v2/datadog/README.md index edbf83e368e..a392361583d 100644 --- a/api/v2/datadog/README.md +++ b/api/v2/datadog/README.md @@ -406,6 +406,8 @@ All URIs are relative to *https://api.datadoghq.com* - [MetricVolumesResponse](docs/MetricVolumesResponse.md) - [MetricsAndMetricTagConfigurations](docs/MetricsAndMetricTagConfigurations.md) - [MetricsAndMetricTagConfigurationsResponse](docs/MetricsAndMetricTagConfigurationsResponse.md) +- [NullableRelationshipToUser](docs/NullableRelationshipToUser.md) +- [NullableRelationshipToUserData](docs/NullableRelationshipToUserData.md) - [Organization](docs/Organization.md) - [OrganizationAttributes](docs/OrganizationAttributes.md) - [OrganizationsType](docs/OrganizationsType.md) diff --git a/api/v2/datadog/docs/IncidentCreateRelationships.md b/api/v2/datadog/docs/IncidentCreateRelationships.md index 7061520a951..b5c4352726e 100644 --- a/api/v2/datadog/docs/IncidentCreateRelationships.md +++ b/api/v2/datadog/docs/IncidentCreateRelationships.md @@ -2,15 +2,15 @@ ## Properties -| Name | Type | Description | Notes | -| ------------- | ----------------------------------------------- | ----------- | ----- | -| **Commander** | [**RelationshipToUser**](RelationshipToUser.md) | | +| Name | Type | Description | Notes | +| ----------------- | --------------------------------------------------------------- | ----------- | ----- | +| **CommanderUser** | [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | ## Methods ### NewIncidentCreateRelationships -`func NewIncidentCreateRelationships(commander RelationshipToUser) *IncidentCreateRelationships` +`func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships` NewIncidentCreateRelationships instantiates a new IncidentCreateRelationships object. This constructor will assign default values to properties that have it defined, @@ -25,23 +25,23 @@ NewIncidentCreateRelationshipsWithDefaults instantiates a new IncidentCreateRela This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set. -### GetCommander +### GetCommanderUser -`func (o *IncidentCreateRelationships) GetCommander() RelationshipToUser` +`func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser` -GetCommander returns the Commander field if non-nil, zero value otherwise. +GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise. -### GetCommanderOk +### GetCommanderUserOk -`func (o *IncidentCreateRelationships) GetCommanderOk() (*RelationshipToUser, bool)` +`func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)` -GetCommanderOk returns a tuple with the Commander field if it's non-nil, zero value otherwise +GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCommander +### SetCommanderUser -`func (o *IncidentCreateRelationships) SetCommander(v RelationshipToUser)` +`func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)` -SetCommander sets Commander field to given value. +SetCommanderUser sets CommanderUser field to given value. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v2/datadog/docs/IncidentResponseRelationships.md b/api/v2/datadog/docs/IncidentResponseRelationships.md index 4fd2780e3c0..ff070af51d0 100644 --- a/api/v2/datadog/docs/IncidentResponseRelationships.md +++ b/api/v2/datadog/docs/IncidentResponseRelationships.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- | -| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | +| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] | | **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | | **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] | | **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set. ### GetCommanderUser -`func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser` +`func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser` GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise. ### GetCommanderUserOk -`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)` +`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)` GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommanderUser -`func (o *IncidentResponseRelationships) SetCommanderUser(v RelationshipToUser)` +`func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)` SetCommanderUser sets CommanderUser field to given value. diff --git a/api/v2/datadog/docs/IncidentUpdateRelationships.md b/api/v2/datadog/docs/IncidentUpdateRelationships.md index 1fac9a0417d..3231b3660cb 100644 --- a/api/v2/datadog/docs/IncidentUpdateRelationships.md +++ b/api/v2/datadog/docs/IncidentUpdateRelationships.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- | -| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | +| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] | | **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | | **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] | | **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] | @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set. ### GetCommanderUser -`func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser` +`func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser` GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise. ### GetCommanderUserOk -`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)` +`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)` GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommanderUser -`func (o *IncidentUpdateRelationships) SetCommanderUser(v RelationshipToUser)` +`func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)` SetCommanderUser sets CommanderUser field to given value. diff --git a/api/v2/datadog/docs/NullableRelationshipToUser.md b/api/v2/datadog/docs/NullableRelationshipToUser.md new file mode 100644 index 00000000000..6ac1f1fdd82 --- /dev/null +++ b/api/v2/datadog/docs/NullableRelationshipToUser.md @@ -0,0 +1,59 @@ +# NullableRelationshipToUser + +## Properties + +| Name | Type | Description | Notes | +| -------- | ------------------------------------------------------------------------------- | ----------- | ----- | +| **Data** | [**NullableNullableRelationshipToUserData**](NullableRelationshipToUserData.md) | | + +## Methods + +### NewNullableRelationshipToUser + +`func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser` + +NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + +### NewNullableRelationshipToUserWithDefaults + +`func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser` + +NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + +### GetData + +`func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData)` + +SetData sets Data field to given value. + +### SetDataNil + +`func (o *NullableRelationshipToUser) SetDataNil(b bool)` + +SetDataNil sets the value for Data to be an explicit nil + +### UnsetData + +`func (o *NullableRelationshipToUser) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v2/datadog/docs/NullableRelationshipToUserData.md b/api/v2/datadog/docs/NullableRelationshipToUserData.md new file mode 100644 index 00000000000..d4bd1c895cd --- /dev/null +++ b/api/v2/datadog/docs/NullableRelationshipToUserData.md @@ -0,0 +1,67 @@ +# NullableRelationshipToUserData + +## Properties + +| Name | Type | Description | Notes | +| -------- | ----------------------------- | --------------------------------------------- | ---------------------------- | +| **Id** | **string** | A unique identifier that represents the user. | +| **Type** | [**UsersType**](UsersType.md) | | [default to USERSTYPE_USERS] | + +## Methods + +### NewNullableRelationshipToUserData + +`func NewNullableRelationshipToUserData(id string, type_ UsersType) *NullableRelationshipToUserData` + +NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + +### NewNullableRelationshipToUserDataWithDefaults + +`func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData` + +NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + +### GetId + +`func (o *NullableRelationshipToUserData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NullableRelationshipToUserData) SetId(v string)` + +SetId sets Id field to given value. + +### GetType + +`func (o *NullableRelationshipToUserData) GetType() UsersType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *NullableRelationshipToUserData) SetType(v UsersType)` + +SetType sets Type field to given value. + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v2/datadog/model_incident_create_relationships.go b/api/v2/datadog/model_incident_create_relationships.go index b57c6d7391e..956d048e454 100644 --- a/api/v2/datadog/model_incident_create_relationships.go +++ b/api/v2/datadog/model_incident_create_relationships.go @@ -15,7 +15,7 @@ import ( // IncidentCreateRelationships The relationships the incident will have with other resources once created. type IncidentCreateRelationships struct { - Commander RelationshipToUser `json:"commander"` + CommanderUser NullableRelationshipToUser `json:"commander_user"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:-` } @@ -24,9 +24,9 @@ type IncidentCreateRelationships struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIncidentCreateRelationships(commander RelationshipToUser) *IncidentCreateRelationships { +func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships { this := IncidentCreateRelationships{} - this.Commander = commander + this.CommanderUser = commanderUser return &this } @@ -38,28 +38,28 @@ func NewIncidentCreateRelationshipsWithDefaults() *IncidentCreateRelationships { return &this } -// GetCommander returns the Commander field value -func (o *IncidentCreateRelationships) GetCommander() RelationshipToUser { +// GetCommanderUser returns the CommanderUser field value +func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser { if o == nil { - var ret RelationshipToUser + var ret NullableRelationshipToUser return ret } - return o.Commander + return o.CommanderUser } -// GetCommanderOk returns a tuple with the Commander field value +// GetCommanderUserOk returns a tuple with the CommanderUser field value // and a boolean to check if the value has been set. -func (o *IncidentCreateRelationships) GetCommanderOk() (*RelationshipToUser, bool) { +func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool) { if o == nil { return nil, false } - return &o.Commander, true + return &o.CommanderUser, true } -// SetCommander sets field value -func (o *IncidentCreateRelationships) SetCommander(v RelationshipToUser) { - o.Commander = v +// SetCommanderUser sets field value +func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser) { + o.CommanderUser = v } func (o IncidentCreateRelationships) MarshalJSON() ([]byte, error) { @@ -68,7 +68,7 @@ func (o IncidentCreateRelationships) MarshalJSON() ([]byte, error) { return json.Marshal(o.UnparsedObject) } if true { - toSerialize["commander"] = o.Commander + toSerialize["commander_user"] = o.CommanderUser } return json.Marshal(toSerialize) } @@ -76,17 +76,17 @@ func (o IncidentCreateRelationships) MarshalJSON() ([]byte, error) { func (o *IncidentCreateRelationships) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} required := struct { - Commander *RelationshipToUser `json:"commander"` + CommanderUser *NullableRelationshipToUser `json:"commander_user"` }{} all := struct { - Commander RelationshipToUser `json:"commander"` + CommanderUser NullableRelationshipToUser `json:"commander_user"` }{} err = json.Unmarshal(bytes, &required) if err != nil { return err } - if required.Commander == nil { - return fmt.Errorf("Required field commander missing") + if required.CommanderUser == nil { + return fmt.Errorf("Required field commander_user missing") } err = json.Unmarshal(bytes, &all) if err != nil { @@ -97,6 +97,6 @@ func (o *IncidentCreateRelationships) UnmarshalJSON(bytes []byte) (err error) { o.UnparsedObject = raw return nil } - o.Commander = all.Commander + o.CommanderUser = all.CommanderUser return nil } diff --git a/api/v2/datadog/model_incident_response_relationships.go b/api/v2/datadog/model_incident_response_relationships.go index c1d8446d6eb..26cb8738d37 100644 --- a/api/v2/datadog/model_incident_response_relationships.go +++ b/api/v2/datadog/model_incident_response_relationships.go @@ -14,7 +14,7 @@ import ( // IncidentResponseRelationships The incident's relationships from a response. type IncidentResponseRelationships struct { - CommanderUser *RelationshipToUser `json:"commander_user,omitempty"` + CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"` CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"` Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"` LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"` @@ -41,9 +41,9 @@ func NewIncidentResponseRelationshipsWithDefaults() *IncidentResponseRelationshi } // GetCommanderUser returns the CommanderUser field value if set, zero value otherwise. -func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser { +func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser { if o == nil || o.CommanderUser == nil { - var ret RelationshipToUser + var ret NullableRelationshipToUser return ret } return *o.CommanderUser @@ -51,7 +51,7 @@ func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser { // GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IncidentResponseRelationships) GetCommanderUserOk() (*RelationshipToUser, bool) { +func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool) { if o == nil || o.CommanderUser == nil { return nil, false } @@ -67,8 +67,8 @@ func (o *IncidentResponseRelationships) HasCommanderUser() bool { return false } -// SetCommanderUser gets a reference to the given RelationshipToUser and assigns it to the CommanderUser field. -func (o *IncidentResponseRelationships) SetCommanderUser(v RelationshipToUser) { +// SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field. +func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser) { o.CommanderUser = &v } @@ -226,7 +226,7 @@ func (o IncidentResponseRelationships) MarshalJSON() ([]byte, error) { func (o *IncidentResponseRelationships) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} all := struct { - CommanderUser *RelationshipToUser `json:"commander_user,omitempty"` + CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"` CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"` Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"` LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"` diff --git a/api/v2/datadog/model_incident_update_relationships.go b/api/v2/datadog/model_incident_update_relationships.go index c18e8b3351b..c1569c23308 100644 --- a/api/v2/datadog/model_incident_update_relationships.go +++ b/api/v2/datadog/model_incident_update_relationships.go @@ -14,7 +14,7 @@ import ( // IncidentUpdateRelationships The incident's relationships for an update request. type IncidentUpdateRelationships struct { - CommanderUser *RelationshipToUser `json:"commander_user,omitempty"` + CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"` CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"` Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"` LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"` @@ -41,9 +41,9 @@ func NewIncidentUpdateRelationshipsWithDefaults() *IncidentUpdateRelationships { } // GetCommanderUser returns the CommanderUser field value if set, zero value otherwise. -func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser { +func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser { if o == nil || o.CommanderUser == nil { - var ret RelationshipToUser + var ret NullableRelationshipToUser return ret } return *o.CommanderUser @@ -51,7 +51,7 @@ func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser { // GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*RelationshipToUser, bool) { +func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool) { if o == nil || o.CommanderUser == nil { return nil, false } @@ -67,8 +67,8 @@ func (o *IncidentUpdateRelationships) HasCommanderUser() bool { return false } -// SetCommanderUser gets a reference to the given RelationshipToUser and assigns it to the CommanderUser field. -func (o *IncidentUpdateRelationships) SetCommanderUser(v RelationshipToUser) { +// SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field. +func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser) { o.CommanderUser = &v } @@ -226,7 +226,7 @@ func (o IncidentUpdateRelationships) MarshalJSON() ([]byte, error) { func (o *IncidentUpdateRelationships) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} all := struct { - CommanderUser *RelationshipToUser `json:"commander_user,omitempty"` + CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"` CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"` Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"` LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"` diff --git a/api/v2/datadog/model_nullable_relationship_to_user.go b/api/v2/datadog/model_nullable_relationship_to_user.go new file mode 100644 index 00000000000..32dcac1181f --- /dev/null +++ b/api/v2/datadog/model_nullable_relationship_to_user.go @@ -0,0 +1,104 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" + "fmt" +) + +// NullableRelationshipToUser Relationship to user. +type NullableRelationshipToUser struct { + Data NullableNullableRelationshipToUserData `json:"data"` + // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct + UnparsedObject map[string]interface{} `json:-` +} + +// NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser { + this := NullableRelationshipToUser{} + this.Data = data + return &this +} + +// NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser { + this := NullableRelationshipToUser{} + return &this +} + +// GetData returns the Data field value +// If the value is explicit nil, the zero value for NullableRelationshipToUserData will be returned +func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData { + if o == nil || o.Data.Get() == nil { + var ret NullableRelationshipToUserData + return ret + } + + return *o.Data.Get() +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool) { + if o == nil { + return nil, false + } + return o.Data.Get(), o.Data.IsSet() +} + +// SetData sets field value +func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData) { + o.Data.Set(&v) +} + +func (o NullableRelationshipToUser) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.UnparsedObject != nil { + return json.Marshal(o.UnparsedObject) + } + if true { + toSerialize["data"] = o.Data.Get() + } + return json.Marshal(toSerialize) +} + +func (o *NullableRelationshipToUser) UnmarshalJSON(bytes []byte) (err error) { + raw := map[string]interface{}{} + required := struct { + Data *NullableNullableRelationshipToUserData `json:"data"` + }{} + all := struct { + Data NullableNullableRelationshipToUserData `json:"data"` + }{} + err = json.Unmarshal(bytes, &required) + if err != nil { + return err + } + if required.Data == nil { + return fmt.Errorf("Required field data missing") + } + err = json.Unmarshal(bytes, &all) + if err != nil { + err = json.Unmarshal(bytes, &raw) + if err != nil { + return err + } + o.UnparsedObject = raw + return nil + } + o.Data = all.Data + return nil +} diff --git a/api/v2/datadog/model_nullable_relationship_to_user_data.go b/api/v2/datadog/model_nullable_relationship_to_user_data.go new file mode 100644 index 00000000000..0349da7550d --- /dev/null +++ b/api/v2/datadog/model_nullable_relationship_to_user_data.go @@ -0,0 +1,184 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" + "fmt" +) + +// NullableRelationshipToUserData Relationship to user object. +type NullableRelationshipToUserData struct { + // A unique identifier that represents the user. + Id string `json:"id"` + Type UsersType `json:"type"` + // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct + UnparsedObject map[string]interface{} `json:-` +} + +// NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNullableRelationshipToUserData(id string, type_ UsersType) *NullableRelationshipToUserData { + this := NullableRelationshipToUserData{} + this.Id = id + this.Type = type_ + return &this +} + +// NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData { + this := NullableRelationshipToUserData{} + var type_ UsersType = USERSTYPE_USERS + this.Type = type_ + return &this +} + +// GetId returns the Id field value +func (o *NullableRelationshipToUserData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NullableRelationshipToUserData) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *NullableRelationshipToUserData) GetType() UsersType { + if o == nil { + var ret UsersType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NullableRelationshipToUserData) SetType(v UsersType) { + o.Type = v +} + +func (o NullableRelationshipToUserData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.UnparsedObject != nil { + return json.Marshal(o.UnparsedObject) + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +func (o *NullableRelationshipToUserData) UnmarshalJSON(bytes []byte) (err error) { + raw := map[string]interface{}{} + required := struct { + Id *string `json:"id"` + Type *UsersType `json:"type"` + }{} + all := struct { + Id string `json:"id"` + Type UsersType `json:"type"` + }{} + err = json.Unmarshal(bytes, &required) + if err != nil { + return err + } + if required.Id == nil { + return fmt.Errorf("Required field id missing") + } + if required.Type == nil { + return fmt.Errorf("Required field type missing") + } + err = json.Unmarshal(bytes, &all) + if err != nil { + err = json.Unmarshal(bytes, &raw) + if err != nil { + return err + } + o.UnparsedObject = raw + return nil + } + if v := all.Type; !v.IsValid() { + err = json.Unmarshal(bytes, &raw) + if err != nil { + return err + } + o.UnparsedObject = raw + return nil + } + o.Id = all.Id + o.Type = all.Type + return nil +} + +type NullableNullableRelationshipToUserData struct { + value *NullableRelationshipToUserData + isSet bool +} + +func (v NullableNullableRelationshipToUserData) Get() *NullableRelationshipToUserData { + return v.value +} + +func (v *NullableNullableRelationshipToUserData) Set(val *NullableRelationshipToUserData) { + v.value = val + v.isSet = true +} + +func (v NullableNullableRelationshipToUserData) IsSet() bool { + return v.isSet +} + +func (v *NullableNullableRelationshipToUserData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNullableRelationshipToUserData(val *NullableRelationshipToUserData) *NullableNullableRelationshipToUserData { + return &NullableNullableRelationshipToUserData{value: val, isSet: true} +} + +func (v NullableNullableRelationshipToUserData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNullableRelationshipToUserData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/examples/v2/incidents/CreateIncident.go b/examples/v2/incidents/CreateIncident.go index b7dcfdc3657..5b1598acc28 100644 --- a/examples/v2/incidents/CreateIncident.go +++ b/examples/v2/incidents/CreateIncident.go @@ -13,7 +13,7 @@ import ( func main() { // there is a valid "user" in the system - USER_DATA_ID := os.Getenv("USER_DATA_ID") + UserDataID := os.Getenv("USER_DATA_ID") body := datadog.IncidentCreateRequest{ Data: datadog.IncidentCreateData{ @@ -30,11 +30,11 @@ func main() { }, }, Relationships: &datadog.IncidentCreateRelationships{ - Commander: datadog.RelationshipToUser{ - Data: datadog.RelationshipToUserData{ + CommanderUser: datadog.NullableRelationshipToUser{ + Data: *datadog.NewNullableNullableRelationshipToUserData(&datadog.NullableRelationshipToUserData{ Type: datadog.USERSTYPE_USERS, - Id: USER_DATA_ID, - }, + Id: UserDataID, + }), }, }, }, diff --git a/examples/v2/incidents/DeleteIncident.go b/examples/v2/incidents/DeleteIncident.go index 2ba2b9f4eb0..3a119ad0a8e 100644 --- a/examples/v2/incidents/DeleteIncident.go +++ b/examples/v2/incidents/DeleteIncident.go @@ -12,13 +12,13 @@ import ( func main() { // there is a valid "incident" in the system - INCIDENT_DATA_ID := os.Getenv("INCIDENT_DATA_ID") + IncidentDataID := os.Getenv("INCIDENT_DATA_ID") ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() configuration.SetUnstableOperationEnabled("DeleteIncident", true) apiClient := datadog.NewAPIClient(configuration) - r, err := apiClient.IncidentsApi.DeleteIncident(ctx, INCIDENT_DATA_ID) + r, err := apiClient.IncidentsApi.DeleteIncident(ctx, IncidentDataID) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.DeleteIncident`: %v\n", err) diff --git a/examples/v2/incidents/GetIncident.go b/examples/v2/incidents/GetIncident.go index 910e4a1b88b..716735f23f5 100644 --- a/examples/v2/incidents/GetIncident.go +++ b/examples/v2/incidents/GetIncident.go @@ -13,13 +13,13 @@ import ( func main() { // there is a valid "incident" in the system - INCIDENT_DATA_ID := os.Getenv("INCIDENT_DATA_ID") + IncidentDataID := os.Getenv("INCIDENT_DATA_ID") ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() configuration.SetUnstableOperationEnabled("GetIncident", true) apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.IncidentsApi.GetIncident(ctx, INCIDENT_DATA_ID, *datadog.NewGetIncidentOptionalParameters()) + resp, r, err := apiClient.IncidentsApi.GetIncident(ctx, IncidentDataID, *datadog.NewGetIncidentOptionalParameters()) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.GetIncident`: %v\n", err) diff --git a/examples/v2/incidents/UpdateIncident.go b/examples/v2/incidents/UpdateIncident.go index 6cfdbd2dc0d..ead5a7b4263 100644 --- a/examples/v2/incidents/UpdateIncident.go +++ b/examples/v2/incidents/UpdateIncident.go @@ -13,11 +13,11 @@ import ( func main() { // there is a valid "incident" in the system - INCIDENT_DATA_ID := os.Getenv("INCIDENT_DATA_ID") + IncidentDataID := os.Getenv("INCIDENT_DATA_ID") body := datadog.IncidentUpdateRequest{ Data: datadog.IncidentUpdateData{ - Id: INCIDENT_DATA_ID, + Id: IncidentDataID, Type: datadog.INCIDENTTYPE_INCIDENTS, Attributes: &datadog.IncidentUpdateAttributes{ Fields: &map[string]datadog.IncidentFieldAttributes{ @@ -35,7 +35,7 @@ func main() { configuration := datadog.NewConfiguration() configuration.SetUnstableOperationEnabled("UpdateIncident", true) apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, INCIDENT_DATA_ID, body) + resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, IncidentDataID, body) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.UpdateIncident`: %v\n", err) diff --git a/examples/v2/incidents/UpdateIncident_1009194038.go b/examples/v2/incidents/UpdateIncident_1009194038.go new file mode 100644 index 00000000000..0e57d79a1fb --- /dev/null +++ b/examples/v2/incidents/UpdateIncident_1009194038.go @@ -0,0 +1,42 @@ +// Remove commander from an incident returns "OK" response + +package main + +import ( + "context" + "encoding/json" + "fmt" + "os" + + datadog "github.com/DataDog/datadog-api-client-go/api/v2/datadog" +) + +func main() { + // there is a valid "incident" in the system + IncidentDataID := os.Getenv("INCIDENT_DATA_ID") + + body := datadog.IncidentUpdateRequest{ + Data: datadog.IncidentUpdateData{ + Id: IncidentDataID, + Type: datadog.INCIDENTTYPE_INCIDENTS, + Relationships: &datadog.IncidentUpdateRelationships{ + CommanderUser: &datadog.NullableRelationshipToUser{ + Data: *datadog.NewNullableNullableRelationshipToUserData(nil), + }, + }, + }, + } + ctx := datadog.NewDefaultContext(context.Background()) + configuration := datadog.NewConfiguration() + configuration.SetUnstableOperationEnabled("UpdateIncident", true) + apiClient := datadog.NewAPIClient(configuration) + resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, IncidentDataID, body) + + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.UpdateIncident`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + + responseContent, _ := json.MarshalIndent(resp, "", " ") + fmt.Fprintf(os.Stdout, "Response from `IncidentsApi.UpdateIncident`:\n%s\n", responseContent) +} diff --git a/examples/v2/incidents/UpdateIncident_3369341440.go b/examples/v2/incidents/UpdateIncident_3369341440.go new file mode 100644 index 00000000000..e1efbe06622 --- /dev/null +++ b/examples/v2/incidents/UpdateIncident_3369341440.go @@ -0,0 +1,48 @@ +// Add commander to an incident returns "OK" response + +package main + +import ( + "context" + "encoding/json" + "fmt" + "os" + + datadog "github.com/DataDog/datadog-api-client-go/api/v2/datadog" +) + +func main() { + // there is a valid "incident" in the system + IncidentDataID := os.Getenv("INCIDENT_DATA_ID") + + // there is a valid "user" in the system + UserDataID := os.Getenv("USER_DATA_ID") + + body := datadog.IncidentUpdateRequest{ + Data: datadog.IncidentUpdateData{ + Id: IncidentDataID, + Type: datadog.INCIDENTTYPE_INCIDENTS, + Relationships: &datadog.IncidentUpdateRelationships{ + CommanderUser: &datadog.NullableRelationshipToUser{ + Data: *datadog.NewNullableNullableRelationshipToUserData(&datadog.NullableRelationshipToUserData{ + Id: UserDataID, + Type: datadog.USERSTYPE_USERS, + }), + }, + }, + }, + } + ctx := datadog.NewDefaultContext(context.Background()) + configuration := datadog.NewConfiguration() + configuration.SetUnstableOperationEnabled("UpdateIncident", true) + apiClient := datadog.NewAPIClient(configuration) + resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, IncidentDataID, body) + + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.UpdateIncident`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + + responseContent, _ := json.MarshalIndent(resp, "", " ") + fmt.Fprintf(os.Stdout, "Response from `IncidentsApi.UpdateIncident`:\n%s\n", responseContent) +} diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.freeze new file mode 100644 index 00000000000..a47890548a9 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-01-25T11:40:13.065Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.yaml new file mode 100644 index 00000000000..74ec8ee68d2 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Add_commander_to_an_incident_returns_OK_response.yaml @@ -0,0 +1,88 @@ +interactions: +- request: + body: | + {"data":{"attributes":{"email":"Test-Add_commander_to_an_incident_returns_OK_response-1643110813@datadoghq.com","title":"user title"},"type":"users"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + url: https://api.datadoghq.com/api/v2/users + response: + body: '{"data":{"type":"users","id":"8f3adc92-7dd3-11ec-bbe9-da7ad0900002","attributes":{"name":null,"handle":"test-add_commander_to_an_incident_returns_ok_response-1643110813@datadoghq.com","created_at":"2022-01-25T11:40:13.619632+00:00","modified_at":"2022-01-25T11:40:13.676356+00:00","email":"test-add_commander_to_an_incident_returns_ok_response-1643110813@datadoghq.com","icon":"https://secure.gravatar.com/avatar/40c635f8302d5755155545960d3b24a9?s=48&d=retro","title":"user + title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' + code: 201 + duration: '' + headers: + Content-Type: + - application/json + status: 201 Created +- request: + body: | + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Add_commander_to_an_incident_returns_OK_response-1643110813"},"type":"incidents"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + url: https://api.datadoghq.com/api/v2/incidents + response: + body: '{"data":{"type":"incidents","id":"14233fcb-9927-547c-bbdb-dacf71aa2726","attributes":{"public_id":88131,"title":"Test-Add_commander_to_an_incident_returns_OK_response-1643110813","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-25T11:40:14.171967+00:00","modified":"2022-01-25T11:40:14.171967+00:00","commander":null,"detected":"2022-01-25T11:40:14.161476+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + code: 201 + duration: '' + headers: + Content-Type: + - application/json + status: 201 Created +- request: + body: | + {"data":{"id":"14233fcb-9927-547c-bbdb-dacf71aa2726","relationships":{"commander_user":{"data":{"id":"8f3adc92-7dd3-11ec-bbe9-da7ad0900002","type":"users"}}},"type":"incidents"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: PATCH + url: https://api.datadoghq.com/api/v2/incidents/14233fcb-9927-547c-bbdb-dacf71aa2726 + response: + body: '{"data":{"type":"incidents","id":"14233fcb-9927-547c-bbdb-dacf71aa2726","attributes":{"public_id":88131,"title":"Test-Add_commander_to_an_incident_returns_OK_response-1643110813","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2022-01-25T11:40:14.171967+00:00","modified":"2022-01-25T11:40:15.822801+00:00","commander":{"data":{"type":"users","id":"8f3adc92-7dd3-11ec-bbe9-da7ad0900002","attributes":{"uuid":"8f3adc92-7dd3-11ec-bbe9-da7ad0900002","handle":"test-add_commander_to_an_incident_returns_ok_response-1643110813@datadoghq.com","email":"test-add_commander_to_an_incident_returns_ok_response-1643110813@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/40c635f8302d5755155545960d3b24a9?s=48&d=retro"}}},"detected":"2022-01-25T11:40:14.161476+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"3b463d7b-23f6-505b-89ea-e754d385dd3c"},{"type":"incident_responders","id":"b2354174-e8cf-5f7d-8563-462fa73dc347"}]}}}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: DELETE + url: https://api.datadoghq.com/api/v2/incidents/14233fcb-9927-547c-bbdb-dacf71aa2726 + response: + body: '' + code: 204 + duration: '' + headers: {} + status: 204 No Content +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: DELETE + url: https://api.datadoghq.com/api/v2/users/8f3adc92-7dd3-11ec-bbe9-da7ad0900002 + response: + body: '' + code: 204 + duration: '' + headers: {} + status: 204 No Content +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.freeze index 5732506a772..fb088b65193 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.freeze @@ -1 +1 @@ -2021-04-14T15:12:38.251Z \ No newline at end of file +2022-01-22T09:45:38.207Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.yaml index 1e75783fc82..e9da6bb5409 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Create_an_incident_returns_CREATED_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"email":"Test-Create_an_incident_returns_CREATED_response-1618413158@datadoghq.com","title":"user title"},"type":"users"}} + {"data":{"attributes":{"email":"Test-Create_an_incident_returns_CREATED_response-1642844738@datadoghq.com","title":"user title"},"type":"users"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/users response: - body: '{"data":{"type":"users","id":"d9b79c82-9d33-11eb-9dc6-da7ad0900002","attributes":{"name":null,"handle":"test-create_an_incident_returns_created_response-1618413158@datadoghq.com","created_at":"2021-04-14T15:12:38.649755+00:00","modified_at":"2021-04-14T15:12:38.688204+00:00","email":"test-create_an_incident_returns_created_response-1618413158@datadoghq.com","icon":"https://secure.gravatar.com/avatar/4f8a2d34ca5f24dadc734bd816cbad46?s=48&d=retro","title":"user + body: '{"data":{"type":"users","id":"0e350d74-7b68-11ec-baee-da7ad0900002","attributes":{"name":null,"handle":"test-create_an_incident_returns_created_response-1642844738@datadoghq.com","created_at":"2022-01-22T09:45:38.679854+00:00","modified_at":"2022-01-22T09:45:38.724594+00:00","email":"test-create_an_incident_returns_created_response-1642844738@datadoghq.com","icon":"https://secure.gravatar.com/avatar/2285814e68ea183a12cbaf2ec4a8fffb?s=48&d=retro","title":"user title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' code: 201 duration: '' @@ -21,7 +21,7 @@ interactions: status: 201 Created - request: body: | - {"data":{"attributes":{"customer_impacted":false,"fields":{"state":{"type":"dropdown","value":"resolved"}},"title":"Test-Create_an_incident_returns_CREATED_response-1618413158"},"relationships":{"commander":{"data":{"id":"d9b79c82-9d33-11eb-9dc6-da7ad0900002","type":"users"}}},"type":"incidents"}} + {"data":{"attributes":{"customer_impacted":false,"fields":{"state":{"type":"dropdown","value":"resolved"}},"title":"Test-Create_an_incident_returns_CREATED_response-1642844738"},"relationships":{"commander_user":{"data":{"id":"0e350d74-7b68-11ec-baee-da7ad0900002","type":"users"}}},"type":"incidents"}} form: {} headers: Accept: @@ -31,7 +31,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"data":{"type":"incidents","id":"4f011ae3-66fd-54ee-9364-86bae65bbe80","attributes":{"public_id":35895,"title":"Test-Create_an_incident_returns_CREATED_response-1618413158","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2021-04-14T15:12:39.182808+00:00","modified":"2021-04-14T15:12:39.182808+00:00","commander":{"data":{"type":"users","id":"d9b79c82-9d33-11eb-9dc6-da7ad0900002","attributes":{"uuid":"d9b79c82-9d33-11eb-9dc6-da7ad0900002","handle":"test-create_an_incident_returns_created_response-1618413158@datadoghq.com","email":"test-create_an_incident_returns_created_response-1618413158@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/4f8a2d34ca5f24dadc734bd816cbad46?s=48&d=retro"}}},"detected":"2021-04-14T15:12:39.181241+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"d9b79c82-9d33-11eb-9dc6-da7ad0900002"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"77a51469-8df2-5ca9-9cb8-dc8f5667d1de","attributes":{"public_id":88118,"title":"Test-Create_an_incident_returns_CREATED_response-1642844738","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-22T09:45:39.296464+00:00","modified":"2022-01-22T09:45:39.296464+00:00","commander":{"data":{"type":"users","id":"0e350d74-7b68-11ec-baee-da7ad0900002","attributes":{"uuid":"0e350d74-7b68-11ec-baee-da7ad0900002","handle":"test-create_an_incident_returns_created_response-1642844738@datadoghq.com","email":"test-create_an_incident_returns_created_response-1642844738@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/2285814e68ea183a12cbaf2ec4a8fffb?s=48&d=retro"}}},"detected":"2022-01-22T09:45:39.287330+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"0e350d74-7b68-11ec-baee-da7ad0900002"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"0c09a69c-b292-57ea-83cd-f86f011842ab"}]}}}}' code: 201 duration: '' headers: @@ -45,14 +45,12 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/4f011ae3-66fd-54ee-9364-86bae65bbe80 + url: https://api.datadoghq.com/api/v2/incidents/77a51469-8df2-5ca9-9cb8-dc8f5667d1de response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content - request: body: '' @@ -61,13 +59,11 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/users/d9b79c82-9d33-11eb-9dc6-da7ad0900002 + url: https://api.datadoghq.com/api/v2/users/0e350d74-7b68-11ec-baee-da7ad0900002 response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.freeze index 4d0253f1728..ff3f91112e9 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.freeze @@ -1 +1 @@ -2021-04-15T13:01:47.068Z \ No newline at end of file +2022-01-22T09:45:40.859Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.yaml index 320aa62e788..5881569e242 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Delete_an_existing_incident_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"customer_impacted":false,"title":"Test-Delete_an_existing_incident_returns_OK_response-1618491707"},"type":"incidents"}} + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Delete_an_existing_incident_returns_OK_response-1642844740"},"type":"incidents"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"data":{"type":"incidents","id":"3002d31f-1c9c-56b5-ae84-8363d9c3ee05","attributes":{"public_id":36217,"title":"Test-Delete_an_existing_incident_returns_OK_response-1618491707","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2021-04-15T13:01:47.910027+00:00","modified":"2021-04-15T13:01:47.910027+00:00","commander":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"detected":"2021-04-15T13:01:47.908164+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"50ec6462-78d8-5efa-962a-3c120a199b1a","attributes":{"public_id":88119,"title":"Test-Delete_an_existing_incident_returns_OK_response-1642844740","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-22T09:45:41.305043+00:00","modified":"2022-01-22T09:45:41.305043+00:00","commander":null,"detected":"2022-01-22T09:45:41.295400+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' code: 201 duration: '' headers: @@ -25,14 +25,12 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/3002d31f-1c9c-56b5-ae84-8363d9c3ee05 + url: https://api.datadoghq.com/api/v2/incidents/50ec6462-78d8-5efa-962a-3c120a199b1a response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content - request: body: '' @@ -41,9 +39,9 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/3002d31f-1c9c-56b5-ae84-8363d9c3ee05 + url: https://api.datadoghq.com/api/v2/incidents/50ec6462-78d8-5efa-962a-3c120a199b1a response: - body: '{"errors": ["incident 3002d31f-1c9c-56b5-ae84-8363d9c3ee05 not found"]}' + body: '{"errors": ["incident 50ec6462-78d8-5efa-962a-3c120a199b1a not found"]}' code: 404 duration: '' headers: diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.freeze index f9b2415acef..ca178891965 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.freeze @@ -1 +1 @@ -2021-04-15T13:01:49.626Z \ No newline at end of file +2022-01-22T09:45:42.640Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.yaml index f6054fb239b..73bdeb64fd8 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_a_list_of_incidents_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"customer_impacted":false,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1618491709"},"type":"incidents"}} + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1642844742"},"type":"incidents"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"data":{"type":"incidents","id":"1289c84e-3b2e-5eab-a139-6b966a31becf","attributes":{"public_id":36218,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1618491709","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2021-04-15T13:01:49.965771+00:00","modified":"2021-04-15T13:01:49.965771+00:00","commander":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"detected":"2021-04-15T13:01:49.964220+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"606d9e8b-e4cb-5108-af48-21f8f85faa77","attributes":{"public_id":88120,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1642844742","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-22T09:45:43.155476+00:00","modified":"2022-01-22T09:45:43.155476+00:00","commander":null,"detected":"2022-01-22T09:45:43.146109+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' code: 201 duration: '' headers: @@ -27,7 +27,7 @@ interactions: method: GET url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"meta":{"pagination":{"size":25,"next_offset":25,"offset":0}},"data":[{"type":"incidents","id":"c136e4bd-4058-50bd-9eb2-00a56014bbba","attributes":{"public_id":249,"title":"UPDATE-TITLE4","resolved":"2021-01-15T08:21:26.436438+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-16T21:11:47.027042+00:00","modified":"2021-01-15T08:21:26.436438+00:00","detected":"2020-11-16T21:11:47.024974+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":5137779,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"4577ddae-e285-5f4c-8dc1-a197809b9bb9"}]}}},{"type":"incidents","id":"759093ec-43a9-5433-b663-0a216f893490","attributes":{"public_id":250,"title":"ruby-Create-an-incident-returns-CREATED-response-1605561158","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-16T21:12:39.106504+00:00","modified":"2020-11-16T21:12:39.106504+00:00","detected":"2020-11-16T21:12:39.104564+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"74d6f0f4-2850-11eb-8315-9729be744397"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"cfb95353-6e83-5d03-ad37-f3f0dbd536e0","attributes":{"public_id":251,"title":"ruby-Create-an-incident-returns-CREATED-response-1605561587","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-16T21:19:47.664284+00:00","modified":"2020-11-16T21:19:47.664284+00:00","detected":"2020-11-16T21:19:47.661744+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"745b8ecc-2851-11eb-8315-0fb5f68f74f4"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"c63a6fac-f2f5-5967-b4f4-2e19dbd1f4c8","attributes":{"public_id":252,"title":"ruby-Get-a-list-of-incidents-returns-OK-response-1605630388","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:26:29.028247+00:00","modified":"2020-11-17T16:26:29.028247+00:00","detected":"2020-11-17T16:26:29.026121+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"3aaafa2e-8a94-5477-9ced-c76118fde209","attributes":{"public_id":253,"title":"ruby-Create-an-incident-returns-CREATED-response-1605630390","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:26:30.971137+00:00","modified":"2020-11-17T16:26:30.971137+00:00","detected":"2020-11-17T16:26:30.969105+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"a646a02a-28f1-11eb-832d-632b583b5975"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"54e9dcec-1654-53b2-b7a9-1a249f910d93","attributes":{"public_id":255,"title":"ruby-Get-the-details-of-an-incident-returns-OK-response-1605630394","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:26:34.130665+00:00","modified":"2020-11-17T16:26:34.130665+00:00","detected":"2020-11-17T16:26:34.128678+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"4bc03337-b51e-58a1-9907-24fe9397a655","attributes":{"public_id":256,"title":"ruby-Update-an-existing-incident-returns-OK-response-1605630395","resolved":"2020-11-17T16:26:37.418390+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:26:35.741225+00:00","modified":"2020-11-17T16:26:37.418390+00:00","detected":"2020-11-17T16:26:35.732351+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":1,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"787bc248-f5f7-562d-84e6-e64142a118fd"}]}}},{"type":"incidents","id":"bbfb386b-f635-5dea-a693-104c3a6b80a9","attributes":{"public_id":258,"title":"go-Feature_Incidents-Scenario_Create_an_incident_returns__CREATED__response-32607-1605630437","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","created":"2020-11-17T16:27:17.736444+00:00","modified":"2020-11-17T16:27:17.736444+00:00","detected":"2020-11-17T16:27:17.733763+00:00","created_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"last_modified_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"commander_user":{"data":{"type":"users","id":"c21b9a94-28f1-11eb-832d-bf097b8522b4"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"0a40f81b-a396-578c-92ef-c2ac288fee56","attributes":{"public_id":262,"title":"ruby-Get-a-list-of-incidents-returns-OK-response-1605631446","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:44:06.466018+00:00","modified":"2020-11-17T16:44:06.466018+00:00","detected":"2020-11-17T16:44:06.463481+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"3ad0fd24-23b6-5e1d-8291-015f1173c9f4","attributes":{"public_id":263,"title":"ruby-Create-an-incident-returns-CREATED-response-1605631448","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:44:08.319787+00:00","modified":"2020-11-17T16:44:08.319787+00:00","detected":"2020-11-17T16:44:08.318157+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"1c8b8b0e-28f4-11eb-832d-4fb2f652706c"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"7c17e776-3b69-5def-8bbd-a52b92859409","attributes":{"public_id":265,"title":"ruby-Get-the-details-of-an-incident-returns-OK-response-1605631451","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:44:11.882252+00:00","modified":"2020-11-17T16:44:11.882252+00:00","detected":"2020-11-17T16:44:11.880670+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"eeb8b8a3-8629-51c7-ae69-3c0a8093debd","attributes":{"public_id":266,"title":"ruby-Update-an-existing-incident-returns-OK-response-1605631453","resolved":"2020-11-17T16:44:15.211316+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T16:44:13.298175+00:00","modified":"2020-11-17T16:44:15.211316+00:00","detected":"2020-11-17T16:44:13.296411+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":1,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"1b99c6db-d9e5-5d79-9fad-08743b3dc6a6"}]}}},{"type":"incidents","id":"ab0af56b-09e9-58e2-bd10-d12d10d413e6","attributes":{"public_id":268,"title":"go-Feature_Incidents-Scenario_Create_an_incident_returns__CREATED__response-32622-1605632003","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","created":"2020-11-17T16:53:23.644988+00:00","modified":"2020-11-17T16:53:23.644988+00:00","detected":"2020-11-17T16:53:23.642749+00:00","created_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"last_modified_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"commander_user":{"data":{"type":"users","id":"677a5144-28f5-11eb-832d-43ef6f0086f5"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"f04ea436-c869-5324-8c3a-07ace23ccc28","attributes":{"public_id":273,"title":"go-Feature_Incidents-Scenario_Create_an_incident_returns__CREATED__response-32623-1605632390","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","created":"2020-11-17T16:59:51.568258+00:00","modified":"2020-11-17T16:59:51.568258+00:00","detected":"2020-11-17T16:59:51.565468+00:00","created_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"last_modified_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"commander_user":{"data":{"type":"users","id":"4e755c60-28f6-11eb-832d-4faec8984e53"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"0a50950e-0aa9-50d5-8496-fc95c3f78e19","attributes":{"public_id":277,"title":"ruby-Get-a-list-of-incidents-returns-OK-response-1605632406","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:00:06.315056+00:00","modified":"2020-11-17T17:00:06.315056+00:00","detected":"2020-11-17T17:00:06.313513+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"e6cd8c2f-92a8-572f-b666-c1e52a46b63b","attributes":{"public_id":278,"title":"ruby-Create-an-incident-returns-CREATED-response-1605632408","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:00:09.126377+00:00","modified":"2020-11-17T17:00:09.126377+00:00","detected":"2020-11-17T17:00:09.124700+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"593bc774-28f6-11eb-832d-1fa842e4bc1e"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"19235828-e050-5c7a-aa4b-ef1a9b0577ec","attributes":{"public_id":280,"title":"ruby-Get-the-details-of-an-incident-returns-OK-response-1605632414","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:00:14.515081+00:00","modified":"2020-11-17T17:00:14.515081+00:00","detected":"2020-11-17T17:00:14.513211+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"224cf629-64f6-5cd9-b791-9dc3352a2d83","attributes":{"public_id":281,"title":"ruby-Update-an-existing-incident-returns-OK-response-1605632415","resolved":"2020-11-17T17:00:17.608939+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:00:16.098129+00:00","modified":"2020-11-17T17:00:17.608939+00:00","detected":"2020-11-17T17:00:16.096405+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":1,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"8a5552cb-a753-5063-8493-b3a3731be9e1"}]}}},{"type":"incidents","id":"83973e96-bb3b-5046-a3a2-1a1d081fbd32","attributes":{"public_id":284,"title":"datadog-api-client-python-test_create_an_incident_returns_created_response-1605632660.059729","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:04:20.641139+00:00","modified":"2020-11-17T17:04:20.641139+00:00","detected":"2020-11-17T17:04:20.639191+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"ef1a8b36-28f6-11eb-832d-17f265177de1"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"5df2efb1-eedd-5018-9d2a-3a04ba7a968c","attributes":{"public_id":287,"title":"ruby-Get-a-list-of-incidents-returns-OK-response-1605634720","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:38:40.512674+00:00","modified":"2020-11-17T17:38:40.512674+00:00","detected":"2020-11-17T17:38:40.510750+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"f175cc04-841e-5746-a688-9812d2aa523d","attributes":{"public_id":288,"title":"ruby-Create-an-incident-returns-CREATED-response-1605634722","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:38:43.039652+00:00","modified":"2020-11-17T17:38:43.039652+00:00","detected":"2020-11-17T17:38:43.037664+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"bc72bba4-28fb-11eb-832d-df83705109e7"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"d79c0d68-9ece-5d16-a65c-c4d492bfae55","attributes":{"public_id":290,"title":"ruby-Get-the-details-of-an-incident-returns-OK-response-1605634727","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:38:47.244154+00:00","modified":"2020-11-17T17:38:47.244154+00:00","detected":"2020-11-17T17:38:47.227594+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"676c681e-2cd6-5646-af2d-5b34ac1453c0","attributes":{"public_id":291,"title":"ruby-Update-an-existing-incident-returns-OK-response-1605634729","resolved":"2020-11-17T17:38:51.342514+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2020-11-17T17:38:49.950909+00:00","modified":"2020-11-17T17:38:51.342514+00:00","detected":"2020-11-17T17:38:49.949160+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":1,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"a84a2e35-511a-515b-b99f-97ad05f32163"}]}}},{"type":"incidents","id":"40047b55-5412-5a40-8fcf-3e10f8c7763b","attributes":{"public_id":293,"title":"go-Feature_Incidents-Scenario_Create_an_incident_returns__CREATED__response-32646-1605634820","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","created":"2020-11-17T17:40:20.449284+00:00","modified":"2020-11-17T17:40:20.449284+00:00","detected":"2020-11-17T17:40:20.447651+00:00","created_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"last_modified_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"commander_user":{"data":{"type":"users","id":"f67ec022-28fb-11eb-832d-efe40bfef343"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"d8a47bc7-4d9e-5e71-9311-cad127088bbe","attributes":{"public_id":303,"title":"go-Feature_Incidents-Scenario_Create_an_incident_returns__CREATED__response-32652-1605636212","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","created":"2020-11-17T18:03:33.271810+00:00","modified":"2020-11-17T18:03:33.271810+00:00","detected":"2020-11-17T18:03:33.255404+00:00","created_by_uuid":"35c75c20-eba0-11e9-a77a-db716d075be2","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"last_modified_by_user":{"data":{"type":"users","id":"35c75c20-eba0-11e9-a77a-db716d075be2"}},"commander_user":{"data":{"type":"users","id":"349e55cc-28ff-11eb-832d-23016a6e59f2"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}]}' + body: '{"meta":{"pagination":{"size":25,"next_offset":25,"offset":0}},"data":[{"type":"incidents","id":"ed3ff75e-6ce6-5b00-8ab4-665fcaeda9f8","attributes":{"public_id":62105,"title":"Test-Ruby-Get_the_details_of_an_incident_returns_OK_response-1631710219","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","created":"2021-09-15T12:50:19.743510+00:00","modified":"2021-09-15T12:50:19.743510+00:00","detected":"2021-09-15T12:50:19.741188+00:00","created_by_uuid":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"last_modified_by_user":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"commander_user":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"00037f9b-dd47-5b21-bcf3-f8dd30e907da","attributes":{"public_id":62582,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1631884327","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:12:08.512729+00:00","modified":"2021-09-17T13:12:08.512729+00:00","detected":"2021-09-17T13:12:08.510606+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"1524396f-fa67-5e6d-a27d-78e7bd85f14d","attributes":{"public_id":62583,"title":"Test-Update_an_existing_incident_returns_OK_response-1631884336","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:12:17.076724+00:00","modified":"2021-09-17T13:12:17.076724+00:00","detected":"2021-09-17T13:12:17.075124+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"a55f9079-4af2-58fb-8cb4-a0889ed511ec","attributes":{"public_id":62584,"title":"Test-Delete_an_existing_incident_returns_OK_response-1631884339","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:12:19.704758+00:00","modified":"2021-09-17T13:12:19.704758+00:00","detected":"2021-09-17T13:12:19.702100+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"f6992253-ad7b-5684-853c-fd6a9e7a6168","attributes":{"public_id":62585,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1631884344","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:12:25.283247+00:00","modified":"2021-09-17T13:12:25.283247+00:00","detected":"2021-09-17T13:12:25.280858+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"7b212a2d-8412-508f-8210-4a1ed9cc6e4d","attributes":{"public_id":62586,"title":"Test-Delete_an_existing_incident_returns_OK_response-1631884434","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:13:55.593558+00:00","modified":"2021-09-17T13:13:55.593558+00:00","detected":"2021-09-17T13:13:55.591163+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"95a02c3a-6a43-55d8-b458-064e18f5b59f","attributes":{"public_id":62587,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1631884436","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:13:56.759987+00:00","modified":"2021-09-17T13:13:56.759987+00:00","detected":"2021-09-17T13:13:56.758538+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"5ba154d6-374d-575c-80c2-34eae41bc7ad","attributes":{"public_id":62588,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1631884446","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:14:06.676104+00:00","modified":"2021-09-17T13:14:06.676104+00:00","detected":"2021-09-17T13:14:06.674229+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"8a407316-349e-5479-9ecf-38ee7189edbf","attributes":{"public_id":62589,"title":"Test-Update_an_existing_incident_returns_OK_response-1631884466","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:14:26.944152+00:00","modified":"2021-09-17T13:14:26.944152+00:00","detected":"2021-09-17T13:14:26.941989+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"63a4a7a7-34e8-51ed-b319-09bfe52abaf4","attributes":{"public_id":62590,"title":"Test-Delete_an_existing_incident_returns_OK_response-1631884657","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:17:37.772747+00:00","modified":"2021-09-17T13:17:37.772747+00:00","detected":"2021-09-17T13:17:37.770605+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"183c6f35-8769-5d5c-be3a-88cae24f852c","attributes":{"public_id":62591,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1631884661","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:17:42.003773+00:00","modified":"2021-09-17T13:17:42.003773+00:00","detected":"2021-09-17T13:17:42.002102+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"f9753512-defd-5df5-a239-ba2851c0c39a","attributes":{"public_id":62592,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1631884669","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:17:49.948960+00:00","modified":"2021-09-17T13:17:49.948960+00:00","detected":"2021-09-17T13:17:49.946176+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"e4ed937c-e738-5a70-a5f1-366ec0f910a7","attributes":{"public_id":62593,"title":"Test-Update_an_existing_incident_returns_OK_response-1631884677","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:17:57.732512+00:00","modified":"2021-09-17T13:17:57.732512+00:00","detected":"2021-09-17T13:17:57.730975+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"c4f26eac-53f1-5fc3-96de-76c1f9d9b4ab","attributes":{"public_id":62594,"title":"Test-Get_a_list_of_incidents_returns_OK_response-1631884713","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:18:33.710434+00:00","modified":"2021-09-17T13:18:33.710434+00:00","detected":"2021-09-17T13:18:33.708674+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"f68757ce-a2b3-527d-ad89-49ef74b6f84e","attributes":{"public_id":62595,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1631884716","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:18:37.589294+00:00","modified":"2021-09-17T13:18:37.589294+00:00","detected":"2021-09-17T13:18:37.587392+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"c86fd44b-5039-5478-9b65-75902b830f34","attributes":{"public_id":62596,"title":"Test-Update_an_existing_incident_returns_OK_response-1631884721","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:18:41.865409+00:00","modified":"2021-09-17T13:18:41.865409+00:00","detected":"2021-09-17T13:18:41.863134+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"0b5fc0ac-9463-5d0a-adeb-85be8aef298b","attributes":{"public_id":62597,"title":"Test-Delete_an_existing_incident_returns_OK_response-1631884733","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:18:54.523271+00:00","modified":"2021-09-17T13:18:54.523271+00:00","detected":"2021-09-17T13:18:54.520816+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"159c011c-bff7-5e3b-bee9-51d0c1628cb4","attributes":{"public_id":62598,"title":"Test-Python-Get_the_details_of_an_incident_returns_OK_response-1631886007","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:40:07.696727+00:00","modified":"2021-09-17T13:40:07.696727+00:00","detected":"2021-09-17T13:40:07.694142+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"ef960518-0b5c-5528-b995-21b6b867c0b9","attributes":{"public_id":62599,"title":"Test-Python-Get_a_list_of_incidents_returns_OK_response-1631886010","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:40:10.574273+00:00","modified":"2021-09-17T13:40:10.574273+00:00","detected":"2021-09-17T13:40:10.571906+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"4976b799-77ec-5122-8a3e-00930a309f1b","attributes":{"public_id":62600,"title":"Test-Python-Update_an_existing_incident_returns_OK_response-1631886026","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:40:27.323950+00:00","modified":"2021-09-17T13:40:27.323950+00:00","detected":"2021-09-17T13:40:27.321746+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"cd8cb170-e348-5c25-9536-ebc4d385b177","attributes":{"public_id":62601,"title":"Test-Python-Delete_an_existing_incident_returns_OK_response-1631886042","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-17T13:40:42.624782+00:00","modified":"2021-09-17T13:40:42.624782+00:00","detected":"2021-09-17T13:40:42.623636+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"ce952d04-3f4e-54ed-92f6-de2d3d78b581","attributes":{"public_id":63361,"title":"Test-Typescript-Delete_an_existing_incident_returns_OK_response-1632237241","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-21T15:14:01.455024+00:00","modified":"2021-09-21T15:14:01.455024+00:00","detected":"2021-09-21T15:14:01.453618+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"24f4ac82-0544-59cb-a3f0-432e4700e2e3","attributes":{"public_id":63362,"title":"Test-Typescript-Get_a_list_of_incidents_returns_OK_response-1632237241","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-21T15:14:01.884148+00:00","modified":"2021-09-21T15:14:01.884148+00:00","detected":"2021-09-21T15:14:01.880745+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"54dbc82d-4aa2-5ce6-9087-180adb774ddc","attributes":{"public_id":63363,"title":"Test-Typescript-Get_the_details_of_an_incident_returns_OK_response-1632237242","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-21T15:14:02.325469+00:00","modified":"2021-09-21T15:14:02.325469+00:00","detected":"2021-09-21T15:14:02.322823+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}},{"type":"incidents","id":"2549119e-9c9c-5cba-9cf8-dae6e76c9f0c","attributes":{"public_id":63364,"title":"Test-Typescript-Update_an_existing_incident_returns_OK_response-1632237242","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-09-21T15:14:02.745795+00:00","modified":"2021-09-21T15:14:02.745795+00:00","detected":"2021-09-21T15:14:02.743796+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}]}' code: 200 duration: '' headers: @@ -41,13 +41,11 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/1289c84e-3b2e-5eab-a139-6b966a31becf + url: https://api.datadoghq.com/api/v2/incidents/606d9e8b-e4cb-5108-af48-21f8f85faa77 response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.freeze index ba11c0d1b3d..02001edb8c9 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.freeze @@ -1 +1 @@ -2021-04-15T13:01:51.678Z \ No newline at end of file +2022-01-22T09:45:45.313Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.yaml index 938c30a3c8f..6f43b28a181 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Get_the_details_of_an_incident_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"customer_impacted":false,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1618491711"},"type":"incidents"}} + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1642844745"},"type":"incidents"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"data":{"type":"incidents","id":"f1c9c645-68c5-5e3e-85f8-85f23a5fb9e5","attributes":{"public_id":36219,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1618491711","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2021-04-15T13:01:52.017112+00:00","modified":"2021-04-15T13:01:52.017112+00:00","commander":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"detected":"2021-04-15T13:01:52.015553+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"02452ef6-9351-51db-acb9-32932ea54275","attributes":{"public_id":88121,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1642844745","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-22T09:45:45.749210+00:00","modified":"2022-01-22T09:45:45.749210+00:00","commander":null,"detected":"2022-01-22T09:45:45.738159+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' code: 201 duration: '' headers: @@ -25,9 +25,9 @@ interactions: Accept: - application/json method: GET - url: https://api.datadoghq.com/api/v2/incidents/f1c9c645-68c5-5e3e-85f8-85f23a5fb9e5 + url: https://api.datadoghq.com/api/v2/incidents/02452ef6-9351-51db-acb9-32932ea54275 response: - body: '{"data":{"type":"incidents","id":"f1c9c645-68c5-5e3e-85f8-85f23a5fb9e5","attributes":{"public_id":36219,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1618491711","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-04-15T13:01:52.017112+00:00","modified":"2021-04-15T13:01:52.017112+00:00","detected":"2021-04-15T13:01:52.015553+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"02452ef6-9351-51db-acb9-32932ea54275","attributes":{"public_id":88121,"title":"Test-Get_the_details_of_an_incident_returns_OK_response-1642844745","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2022-01-22T09:45:45.749210+00:00","modified":"2022-01-22T09:45:45.749210+00:00","detected":"2022-01-22T09:45:45.738159+00:00","created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' code: 200 duration: '' headers: @@ -41,13 +41,11 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/f1c9c645-68c5-5e3e-85f8-85f23a5fb9e5 + url: https://api.datadoghq.com/api/v2/incidents/02452ef6-9351-51db-acb9-32932ea54275 response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.freeze new file mode 100644 index 00000000000..929684b551e --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-01-25T11:44:10.563Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.yaml new file mode 100644 index 00000000000..cb7ab872277 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Remove_commander_from_an_incident_returns_OK_response.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: | + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Remove_commander_from_an_incident_returns_OK_response-1643111050"},"type":"incidents"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + url: https://api.datadoghq.com/api/v2/incidents + response: + body: '{"data":{"type":"incidents","id":"d0b8b7b8-eff3-5800-bb92-507168b921f1","attributes":{"public_id":88133,"title":"Test-Remove_commander_from_an_incident_returns_OK_response-1643111050","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-25T11:44:11.178013+00:00","modified":"2022-01-25T11:44:11.178013+00:00","commander":null,"detected":"2022-01-25T11:44:11.168938+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + code: 201 + duration: '' + headers: + Content-Type: + - application/json + status: 201 Created +- request: + body: | + {"data":{"id":"d0b8b7b8-eff3-5800-bb92-507168b921f1","relationships":{"commander_user":{"data":null}},"type":"incidents"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: PATCH + url: https://api.datadoghq.com/api/v2/incidents/d0b8b7b8-eff3-5800-bb92-507168b921f1 + response: + body: '{"data":{"type":"incidents","id":"d0b8b7b8-eff3-5800-bb92-507168b921f1","attributes":{"public_id":88133,"title":"Test-Remove_commander_from_an_incident_returns_OK_response-1643111050","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2022-01-25T11:44:11.178013+00:00","modified":"2022-01-25T11:44:11.974074+00:00","commander":null,"detected":"2022-01-25T11:44:11.168938+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"c8f0371b-f6c4-5b6e-8fba-3c541ab2677d"}]}}}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: DELETE + url: https://api.datadoghq.com/api/v2/incidents/d0b8b7b8-eff3-5800-bb92-507168b921f1 + response: + body: '' + code: 204 + duration: '' + headers: {} + status: 204 No Content +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.freeze index c58df10776b..71419839923 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.freeze @@ -1 +1 @@ -2021-04-15T13:01:53.351Z \ No newline at end of file +2022-01-22T09:45:47.155Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.yaml index 220fcf2fe90..296ddec7ade 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Incidents/Scenario_Update_an_existing_incident_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"customer_impacted":false,"title":"Test-Update_an_existing_incident_returns_OK_response-1618491713"},"type":"incidents"}} + {"data":{"attributes":{"customer_impacted":false,"title":"Test-Update_an_existing_incident_returns_OK_response-1642844747"},"type":"incidents"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/incidents response: - body: '{"data":{"type":"incidents","id":"f40f7641-0aa4-57d3-b20d-3d42e9dbacae","attributes":{"public_id":36220,"title":"Test-Update_an_existing_incident_returns_OK_response-1618491713","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2021-04-15T13:01:53.699133+00:00","modified":"2021-04-15T13:01:53.699133+00:00","commander":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"detected":"2021-04-15T13:01:53.697515+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' + body: '{"data":{"type":"incidents","id":"2072a17e-049d-5292-856a-e2a239f08540","attributes":{"public_id":88122,"title":"Test-Update_an_existing_incident_returns_OK_response-1642844747","resolved":null,"customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":null,"created":"2022-01-22T09:45:47.635427+00:00","modified":"2022-01-22T09:45:47.635427+00:00","commander":null,"detected":"2022-01-22T09:45:47.619673+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":null,"creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"active"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"active","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[]}}}}' code: 201 duration: '' headers: @@ -20,7 +20,7 @@ interactions: status: 201 Created - request: body: | - {"data":{"attributes":{"fields":{"state":{"type":"dropdown","value":"resolved"}},"title":"Test-Update_an_existing_incident_returns_OK_response-1618491713-updated"},"id":"f40f7641-0aa4-57d3-b20d-3d42e9dbacae","type":"incidents"}} + {"data":{"attributes":{"fields":{"state":{"type":"dropdown","value":"resolved"}},"title":"Test-Update_an_existing_incident_returns_OK_response-1642844747-updated"},"id":"2072a17e-049d-5292-856a-e2a239f08540","type":"incidents"}} form: {} headers: Accept: @@ -28,9 +28,9 @@ interactions: Content-Type: - application/json method: PATCH - url: https://api.datadoghq.com/api/v2/incidents/f40f7641-0aa4-57d3-b20d-3d42e9dbacae + url: https://api.datadoghq.com/api/v2/incidents/2072a17e-049d-5292-856a-e2a239f08540 response: - body: '{"data":{"type":"incidents","id":"f40f7641-0aa4-57d3-b20d-3d42e9dbacae","attributes":{"public_id":36220,"title":"Test-Update_an_existing_incident_returns_OK_response-1618491713-updated","resolved":"2021-04-15T13:01:54.391588+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2021-04-15T13:01:53.699133+00:00","modified":"2021-04-15T13:01:54.393224+00:00","commander":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"detected":"2021-04-15T13:01:53.697515+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"dfdb2aa7-2cd6-58e7-9e89-73ba618da747"}]}}}}' + body: '{"data":{"type":"incidents","id":"2072a17e-049d-5292-856a-e2a239f08540","attributes":{"public_id":88122,"title":"Test-Update_an_existing_incident_returns_OK_response-1642844747-updated","resolved":"2022-01-22T09:45:48.385728+00:00","customer_impact_scope":null,"customer_impact_start":null,"customer_impact_end":null,"customer_impacted":false,"notification_handles":null,"last_modified_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"last_modified_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","created":"2022-01-22T09:45:47.635427+00:00","modified":"2022-01-22T09:45:48.387232+00:00","commander":null,"detected":"2022-01-22T09:45:47.619673+00:00","created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","handle":"frog@datadoghq.com","email":"frog@datadoghq.com","name":null,"icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro"}}},"created_by_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","creation_idempotency_key":null,"customer_impact_duration":0,"time_to_detect":0,"time_to_repair":0,"time_to_internal_response":0,"time_to_resolve":0,"fields":{"severity":{"type":"dropdown","value":"UNKNOWN"},"detection_method":{"type":"dropdown","value":"unknown"},"root_cause":{"type":"textbox","value":null},"teams":{"type":"autocomplete","value":null},"state":{"type":"dropdown","value":"resolved"},"services":{"type":"autocomplete","value":null},"summary":{"type":"textbox","value":null}},"field_analytics":null,"severity":"UNKNOWN","state":"resolved","non_datadog_creator":null,"visibility":"public"},"relationships":{"created_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"last_modified_by_user":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"commander_user":{"data":null},"user_defined_fields":{"data":[{"type":"user_defined_field","id":"4148ead2-da45-548e-b6be-8e319bafc425"},{"type":"user_defined_field","id":"66b62f59-48f6-5fee-969a-0886b1db6dcd"},{"type":"user_defined_field","id":"299616f7-8acd-5403-886b-991656d6b982"},{"type":"user_defined_field","id":"ad2b9456-eaec-5bbd-9bae-e502d74e23f8"},{"type":"user_defined_field","id":"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e"},{"type":"user_defined_field","id":"623af0a5-f30c-577e-8146-09b8324bdb2d"},{"type":"user_defined_field","id":"ccfc9e6c-f586-58e5-b502-03c466c72e6f"}]},"integrations":{"data":[]},"attachments":{"data":[]},"responders":{"data":[{"type":"incident_responders","id":"1f4d6942-d382-5d89-85d6-d3c449166cb6"}]}}}}' code: 200 duration: '' headers: @@ -44,13 +44,11 @@ interactions: Accept: - application/json method: DELETE - url: https://api.datadoghq.com/api/v2/incidents/f40f7641-0aa4-57d3-b20d-3d42e9dbacae + url: https://api.datadoghq.com/api/v2/incidents/2072a17e-049d-5292-856a-e2a239f08540 response: body: '' code: 204 duration: '' - headers: - Content-Type: - - application/json + headers: {} status: 204 No Content version: 1 diff --git a/tests/scenarios/features/v2/incidents.feature b/tests/scenarios/features/v2/incidents.feature index 3ae279acfa1..50f09e6b91b 100644 --- a/tests/scenarios/features/v2/incidents.feature +++ b/tests/scenarios/features/v2/incidents.feature @@ -7,28 +7,40 @@ Feature: Incidents And a valid "appKeyAuth" key in the system And an instance of "Incidents" API + @team:DataDog/incident-app + Scenario: Add commander to an incident returns "OK" response + Given operation "UpdateIncident" enabled + And there is a valid "user" in the system + And there is a valid "incident" in the system + And new "UpdateIncident" request + And request contains "incident_id" parameter from "incident.data.id" + And body with value {"data": {"id": "{{incident.data.id}}", "type": "incidents", "relationships": {"commander_user": {"data": {"id": "{{user.data.id}}", "type": "users"}}}}} + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/incident-app Scenario: Create an incident returns "Bad Request" response Given operation "CreateIncident" enabled And new "CreateIncident" request - And body with value {"data": {"attributes": {"customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@test.user@test.com"}], "title": "A test incident title"}, "relationships": {"commander": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}} + And body with value {"data": {"attributes": {"customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@test.user@test.com"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}} When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/incident-app + @team:DataDog/incident-app Scenario: Create an incident returns "CREATED" response Given there is a valid "user" in the system And operation "CreateIncident" enabled And new "CreateIncident" request - And body with value {"data": {"type": "incidents", "attributes": {"title": "{{unique}}", "customer_impacted": false, "fields": {"state": {"type": "dropdown", "value": "resolved"}}}, "relationships": {"commander": {"data": {"type": "{{ user.data.type }}", "id": "{{ user.data.id }}"}}}}} + And body with value {"data": {"type": "incidents", "attributes": {"title": "{{unique}}", "customer_impacted": false, "fields": {"state": {"type": "dropdown", "value": "resolved"}}}, "relationships": {"commander_user": {"data": {"type": "{{ user.data.type }}", "id": "{{ user.data.id }}"}}}}} When the request is sent Then the response status is 201 CREATED + And the response "data.relationships.commander_user.data.id" has the same value as "user.data.id" @generated @skip @team:DataDog/incident-app Scenario: Create an incident returns "Not Found" response Given operation "CreateIncident" enabled And new "CreateIncident" request - And body with value {"data": {"attributes": {"customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@test.user@test.com"}], "title": "A test incident title"}, "relationships": {"commander": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}} + And body with value {"data": {"attributes": {"customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@test.user@test.com"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}} When the request is sent Then the response status is 404 Not Found @@ -48,7 +60,7 @@ Feature: Incidents When the request is sent Then the response status is 404 Not Found - @skip @team:DataDog/incident-app + @team:DataDog/incident-app Scenario: Delete an existing incident returns "OK" response Given operation "DeleteIncident" enabled And there is a valid "incident" in the system @@ -71,7 +83,7 @@ Feature: Incidents When the request is sent Then the response status is 404 Not Found - @skip @team:DataDog/incident-app + @team:DataDog/incident-app Scenario: Get a list of incidents returns "OK" response Given operation "ListIncidents" enabled And there is a valid "incident" in the system @@ -95,7 +107,7 @@ Feature: Incidents When the request is sent Then the response status is 404 Not Found - @skip @team:DataDog/incident-app + @team:DataDog/incident-app Scenario: Get the details of an incident returns "OK" response Given operation "GetIncident" enabled And there is a valid "incident" in the system @@ -105,6 +117,16 @@ Feature: Incidents Then the response status is 200 OK And the response "data.attributes.title" has the same value as "incident.data.attributes.title" + @team:DataDog/incident-app + Scenario: Remove commander from an incident returns "OK" response + Given operation "UpdateIncident" enabled + And there is a valid "incident" in the system + And new "UpdateIncident" request + And request contains "incident_id" parameter from "incident.data.id" + And body with value {"data": {"id": "{{incident.data.id}}", "type": "incidents", "relationships": {"commander_user": {"data": null}}}} + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/incident-app Scenario: Update an existing incident returns "Bad Request" response Given operation "UpdateIncident" enabled @@ -123,7 +145,7 @@ Feature: Incidents When the request is sent Then the response status is 404 Not Found - @skip @team:DataDog/incident-app + @team:DataDog/incident-app Scenario: Update an existing incident returns "OK" response Given operation "UpdateIncident" enabled And there is a valid "incident" in the system diff --git a/tests/scenarios/features/v2/logs.feature b/tests/scenarios/features/v2/logs.feature index b29f532d725..a1b676db48d 100644 --- a/tests/scenarios/features/v2/logs.feature +++ b/tests/scenarios/features/v2/logs.feature @@ -73,7 +73,7 @@ Feature: Logs When the request is sent Then the response status is 200 OK - @integration-only @skip-validation @skip-terraform-config @team:DataDog/logs-backend @team:DataDog/logs-intake + @integration-only @skip-terraform-config @skip-validation @team:DataDog/logs-backend @team:DataDog/logs-intake Scenario: Send deflate logs returns "Request accepted for processing (always 202 empty JSON)." response Given new "SubmitLog" request And body with value [{"ddsource": "nginx", "ddtags": "env:staging,version:5.1", "hostname": "i-012345678", "message": "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", "service": "payment"}] @@ -81,7 +81,7 @@ Feature: Logs When the request is sent Then the response status is 202 Response from server (always 202 empty JSON). - @integration-only @skip-validation @skip-terraform-config @team:DataDog/logs-backend @team:DataDog/logs-intake + @integration-only @skip-terraform-config @skip-validation @team:DataDog/logs-backend @team:DataDog/logs-intake Scenario: Send gzip logs returns "Request accepted for processing (always 202 empty JSON)." response Given new "SubmitLog" request And body with value [{"ddsource": "nginx", "ddtags": "env:staging,version:5.1", "hostname": "i-012345678", "message": "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", "service": "payment"}]