@@ -312,9 +312,11 @@ type IndexAlias struct {
312312}
313313
314314type  LifecycleSettings  struct  {
315- 	DataRetention  string          `json:"data_retention,omitempty"` 
316- 	Enabled        bool            `json:"enabled,omitempty"` 
317- 	Downsampling   []Downsampling  `json:"downsampling,omitempty"` 
315+ 	DataRetention          string          `json:"data_retention,omitempty"` 
316+ 	Enabled                bool            `json:"enabled,omitempty"` 
317+ 	EffectiveRetention     string          `json:"effective_retention,omitempty"` 
318+ 	RetentionDeterminedBy  string          `json:"retention_determined_by,omitempty"` 
319+ 	Downsampling           []Downsampling  `json:"downsampling,omitempty"` 
318320}
319321
320322type  Downsampling  struct  {
@@ -341,6 +343,16 @@ type DataStreamIndex struct {
341343	IndexUUID  string  `json:"index_uuid"` 
342344}
343345
346+ type  DataStreamLifecycleResponse  struct  {
347+ 	DataStreams      []DataStreamLifecycle      `json:"data_streams"` 
348+ 	GlobalRetention  DataStreamGlobalRetention  `json:"global_retention"` 
349+ }
350+ 
351+ type  DataStreamGlobalRetention  struct  {
352+ 	MaxRetention      string  `json:"max_retention"` 
353+ 	DefaultRetention  string  `json:"default_retention"` 
354+ }
355+ 
344356type  DataStreamLifecycle  struct  {
345357	Name       string             `json:"name"` 
346358	Lifecycle  LifecycleSettings  `json:"lifecycle,omitempty"` 
0 commit comments