@ExportedBean public class HealthZone extends DerivedPageZone<HealthCheck,HealthCheckReport> implements hudson.model.Describable<HealthZone>
HealthZone is a named container for HealthChecks. The main
use case for separating the checks into different grouping is to allow for
different severity levels, different listeners, etc... For examples,
critical health metrics may require immediate actions, while low severity
ones may need a reaction only once a day.
Each HealthZone has a unique URL "/health/zone/${zoneName}".| Modifier and Type | Class and Description |
|---|---|
static class |
HealthZone.DescriptorImpl
Descriptor of HealthZone. |
static class |
HealthZone.ErrorApi
An implementation of
Api that can give a better error message for
our use case. |
| Constructor and Description |
|---|
HealthZone(String name,
List<HealthCheck> healthChecks) |
| Modifier and Type | Method and Description |
|---|---|
protected HealthCheckReport |
derivePageComponent(HealthCheck check)
Return the component's Report indicating the success of the derivation and
any result obtained from it.
|
hudson.model.Api |
getApi() |
HealthCheckReport |
getCombinedReport() |
hudson.model.Result |
getCombinedResult() |
hudson.model.Descriptor<HealthZone> |
getDescriptor() |
static List<hudson.model.Descriptor<HealthZone>> |
getDescriptors() |
String |
getDisplayName() |
protected String |
namePageComponent(HealthCheck component)
Provide the key by which a
Component's derived result will be
indexed and displayed to the user. |
getComponents, getName, getReports@DataBoundConstructor public HealthZone(String name, List<HealthCheck> healthChecks)
name - the name of this HealthZone.healthChecks - a list of HealthChecks to contain.public String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic hudson.model.Api getApi()
protected String namePageComponent(HealthCheck component)
DerivedPageZoneComponent's derived result will be
indexed and displayed to the user. For examples, a name passed to the
component's constructor on page configuration, or the name of the component
class when there will be no reuse within a page.namePageComponent in class DerivedPageZone<HealthCheck,HealthCheckReport>protected HealthCheckReport derivePageComponent(HealthCheck check)
derivePageComponent in class DerivedPageZone<HealthCheck,HealthCheckReport>public HealthCheckReport getCombinedReport()
HealthCheck results.public hudson.model.Result getCombinedResult()
public static List<hudson.model.Descriptor<HealthZone>> getDescriptors()
Descriptor for HealthZones.@Nullable public hudson.model.Descriptor<HealthZone> getDescriptor()
getDescriptor in interface hudson.model.Describable<HealthZone>Copyright © 2004-2015. All Rights Reserved.