index-management icon indicating copy to clipboard operation
index-management copied to clipboard

Show conditions in info object for transitions and rollover actions

Open adityaj1107 opened this issue 3 years ago • 2 comments

Issue by dbbaughe Friday Apr 03, 2020 at 16:39 GMT Originally opened as https://github.com/opendistro-for-elasticsearch/index-management/issues/171


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"
        },
    }
}

adityaj1107 avatar Jun 03 '21 00:06 adityaj1107

Comment by dbbaughe Wednesday Apr 29, 2020 at 03:19 GMT


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.

adityaj1107 avatar Jun 03 '21 00:06 adityaj1107

Can I please be assigned to this

AryaMedapati avatar Nov 17 '23 23:11 AryaMedapati