Skip to content

Commit 5c57df9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Adding when full option to the Memory Buffer options as well (#2994)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 4d8525c commit 5c57df9

3 files changed

Lines changed: 30 additions & 6 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40869,6 +40869,8 @@ components:
4086940869
type: integer
4087040870
type:
4087140871
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40872+
when_full:
40873+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087240874
type: object
4087340875
ObservabilityPipelineMemoryBufferSizeOptions:
4087440876
description: Options for configuring a memory buffer by queue length.
@@ -40880,6 +40882,8 @@ components:
4088040882
type: integer
4088140883
type:
4088240884
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40885+
when_full:
40886+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088340887
type: object
4088440888
ObservabilityPipelineMetadataEntry:
4088540889
description: A custom metadata entry.

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ class ObservabilityPipelineMemoryBufferOptions
2727
# The type of the buffer that will be configured, a memory buffer.
2828
attr_accessor :type
2929

30+
# Behavior when the buffer is full (block and stop accepting new events, or drop new events)
31+
attr_accessor :when_full
32+
3033
attr_accessor :additional_properties
3134

3235
# Attribute mapping from ruby-style variable name to JSON key.
3336
# @!visibility private
3437
def self.attribute_map
3538
{
3639
:'max_size' => :'max_size',
37-
:'type' => :'type'
40+
:'type' => :'type',
41+
:'when_full' => :'when_full'
3842
}
3943
end
4044

@@ -43,7 +47,8 @@ def self.attribute_map
4347
def self.openapi_types
4448
{
4549
:'max_size' => :'Integer',
46-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
50+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51+
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
4752
}
4853
end
4954

@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
if attributes.key?(:'type')
7378
self.type = attributes[:'type']
7479
end
80+
81+
if attributes.key?(:'when_full')
82+
self.when_full = attributes[:'when_full']
83+
end
7584
end
7685

7786
# Returns the object in the form of hash, with additionalProperties support.
@@ -102,14 +111,15 @@ def ==(o)
102111
self.class == o.class &&
103112
max_size == o.max_size &&
104113
type == o.type &&
114+
when_full == o.when_full &&
105115
additional_properties == o.additional_properties
106116
end
107117

108118
# Calculates hash code according to all attributes.
109119
# @return [Integer] Hash code
110120
# @!visibility private
111121
def hash
112-
[max_size, type, additional_properties].hash
122+
[max_size, type, when_full, additional_properties].hash
113123
end
114124
end
115125
end

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ class ObservabilityPipelineMemoryBufferSizeOptions
2727
# The type of the buffer that will be configured, a memory buffer.
2828
attr_accessor :type
2929

30+
# Behavior when the buffer is full (block and stop accepting new events, or drop new events)
31+
attr_accessor :when_full
32+
3033
attr_accessor :additional_properties
3134

3235
# Attribute mapping from ruby-style variable name to JSON key.
3336
# @!visibility private
3437
def self.attribute_map
3538
{
3639
:'max_events' => :'max_events',
37-
:'type' => :'type'
40+
:'type' => :'type',
41+
:'when_full' => :'when_full'
3842
}
3943
end
4044

@@ -43,7 +47,8 @@ def self.attribute_map
4347
def self.openapi_types
4448
{
4549
:'max_events' => :'Integer',
46-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
50+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51+
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
4752
}
4853
end
4954

@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
if attributes.key?(:'type')
7378
self.type = attributes[:'type']
7479
end
80+
81+
if attributes.key?(:'when_full')
82+
self.when_full = attributes[:'when_full']
83+
end
7584
end
7685

7786
# Returns the object in the form of hash, with additionalProperties support.
@@ -102,14 +111,15 @@ def ==(o)
102111
self.class == o.class &&
103112
max_events == o.max_events &&
104113
type == o.type &&
114+
when_full == o.when_full &&
105115
additional_properties == o.additional_properties
106116
end
107117

108118
# Calculates hash code according to all attributes.
109119
# @return [Integer] Hash code
110120
# @!visibility private
111121
def hash
112-
[max_events, type, additional_properties].hash
122+
[max_events, type, when_full, additional_properties].hash
113123
end
114124
end
115125
end

0 commit comments

Comments
 (0)