Add basic scanner metrics (#13317)

Add number of objects/versions/folders scanned as well as ILM action outcomes.
This commit is contained in:
Klaus Post
2021-10-02 09:31:05 -07:00
committed by GitHub
parent f3aeed77e5
commit 75699a3825
6 changed files with 152 additions and 2 deletions

View File

@@ -15,11 +15,12 @@ func _() {
_ = x[TransitionVersionAction-4]
_ = x[DeleteRestoredAction-5]
_ = x[DeleteRestoredVersionAction-6]
_ = x[ActionCount-7]
}
const _Action_name = "NoneActionDeleteActionDeleteVersionActionTransitionActionTransitionVersionActionDeleteRestoredActionDeleteRestoredVersionAction"
const _Action_name = "NoneActionDeleteActionDeleteVersionActionTransitionActionTransitionVersionActionDeleteRestoredActionDeleteRestoredVersionActionActionCount"
var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127}
var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 138}
func (i Action) String() string {
if i < 0 || i >= Action(len(_Action_index)-1) {

View File

@@ -63,6 +63,9 @@ const (
DeleteRestoredAction
// DeleteRestoredVersionAction deletes a particular version that was temporarily restored
DeleteRestoredVersionAction
// ActionCount must be the last action and shouldn't be used as a regular action.
ActionCount
)
// Lifecycle - Configuration for bucket lifecycle.