Class GenieCpuHealthIndicator

  • All Implemented Interfaces:
    org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

    public class GenieCpuHealthIndicator
    extends java.lang.Object
    implements org.springframework.boot.actuate.health.HealthIndicator
    Health indicator for system cpu usage. Mark the service out-of-service if it crosses the threshold.
    Since:
    3.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GenieCpuHealthIndicator​(@NotNull HealthProperties healthProperties, @NotNull io.micrometer.core.instrument.MeterRegistry registry, @NotNull org.springframework.scheduling.TaskScheduler taskScheduler)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.actuate.health.Health health()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator

        getHealth
    • Constructor Detail

      • GenieCpuHealthIndicator

        public GenieCpuHealthIndicator​(@NotNull
                                       @NotNull HealthProperties healthProperties,
                                       @NotNull
                                       @NotNull io.micrometer.core.instrument.MeterRegistry registry,
                                       @NotNull
                                       @NotNull org.springframework.scheduling.TaskScheduler taskScheduler)
        Constructor.
        Parameters:
        healthProperties - The maximum physical memory threshold
        registry - Registry
        taskScheduler - task scheduler
    • Method Detail

      • health

        public org.springframework.boot.actuate.health.Health health()
        Specified by:
        health in interface org.springframework.boot.actuate.health.HealthIndicator