Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Health Check Core 1.1.0
-
None
Description
Add a SlingHealthCheck annotation (similar to SlingServlet). The metatype property should set to true per default since its probably common to configure healthchecks. Usage examples:
Examples
@SlingHealthCheck(name = BundlesStartedCheck.HC_NAME, label = "Apache Sling Health Check - " + BundlesStartedCheck.HC_NAME, description = "Checks whether all bundles are started.", tags = "osgi") @SlingHealthCheck(name = DiskSpaceCheck.HC_NAME, label = "Apache Sling Health Check - " + DiskSpaceCheck.HC_NAME, description = "Checks whether enough disk space is available.", tags = "resources", configurationFactory = true, configurationPolicy = ConfigurationPolicy.REQUIRE)