InstanceHealth
public final class InstanceHealth extends com.google.protobuf.GeneratedMessage implements InstanceHealthOrBuilder
io/agentscope/aistio/proto/InstanceHealth.java:15–777实例健康状态,承载智能体的部署、调度与服务化运行。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage,实现 InstanceHealthOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、getHealthy、getReason、getReasonBytes、getActiveSessions。
Instance health reported by data plane
Protobuf type agentscope.protocol.v1.InstanceHealth
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 ```
Instance health reported by data plane |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
HEALTHY_FIELD_NUMBERstaticfinal | int | HEALTHY FIELD 数量字段。 The HEALTHY FIELD NUMBER field. |
REASON_FIELD_NUMBERstaticfinal | int | 推理 FIELD 数量字段。 The REASON FIELD NUMBER field. |
ACTIVE_SESSIONS_FIELD_NUMBERstaticfinal | int | ACTIVE 会话 FIELD 数量字段。 The ACTIVE SESSIONS FIELD NUMBER field. |
CPU_USAGE_FIELD_NUMBERstaticfinal | int | CPU 用量 FIELD 数量字段。 The CPU USAGE FIELD NUMBER field. |
MEMORY_USAGE_FIELD_NUMBERstaticfinal | int | 记忆用量 FIELD 数量字段。 The MEMORY USAGE FIELD NUMBER field. |
方法摘要Method Summary
字段详情Field Detail
HEALTHY_FIELD_NUMBER
public static final int HEALTHY_FIELD_NUMBER
HEALTHY FIELD 数量字段。声明为 public static final int HEALTHY_FIELD_NUMBER。
The HEALTHY FIELD NUMBER field.
io/agentscope/aistio/proto/InstanceHealth.java:50REASON_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER
推理 FIELD 数量字段。声明为 public static final int REASON_FIELD_NUMBER。
The REASON FIELD NUMBER field.
io/agentscope/aistio/proto/InstanceHealth.java:61ACTIVE_SESSIONS_FIELD_NUMBER
public static final int ACTIVE_SESSIONS_FIELD_NUMBER
ACTIVE 会话 FIELD 数量字段。声明为 public static final int ACTIVE_SESSIONS_FIELD_NUMBER。
The ACTIVE SESSIONS FIELD NUMBER field.
io/agentscope/aistio/proto/InstanceHealth.java:100CPU_USAGE_FIELD_NUMBER
public static final int CPU_USAGE_FIELD_NUMBER
CPU 用量 FIELD 数量字段。声明为 public static final int CPU_USAGE_FIELD_NUMBER。
The CPU USAGE FIELD NUMBER field.
io/agentscope/aistio/proto/InstanceHealth.java:111MEMORY_USAGE_FIELD_NUMBER
public static final int MEMORY_USAGE_FIELD_NUMBER
记忆用量 FIELD 数量字段。声明为 public static final int MEMORY_USAGE_FIELD_NUMBER。
The MEMORY USAGE FIELD NUMBER field.
io/agentscope/aistio/proto/InstanceHealth.java:122方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/InstanceHealth.java:37–40internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/InstanceHealth.java:42–48getHealthy
public boolean getHealthy()
获取 getHealthy。
bool healthy = 1;
booleanio/agentscope/aistio/proto/InstanceHealth.java:56–59getReason
public java.lang.String getReason()
获取推理。
string reason = 2;
java.lang.Stringio/agentscope/aistio/proto/InstanceHealth.java:68–80getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()
获取推理字节。
string reason = 2;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/InstanceHealth.java:85–98getActiveSessions
public int getActiveSessions()
获取 getActiveSessions。
int32 active_sessions = 3;
intio/agentscope/aistio/proto/InstanceHealth.java:106–109getCpuUsage
public double getCpuUsage()
获取 getCpuUsage。
double cpu_usage = 4;
doubleio/agentscope/aistio/proto/InstanceHealth.java:117–120getMemoryUsage
public double getMemoryUsage()
获取记忆用量。
double memory_usage = 5;
doubleio/agentscope/aistio/proto/InstanceHealth.java:128–131isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/InstanceHealth.java:134–142writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
设置写入到。
Performs the write to operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
output | com.google.protobuf.CodedOutputStream | 输出(类型 `com.google.protobuf.CodedOutputStream`)。The output. |
java.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:144–163getSerializedSize
public int getSerializedSize()
获取 getSerializedSize。
Returns the serialized size.
intio/agentscope/aistio/proto/InstanceHealth.java:165–193equals
public boolean equals(java.lang.Object obj)
设置该参数。
Performs the equals operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
obj | java.lang.Object | obj(类型 `java.lang.Object`)。The obj. |
booleanio/agentscope/aistio/proto/InstanceHealth.java:195–219hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
intio/agentscope/aistio/proto/InstanceHealth.java:221–244parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | java.nio.ByteBuffer | 数据(类型 `java.nio.ByteBuffer`)。The data. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:246–250parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | java.nio.ByteBuffer | 数据(类型 `java.nio.ByteBuffer`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:251–256parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | com.google.protobuf.ByteString | 数据(类型 `com.google.protobuf.ByteString`)。The data. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:257–261parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | com.google.protobuf.ByteString | 数据(类型 `com.google.protobuf.ByteString`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:262–267parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | byte[] | 数据(类型 `byte[]`)。The data. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:268–271parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | byte[] | 数据(类型 `byte[]`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:272–277parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(java.io.InputStream input) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:278–282parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:283–289parseDelimitedFrom
public static io.agentscope.aistio.proto.InstanceHealth parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
解析 parseDelimitedFrom。
Parses the delimited from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:291–295parseDelimitedFrom
public static io.agentscope.aistio.proto.InstanceHealth parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析 parseDelimitedFrom。
Parses the delimited from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:297–303parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:304–309parseFrom
public static io.agentscope.aistio.proto.InstanceHealth parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.aistio.proto.InstanceHealthjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/InstanceHealth.java:310–316newBuilderForType
public Builder newBuilderForType()
创建构建器用于类型。
Returns the new builder for type.
Builderio/agentscope/aistio/proto/InstanceHealth.java:318–319newBuilder
public static Builder newBuilder()
创建构建器。
Returns the new builder.
Builderio/agentscope/aistio/proto/InstanceHealth.java:320–322newBuilder
public static Builder newBuilder(io.agentscope.aistio.proto.InstanceHealth prototype)
创建构建器。
Performs the new builder operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
prototype | io.agentscope.aistio.proto.InstanceHealth | prototype(类型 `io.agentscope.aistio.proto.InstanceHealth`)。The prototype. |
Builderio/agentscope/aistio/proto/InstanceHealth.java:323–325toBuilder
public Builder toBuilder()
返回到构建器。
Returns the to builder.
Builderio/agentscope/aistio/proto/InstanceHealth.java:326–330newBuilderForType
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
创建构建器用于类型。
Performs the new builder for type operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parent | com.google.protobuf.GeneratedMessage.BuilderParent | 父级(类型 `com.google.protobuf.GeneratedMessage.BuilderParent`)。The parent. |
Builderio/agentscope/aistio/proto/InstanceHealth.java:332–337getDefaultInstance
public static io.agentscope.aistio.proto.InstanceHealth getDefaultInstance()
获取默认实例。
Returns the default instance.
io.agentscope.aistio.proto.InstanceHealthio/agentscope/aistio/proto/InstanceHealth.java:737–739parser
public static com.google.protobuf.Parser<InstanceHealth> parser()
返回解析器。
Returns the parser.
com.google.protobuf.Parser<InstanceHealth>io/agentscope/aistio/proto/InstanceHealth.java:763–765getParserForType
public com.google.protobuf.Parser<InstanceHealth> getParserForType()
获取解析器用于类型。
Returns the parser for type.
com.google.protobuf.Parser<InstanceHealth>io/agentscope/aistio/proto/InstanceHealth.java:767–770getDefaultInstanceForType
public io.agentscope.aistio.proto.InstanceHealth getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.InstanceHealthio/agentscope/aistio/proto/InstanceHealth.java:772–775嵌套类详情Nested Class Detail
Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.InstanceHealthOrBuilder构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.InstanceHealthOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Instance health reported by data plane
Protobuf type agentscope.protocol.v1.InstanceHealth