Skip to content

Commit ac71c1d

Browse files
committed
fix TestAccResourceDataStreamLifecycle
1 parent 3e3b36b commit ac71c1d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

internal/models/models.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,11 @@ type IndexAlias struct {
312312
}
313313

314314
type 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

320322
type Downsampling struct {
@@ -341,6 +343,11 @@ type DataStreamIndex struct {
341343
IndexUUID string `json:"index_uuid"`
342344
}
343345

346+
type DataStreamGlobalRetention struct {
347+
MaxRetention string `json:"max_retention"`
348+
DefaultRetention string `json:"default_retention"`
349+
}
350+
344351
type DataStreamLifecycle struct {
345352
Name string `json:"name"`
346353
Lifecycle LifecycleSettings `json:"lifecycle,omitempty"`

0 commit comments

Comments
 (0)