1717 from datadog_api_client .v2 .model .observability_pipeline_buffer_options_memory_type import (
1818 ObservabilityPipelineBufferOptionsMemoryType ,
1919 )
20+ from datadog_api_client .v2 .model .observability_pipeline_buffer_options_when_full import (
21+ ObservabilityPipelineBufferOptionsWhenFull ,
22+ )
2023
2124
2225class ObservabilityPipelineMemoryBufferSizeOptions (ModelNormal ):
@@ -25,21 +28,27 @@ def openapi_types(_):
2528 from datadog_api_client .v2 .model .observability_pipeline_buffer_options_memory_type import (
2629 ObservabilityPipelineBufferOptionsMemoryType ,
2730 )
31+ from datadog_api_client .v2 .model .observability_pipeline_buffer_options_when_full import (
32+ ObservabilityPipelineBufferOptionsWhenFull ,
33+ )
2834
2935 return {
3036 "max_events" : (int ,),
3137 "type" : (ObservabilityPipelineBufferOptionsMemoryType ,),
38+ "when_full" : (ObservabilityPipelineBufferOptionsWhenFull ,),
3239 }
3340
3441 attribute_map = {
3542 "max_events" : "max_events" ,
3643 "type" : "type" ,
44+ "when_full" : "when_full" ,
3745 }
3846
3947 def __init__ (
4048 self_ ,
4149 max_events : Union [int , UnsetType ] = unset ,
4250 type : Union [ObservabilityPipelineBufferOptionsMemoryType , UnsetType ] = unset ,
51+ when_full : Union [ObservabilityPipelineBufferOptionsWhenFull , UnsetType ] = unset ,
4352 ** kwargs ,
4453 ):
4554 """
@@ -50,9 +59,14 @@ def __init__(
5059
5160 :param type: The type of the buffer that will be configured, a memory buffer.
5261 :type type: ObservabilityPipelineBufferOptionsMemoryType, optional
62+
63+ :param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
64+ :type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
5365 """
5466 if max_events is not unset :
5567 kwargs ["max_events" ] = max_events
5668 if type is not unset :
5769 kwargs ["type" ] = type
70+ if when_full is not unset :
71+ kwargs ["when_full" ] = when_full
5872 super ().__init__ (kwargs )
0 commit comments