Package top.wcpe.beacon.agent.api
Class HealthView
java.lang.Object
top.wcpe.beacon.agent.api.HealthView
某台服务器的健康视图快照(FR-147 / FR-148)。
由 BeaconScheduling.healthOf(String) 与 BeaconScheduling.selfHealth() 返回,
为本机缓存快照,非实时。reasons 为不可调度原因码列表(可空为空表)。
-
Constructor Summary
ConstructorsConstructorDescriptionHealthView(String serverId, int score, HealthLevel level, boolean schedulable, List<String> reasons, long sampledAtMs) -
Method Summary
-
Constructor Details
-
HealthView
public HealthView(String serverId, int score, HealthLevel level, boolean schedulable, List<String> reasons, long sampledAtMs)
-
-
Method Details
-
serverId
服务器 serverId。 -
score
public int score()健康分(0-100)。 -
level
健康等级。 -
schedulable
public boolean schedulable()是否可调度。 -
reasons
不可调度原因码(只读,可空为空表)。 -
sampledAtMs
public long sampledAtMs()该视图对应的采样时刻(毫秒)。
-