Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 149 additions & 2 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions features/v2/observability_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ Feature: Observability Pipelines
And the response "data.attributes.config.destinations" has length 1
And the response "data.attributes.config.destinations[0].id" is equal to "updated-datadog-logs-destination-id"

@team:DataDog/observability-pipelines
Scenario: Validate a metrics pipeline with opentelemetry source returns "OK" response
Given new "ValidatePipeline" request
And body with value {"data": {"attributes": {"config": {"pipeline_type": "metrics", "destinations": [{"id": "datadog-metrics-destination", "inputs": ["my-processor-group"], "type": "datadog_metrics"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "*", "inputs": ["opentelemetry-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "env:production", "type": "filter"}]}], "sources": [{"id": "opentelemetry-source", "type": "opentelemetry"}]}, "name": "Metrics OTel Pipeline"}, "type": "pipelines"}}
When the request is sent
Then the response status is 200 OK
And the response "errors" has length 0

@team:DataDog/observability-pipelines
Scenario: Validate an observability pipeline returns "Bad Request" response
Given new "ValidatePipeline" request
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Attachment
# Attachment data from a response.
attr_accessor :data

#
# A list of related objects included in the response.
attr_accessor :included

attr_accessor :additional_properties
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/attachment_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ module DatadogAPIClient::V2
class AttachmentArray
include BaseGenericModel

#
# An array of attachment data objects.
attr_reader :data

#
# A list of related objects included in the response.
attr_accessor :included

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CreateAttachmentRequestData
# The attributes for creating an attachment.
attr_accessor :attributes

#
# The unique identifier of the attachment.
attr_accessor :id

# The incident attachment resource type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Request object for creating a component.
class CreateComponentRequest
include BaseGenericModel

#
# The data object for creating a component.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object for creating a component.
class CreateComponentRequestData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A component to be created within a group.
class CreateComponentRequestDataAttributesComponentsItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class CreateComponentRequestDataRelationships
include BaseGenericModel

#
# The group to create the component within.
attr_accessor :group

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# The group to create the component within.
class CreateComponentRequestDataRelationshipsGroup
include BaseGenericModel

#
# The data object identifying the group to create the component within.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object identifying the group to create the component within.
class CreateComponentRequestDataRelationshipsGroupData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Request object for creating a degradation.
class CreateDegradationRequest
include BaseGenericModel

#
# The data object for creating a degradation.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object for creating a degradation.
class CreateDegradationRequestData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
require 'time'

module DatadogAPIClient::V2
#
# A component affected by a degradation.
class CreateDegradationRequestDataAttributesComponentsAffectedItems
include BaseGenericModel

# The ID of the component. Must be a component of type `component`.
attr_reader :id

#
# The name of the component.
attr_accessor :name

# The status of the component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Request object for creating a maintenance.
class CreateMaintenanceRequest
include BaseGenericModel

#
# The data object for creating a maintenance.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object for creating a maintenance.
class CreateMaintenanceRequestData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A component affected by a maintenance.
class CreateMaintenanceRequestDataAttributesComponentsAffectedItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Request object for creating a status page.
class CreateStatusPageRequest
include BaseGenericModel

#
# The data object for creating a status page.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object for creating a status page.
class CreateStatusPageRequestData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A component to be created on a status page.
class CreateStatusPageRequestDataAttributesComponentsItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A grouped component to be created within a status page component group.
class CreateStatusPageRequestDataAttributesComponentsItemsComponentsItems
include BaseGenericModel

Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/degradation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Response object for a single degradation.
class Degradation
include BaseGenericModel

#
# The data object for a degradation.
attr_accessor :data

# The included related resources of a degradation. Client must explicitly request these resources by name in the `include` query parameter.
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/degradation_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# Response object for a list of degradations.
class DegradationArray
include BaseGenericModel

#
# A list of degradation data objects.
attr_reader :data

# The included related resources of a degradation. Client must explicitly request these resources by name in the `include` query parameter.
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/degradation_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# The data object for a degradation.
class DegradationData
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A component affected by a degradation.
class DegradationDataAttributesComponentsAffectedItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A status update recorded during a degradation.
class DegradationDataAttributesUpdatesItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
#
# A component affected at the time of a degradation update.
class DegradationDataAttributesUpdatesItemsComponentsAffectedItems
include BaseGenericModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ module DatadogAPIClient::V2
class DegradationDataRelationships
include BaseGenericModel

#
# The Datadog user who created the degradation.
attr_accessor :created_by_user

#
# The Datadog user who last modified the degradation.
attr_accessor :last_modified_by_user

#
# The status page the degradation belongs to.
attr_accessor :status_page

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
#
# The Datadog user who created the degradation.
class DegradationDataRelationshipsCreatedByUser
include BaseGenericModel

#
# The data object identifying the Datadog user who created the degradation.
attr_reader :data

attr_accessor :additional_properties
Expand Down
Loading
Loading