Sections
Pass in a list of indices or snapshots. Return a list of objects older than n time_units matching prefix, timestring, and suffix.
Parameters: |
|
---|---|
Return type: | generator object (list of strings) |
Yield a list of indices to delete based on space consumed, starting with the oldest.
Parameters: |
|
---|---|
Return type: | generator object (list of strings) |
Return a regex string based on a provided strftime timestring.
Parameters: | timestring – An strftime pattern |
---|---|
Return type: | Regex as string |
Return the datetime extracted from the index name, which is the index creation time.
Parameters: |
|
---|---|
Return type: | Datetime object |
Return datetime object for # of full months older than month_count from now, or utc_now, if provided.
Parameters: |
|
---|---|
Return type: | Datetime object |
Find the cutoff time based on older_than and time_unit.
Parameters: |
|
---|---|
Return type: | Datetime object |
Return information about the specified alias.
Parameters: |
|
---|---|
Return type: | list of strings |
Return a sorted list of indices matching prefix and suffix and optionally filtered by exclude_pattern.
Parameters: |
|
---|---|
Return type: | list of strings |
Return a list of indices matching prefix and suffix or snapshots matching snapshot_prefix.
Can optionally exclude by regular expression pattern with exclude_pattern.
Parameters: |
|
---|---|
Return type: | list of strings |
Return configuration information for the indicated repository.
Parameters: |
|
---|---|
Return type: | dict |
Return a tuple of (shardcount, segmentcount) from the provided index_name.
Parameters: |
|
---|---|
Return type: | tuple |
Get _all snapshots containing snapshot_prefix from repository and return a list.
Parameters: |
|
---|---|
Return type: | list of strings |
Return information about a snapshot (or a comma-separated list of snapshots)
Parameters: |
|
---|---|
Return type: | dict |
Return the ES version number as a tuple. Omits trailing tags like -dev, or Beta
Parameters: | client – The Elasticsearch client connection |
---|---|
Return type: | tuple |
Perform the op on indices or snapshots in the object_list
Note
All kwargs are passed on to the specified op.
Any arg the op needs must be passed in kwargs.
Parameters: |
|
---|