Package com.github.ambry.server
Interface AmbryHealthReport
-
public interface AmbryHealthReport
Health report for reporting various stats within a node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAggregateIntervalInMinutes()
Get the cluster wide aggregate period for the health report in minutes.java.util.Map<java.lang.String,java.lang.String>
getRecentHealthReport()
Get the most recent health report in the form of aMap
.java.lang.String
getReportName()
Get the name of the health report.java.lang.String
getStatsFieldName()
Get the field name (accessor) to fetch stats in the health report.StatsReportType
getStatsReportType()
Get the type of stats report specified in this health report.
-
-
-
Method Detail
-
getStatsFieldName
java.lang.String getStatsFieldName()
Get the field name (accessor) to fetch stats in the health report.- Returns:
- the key in the health report that holds the stats
-
getReportName
java.lang.String getReportName()
Get the name of the health report. One Health Report can have many fields andgetStatsFieldName()
is one such field. The report's structure isMap
.- Returns:
- the name of the health report
-
getStatsReportType
StatsReportType getStatsReportType()
Get the type of stats report specified in this health report. The stats report type is defined inStatsReportType
- Returns:
- the type of stats represented by this health report
-
getRecentHealthReport
java.util.Map<java.lang.String,java.lang.String> getRecentHealthReport()
Get the most recent health report in the form of aMap
.- Returns:
- a
Map
of String to String containing the content of the health report
-
getAggregateIntervalInMinutes
long getAggregateIntervalInMinutes()
Get the cluster wide aggregate period for the health report in minutes.- Returns:
- the cluster wide aggregate period in minutes
-
-