类 HealthView

java.lang.Object
top.wcpe.beacon.agent.api.HealthView

public final class HealthView extends Object
某台服务器的健康视图快照(FR-147 / FR-148)。

由 BeaconScheduling.healthOf(String) 与 BeaconScheduling.selfHealth() 返回, 为本机缓存快照,非实时。reasons 为不可调度原因码列表(可空为空表)。

  • 构造器详细资料

    • HealthView

      public HealthView(String serverId, int score, HealthLevel level, boolean schedulable, List<String> reasons, long sampledAtMs)
  • 方法详细资料

    • serverId

      public String serverId()
      服务器 serverId。
    • score

      public int score()
      健康分(0-100)。
    • level

      public HealthLevel level()
      健康等级。
    • schedulable

      public boolean schedulable()
      是否可调度。
    • reasons

      public List<String> reasons()
      不可调度原因码(只读,可空为空表)。
    • sampledAtMs

      public long sampledAtMs()
      该视图对应的采样时刻(毫秒)。