public class ElasticsearchHousekeepingActionSettingPojo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ElasticsearchHousekeepingActionSettingPojo.ActionType
The values of this enum are used within Jinja2 template of elasticsearch curator
configuration file (see src/main/resources in punchplatform-es-housekeeper-service)
|
Modifier and Type | Field and Description |
---|---|
String |
box_type
This parameter is mandatory and meaningful only with 'relocate_indices' action type.
|
String |
indices_naming_time_format
Optional setting.
|
String |
indices_prefix
The action will only apply on indices which names start with this prefix.
|
Integer |
new_replica_count
This parameter is mandatory and meaningful only with 'change_replica_count' action type.
|
Integer |
older_than_days
Optional setting
The action will only apply on indices created at least this number of days before now
|
ElasticsearchHousekeepingActionSettingPojo.ActionType |
type
The kind of housekeeping action to conduct on indices
|
Constructor and Description |
---|
ElasticsearchHousekeepingActionSettingPojo() |
Modifier and Type | Method and Description |
---|---|
void |
validate()
The validate method is in charge of checking for mandatory properties,
and possibly computing defaults value.
|
public ElasticsearchHousekeepingActionSettingPojo.ActionType type
public Integer older_than_days
public String indices_naming_time_format
When this option is present, then the condition on the age of the indice will not be applied to actual creation date of the indice, but on the date implied by the name of the indice. The format of date/time inside the indice naming convention is then provided by this option.
This setting must be a valid Python strftime string. It is used to match and extract the timestamp in an index or snapshot name, whatever the place of the date/time string inside the indice name. For more detail on this setting, please refer to https://www.elastic.co/guide/en/elasticsearch/client/curator/current/fe_timestring.html#_strftime_2
public String indices_prefix
public Integer new_replica_count
public String box_type
public ElasticsearchHousekeepingActionSettingPojo()
public void validate()
However make sure at the end you always invoke super.validate()
Copyright © 2014–2023. All rights reserved.