server

package
v0.0.0-...-0490640 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLifecycleManageableServer

type DataLifecycleManageableServer struct {
	// contains filtered or unexported fields
}

func NewDataLifecycleManageableServer

func NewDataLifecycleManageableServer(purgeClient es.EsSidecarClient, purgePolicies []PurgePolicy) *DataLifecycleManageableServer

func (*DataLifecycleManageableServer) Purge

type PurgePolicy

type PurgePolicy struct {
	// PurgeOlderThanDays describes how long we keep data for either time series or non-time series indices. Anything
	// older than this is allowed to be regularly removed.
	PurgeOlderThanDays int32
	// IndexName is the base name of the time series index that should be purged
	IndexName string
	// Don't delete the entire index for non-time series databases; just delete documents over a given age from the index
	IsNonTimeSeries bool
	// IMPLEMENTED FOR NON-TIME SERIES INDICES ONLY!
	// Optional field. Purge documents based on the time value in this field rather than
	// the default field, end_time. Values for this field come from client purge policies.
	// If this field is empty, purge defaults to end_time.
	CustomPurgeField string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL