Skip to content

Commit

Permalink
perf: 提供步骤详情与步骤执行结果查询的APIGW接口 TencentBlueKing#2596
Browse files Browse the repository at this point in the history
步骤详情接口中主机信息添加agentId与agent状态字段
  • Loading branch information
jsonwan committed Jan 3, 2024
1 parent ef18c64 commit 0834078
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/apidoc/bk-api-gateway/v3/zh/get_step_instance_detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@
| bk_cloud_id | long || 管控区域ID |
| ip | string || IP |
| ipv6 | string || IPv6 |
| bk_agent_id | string || Agent ID |
| alive | int || Agent是否正常,取值为:1-正常,0-异常 |

##### topo_node

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ public class EsbIpDTO {
@JsonPropertyDescription("ipv6")
private String ipv6;

@JsonProperty("bk_agent_id")
@JsonPropertyDescription("Agent Id")
private String agentId;

@JsonProperty("alive")
@JsonPropertyDescription("Agent是否正常")
private Integer alive;

public EsbIpDTO(Long hostId, Long bkCloudId, String ip) {
this.hostId = hostId;
this.bkCloudId = bkCloudId;
Expand All @@ -90,6 +98,8 @@ public static EsbIpDTO fromHost(HostDTO host) {
esbIp.setIp(host.getIp());
esbIp.setIpv6(host.getIpv6());
esbIp.setHostId(host.getHostId());
esbIp.setAgentId(host.getAgentId());
esbIp.setAlive(host.getAlive());
return esbIp;
}

Expand Down

0 comments on commit 0834078

Please sign in to comment.