Class StatusInfo


  • @Serializer("com.netflix.discovery.converters.EntityBodyConverter")
    public class StatusInfo
    extends java.lang.Object
    An utility class for exposing status information of an instance.
    • Method Detail

      • getInstanceInfo

        public com.netflix.appinfo.InstanceInfo getInstanceInfo()
      • isHealthy

        public boolean isHealthy()
      • getGeneralStats

        public java.util.Map<java.lang.String,​java.lang.String> getGeneralStats()
      • getApplicationStats

        public java.util.Map<java.lang.String,​java.lang.String> getApplicationStats()
      • getUpTime

        public static java.lang.String getUpTime()
        Output the amount of time that has elapsed since the given date in the format x days, xx:xx.
        Returns:
        A string representing the formatted interval.
      • getCurrentTimeAsString

        public static java.lang.String getCurrentTimeAsString()