minio/cmd/scannermetric_string.go
Klaus Post 57f84a8b4c
Add abandoned folder scanning to metrics (#18076)
Include object and versions heal scan times when checking non-empty abandoned folders.

Furthermore don't add delay between healing versions, instead do one per object wait.
2023-09-24 22:15:31 -07:00

45 lines
1.7 KiB
Go

// Code generated by "stringer -type=scannerMetric -trimprefix=scannerMetric data-scanner-metric.go"; DO NOT EDIT.
package cmd
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[scannerMetricReadMetadata-0]
_ = x[scannerMetricCheckMissing-1]
_ = x[scannerMetricSaveUsage-2]
_ = x[scannerMetricApplyAll-3]
_ = x[scannerMetricApplyVersion-4]
_ = x[scannerMetricTierObjSweep-5]
_ = x[scannerMetricHealCheck-6]
_ = x[scannerMetricILM-7]
_ = x[scannerMetricCheckReplication-8]
_ = x[scannerMetricYield-9]
_ = x[scannerMetricCleanAbandoned-10]
_ = x[scannerMetricApplyNonCurrent-11]
_ = x[scannerMetricHealAbandonedVersion-12]
_ = x[scannerMetricStartTrace-13]
_ = x[scannerMetricScanObject-14]
_ = x[scannerMetricHealAbandonedObject-15]
_ = x[scannerMetricLastRealtime-16]
_ = x[scannerMetricScanFolder-17]
_ = x[scannerMetricScanCycle-18]
_ = x[scannerMetricScanBucketDrive-19]
_ = x[scannerMetricCompactFolder-20]
_ = x[scannerMetricLast-21]
}
const _scannerMetric_name = "ReadMetadataCheckMissingSaveUsageApplyAllApplyVersionTierObjSweepHealCheckILMCheckReplicationYieldCleanAbandonedApplyNonCurrentHealAbandonedVersionStartTraceScanObjectHealAbandonedObjectLastRealtimeScanFolderScanCycleScanBucketDriveCompactFolderLast"
var _scannerMetric_index = [...]uint8{0, 12, 24, 33, 41, 53, 65, 74, 77, 93, 98, 112, 127, 147, 157, 167, 186, 198, 208, 217, 232, 245, 249}
func (i scannerMetric) String() string {
if i >= scannerMetric(len(_scannerMetric_index)-1) {
return "scannerMetric(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _scannerMetric_name[_scannerMetric_index[i]:_scannerMetric_index[i+1]]
}