InstanceHealthOrBuilder
public interface InstanceHealthOrBuilder extends com.google.protobuf.MessageOrBuilder
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:8–47定义实例健康状态或构建器契约的接口。位于 io.agentscope.aistio.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getHealthy、getReason、getReasonBytes、getActiveSessions、getCpuUsage、getMemoryUsage。
An interface in io.agentscope.aistio.proto that defines the contract for components that deploys, schedules and serves agents. Declared in io.agentscope.aistio.proto. Implements com.google.protobuf.MessageOrBuilder.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean getHealthy() | 获取 `getHealthy`。 `bool healthy = 1;` |
public java.lang.String getReason() | 获取推理。 `string reason = 2;` |
public com.google.protobuf.ByteString getReasonBytes() | 获取推理字节。 `string reason = 2;` |
public int getActiveSessions() | 获取 `getActiveSessions`。 `int32 active_sessions = 3;` |
public double getCpuUsage() | 获取 `getCpuUsage`。 `double cpu_usage = 4;` |
public double getMemoryUsage() | 获取记忆用量。 `double memory_usage = 5;` |
方法详情Method Detail
getHealthy
public boolean getHealthy()
获取 getHealthy。
bool healthy = 1;
boolean返回布尔值,表示判断结果。The healthy.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:16getReason
public java.lang.String getReason()
获取推理。
string reason = 2;
java.lang.String推理。The reason.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:22getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()
获取推理字节。
string reason = 2;
com.google.protobuf.ByteString字节用于推理。The bytes for reason.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:27–28getActiveSessions
public int getActiveSessions()
获取 getActiveSessions。
int32 active_sessions = 3;
int返回数值结果。The activeSessions.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:34getCpuUsage
public double getCpuUsage()
获取 getCpuUsage。
double cpu_usage = 4;
double返回数值结果。The cpuUsage.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:40getMemoryUsage
public double getMemoryUsage()
获取记忆用量。
double memory_usage = 5;
double返回数值结果。The memoryUsage.
源码Source
io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:46