Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... }
GET /v1/deploymentswithprocessinfo
ListDeploymentsWithProcessInfo 返回包含进程信息的部署列表。
名称 (Name) | 描述 (Description) | 必需 (Required) | 默认值 (Default) | 模式 (Pattern) |
---|---|---|---|---|
查询 (query) |
- |
空 (null) |
||
分页限制 (pagination.limit) |
- |
空 (null) |
||
分页偏移量 (pagination.offset) |
- |
空 (null) |
||
分页排序字段 (pagination.sortOption.field) |
- |
空 (null) |
||
分页排序反转 (pagination.sortOption.reversed) |
- |
空 (null) |
||
分页聚合函数 (pagination.sortOption.aggregateBy.aggrFunc) |
- |
未设置 (UNSET) |
||
分页去重 (pagination.sortOption.aggregateBy.distinct) |
- |
空 (null) |
代码 (Code) | 消息 (Message) | 数据类型 (Datatype) |
---|---|---|
200 |
成功的响应。(A successful response.) |
|
0 |
意外的错误响应。(An unexpected error response.) |
未生成:在当前实现中,这是一个临时状态。(NOT_GENERATED: In current implementation, this is a temporary condition.)
枚举值 (Enum Values) |
---|
无效 (INVALID) |
未生成 (NOT_GENERATED) |
已解锁 (UNLOCKED) |
已锁定 (LOCKED) |
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
代码 (code) |
整数 (Integer) |
int32 |
|||
消息 (message) |
字符串 (String) |
||||
详情 (details) |
ProtobufAny 列表 (ProtobufAny 列表) |
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
部署 (deployment) |
|||||
基线状态 (baselineStatuses) |
StorageContainerNameAndBaselineStatus 列表 (StorageContainerNameAndBaselineStatus 列表) |
Any
包含任意序列化的协议缓冲区消息以及描述序列化消息类型的 URL。
Protobuf 库提供支持,以实用程序函数或 Any 类型的附加生成方法的形式打包/解包 Any 值。
示例 1:在 C++ 中打包和解包消息。
Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... }
示例 2:在 Java 中打包和解包消息。
Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } // or ... if (any.isSameTypeAs(Foo.getDefaultInstance())) { foo = any.unpack(Foo.getDefaultInstance()); }
Example 3: Pack and unpack a message in Python.
foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ...
Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...} any, err := anypb.New(foo) if err != nil { ... } ... foo := &pb.Foo{} if err := any.UnmarshalTo(foo); err != nil { ... }
Protobuf 库提供的打包方法默认使用“type.googleapis.com/full.type.name”作为类型 URL,解包方法仅使用类型 URL 中最后一个“/”后的完全限定类型名称,例如“foo.bar.com/x/y.z”将产生类型名称“y.z”。
Any
值的 JSON 表示使用反序列化的嵌入式消息的常规表示,以及包含类型 URL 的附加字段@type
。示例 (Example)
package google.profile; message Person { string first_name = 1; string last_name = 2; }
{ "@type": "type.googleapis.com/google.profile.Person", "firstName": <string>, "lastName": <string> }
如果嵌入式消息类型是众所周知的并且具有自定义 JSON 表示,则该表示将被嵌入,并添加一个字段value
,该字段除了@type
字段外还包含自定义 JSON。示例(对于消息[google.protobuf.Duration][])(Example (for message [google.protobuf.Duration][]))
{ "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" }
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
@type |
字符串 (String) |
一个 URL/资源名称,唯一标识序列化 Protocol Buffer 消息的类型。此字符串必须包含至少一个“/”字符。URL 路径的最后一部分必须表示类型的完全限定名称(例如, |
ContainerNameAndBaselineStatus
表示对特定容器名称的过程评估的缓存结果。
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
容器名称 (containerName) |
字符串 (String) |
||||
基线状态 (baselineStatus) |
无效 (INVALID)、未生成 (NOT_GENERATED)、已解锁 (UNLOCKED)、已锁定 (LOCKED), |
||||
执行异常进程 (anomalousProcessesExecuted) |
布尔值 (Boolean) |
Next available tag: 9
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
ID (id) |
字符串 (String) |
||||
哈希值 (hash) |
字符串 (String) |
无符号64位整数 (uint64) |
|||
名称 (name) |
字符串 (String) |
||||
集群 (cluster) |
字符串 (String) |
||||
集群ID (clusterId) |
字符串 (String) |
||||
命名空间 (namespace) |
字符串 (String) |
||||
创建时间 (created) |
日期 (Date) |
日期时间 (date-time) |
|||
优先级 (priority) |
字符串 (String) |
64位整数 (int64) |
字段名称 (Field Name) | 必需 (Required) | 可为空 (Nullable) | 类型 (Type) | 描述 (Description) | 格式 (Format) |
---|---|---|---|---|---|
部署 (deployments) |
ListDeploymentsWithProcessInfoResponseDeploymentWithProcessInfo 列表 |