public class ServiceHealthReportPojo extends HealthAndAlertInfoPojo
The Aggregator micro-service uses the reports of the other micro-services, and computes its aggregated
Modifier and Type | Class and Description |
---|---|
static class |
ServiceHealthReportPojo.Service |
Modifier and Type | Field and Description |
---|---|
ServiceHealthReportPojo.Service |
service
Identifies the micro-service that produced this health status information
|
static String |
SERVICE_TYPE_PROPERTY |
alerts, health, health_code, tenant, TYPE_PROPERTY_NAME, update_ts
Constructor and Description |
---|
ServiceHealthReportPojo()
Constructor for deserialization
|
ServiceHealthReportPojo(String tenant,
ServiceHealthReportPojo.Service service) |
Modifier and Type | Method and Description |
---|---|
String |
getAsKeyValuesStringForLogs()
Must be provided by concrete subclasses, in order to include all appropriate
fields to the user for
troubleshooting purpose
health level and alerts should not be reported, because their logging is usually
sufficiently done through the addAlert(Health, String, Object...) method.
|
static String |
getServicesHealthIndexPrefix(String healthIndexPrefix)
Compute the ES index prefix for storing the health information about punchplatform tenant sub-fonctions
(tenant kafka topics, tenant Elasticsearch Indices, tenant Channel latencies).
|
ServiceHealthReportPojo |
validate() |
public static final String SERVICE_TYPE_PROPERTY
public ServiceHealthReportPojo.Service service
public ServiceHealthReportPojo(String tenant, ServiceHealthReportPojo.Service service)
public ServiceHealthReportPojo()
public String getAsKeyValuesStringForLogs()
HealthAndAlertInfoPojo
getAsKeyValuesStringForLogs
in class HealthAndAlertInfoPojo
public ServiceHealthReportPojo validate()
public static String getServicesHealthIndexPrefix(String healthIndexPrefix)
This prefix can then be used to derivate 'daily indices' names
healthIndexPrefix
- - the prefix of all health indices for the tenant. The returned value will start with this prefix.Copyright © 2014–2022. All rights reserved.