Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Show conditions in info object for transitions and rollover actions #171

Open
dbbaughe opened this issue Apr 3, 2020 · 1 comment
Open
Labels
enhancement An improvement on the existing feature’s functionalities

Comments

@dbbaughe
Copy link
Contributor

dbbaughe commented Apr 3, 2020

Currently we only show information like:
"Attempting to transition"
"Attempting to rollover"
"Rolled over index"
"Transitioning to "

This leads to these actions behaving like a black box in terms of what information they are acting on.
The default rollover API has to be called and will return the results of the evaluation (true/false) for each condition specified.

Suggesting we add something like below to the "info" map for each of these steps that are attempting to rollover or transition.

"info": {
    "message": "Attempting to rollover",
    "conditions": {
        "min_index_age": {
            "value": false
            "condition": "7d"
            "current": "6.35d"
        },
        "min_size": {
            "value": false
            "condition": "25gb"
            "current": "20.46gb"
        },
    }
}
@dbbaughe dbbaughe added the enhancement An improvement on the existing feature’s functionalities label Apr 3, 2020
@dbbaughe
Copy link
Contributor Author

This has been half completed.
The rollover conditions have been added as shown in linked issue that was merged.
The transition conditions still need to be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement An improvement on the existing feature’s functionalities
Projects
None yet
Development

No branches or pull requests

1 participant