AS AgentScopeAPI 手册 / API Reference

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;

返回Returns boolean
返回布尔值,表示判断结果。The healthy.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:16

getReason

public java.lang.String getReason()

获取推理。

string reason = 2;

返回Returns java.lang.String
推理。The reason.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:22

getReasonBytes

public com.google.protobuf.ByteString getReasonBytes()

获取推理字节。

string reason = 2;

返回Returns com.google.protobuf.ByteString
字节用于推理。The bytes for reason.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:27–28

getActiveSessions

public int getActiveSessions()

获取 getActiveSessions。

int32 active_sessions = 3;

返回Returns int
返回数值结果。The activeSessions.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:34

getCpuUsage

public double getCpuUsage()

获取 getCpuUsage。

double cpu_usage = 4;

返回Returns double
返回数值结果。The cpuUsage.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:40

getMemoryUsage

public double getMemoryUsage()

获取记忆用量。

double memory_usage = 5;

返回Returns double
返回数值结果。The memoryUsage.
源码Source io/agentscope/aistio/proto/InstanceHealthOrBuilder.java:46
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.