Module org.elasticsearch.server
Package org.elasticsearch.snapshots
Class RepositoryIntegrityHealthIndicatorService
java.lang.Object
org.elasticsearch.snapshots.RepositoryIntegrityHealthIndicatorService
- All Implemented Interfaces:
HealthIndicatorService
public class RepositoryIntegrityHealthIndicatorService
extends Object
implements HealthIndicatorService
This indicator reports health for snapshot repositories.
Indicator will report RED status when any of snapshot repositories is marked as corrupted.
Data might not be backed up in such cases.
Corrupted repository most likely need to be manually cleaned and a new snapshot needs to be created from scratch.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Diagnosis.Definition
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.elasticsearch.health.HealthIndicatorService
MAX_AFFECTED_RESOURCES_COUNT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculate
(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.health.HealthIndicatorService
calculate, createIndicator
-
Field Details
-
NAME
- See Also:
-
HELP_URL
- See Also:
-
REPOSITORY_CORRUPTED_IMPACT_ID
- See Also:
-
CORRUPTED_REPOSITORY
-
NO_REPOS_CONFIGURED
- See Also:
-
NO_CORRUPT_REPOS
- See Also:
-
-
Constructor Details
-
RepositoryIntegrityHealthIndicatorService
-
-
Method Details
-
name
- Specified by:
name
in interfaceHealthIndicatorService
-
calculate
public HealthIndicatorResult calculate(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) - Specified by:
calculate
in interfaceHealthIndicatorService
-