Skip to content

Commit

Permalink
Add connector status a connector total certificates discovered to Dis…
Browse files Browse the repository at this point in the history
…coveryHistoryDto (#404)
  • Loading branch information
klaraf755 authored Aug 28, 2024
1 parent a0e2cf9 commit 0741b74
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public class DiscoveryHistoryDto extends NameAndUuidDto {
)
private DiscoveryStatus status;

@Schema(
description = "Status of Discovery returned by connector",
requiredMode = Schema.RequiredMode.REQUIRED
)
private DiscoveryStatus connectorStatus;


@Schema(
description = "Date and time when Discovery started",
Expand All @@ -42,6 +48,12 @@ public class DiscoveryHistoryDto extends NameAndUuidDto {
)
private Integer totalCertificatesDiscovered;

@Schema(
description = "Number of certificates that were discovered by connector",
defaultValue = "0"
)
private Integer connectorTotalCertificatesDiscovered;

@Schema(
description = "UUID of the Discovery Provider",
requiredMode = Schema.RequiredMode.REQUIRED
Expand Down Expand Up @@ -126,14 +138,32 @@ public void setConnectorName(String connectorName) {
this.connectorName = connectorName;
}

public Integer getConnectorTotalCertificatesDiscovered() {
return connectorTotalCertificatesDiscovered;
}

public void setConnectorTotalCertificatesDiscovered(Integer connectorTotalCertificatesDiscovered) {
this.connectorTotalCertificatesDiscovered = connectorTotalCertificatesDiscovered;
}

public DiscoveryStatus getConnectorStatus() {
return connectorStatus;
}

public void setConnectorStatus(DiscoveryStatus connectorStatus) {
this.connectorStatus = connectorStatus;
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.append("kind", kind)
.append("status", status)
.append("connectorStatus", connectorStatus)
.append("startTime", startTime)
.append("endTime", endTime)
.append("totalCertificatesDiscovered", totalCertificatesDiscovered)
.append("connectorTotalCertificatesDiscovered", connectorTotalCertificatesDiscovered)
.append("connectorUuid", connectorUuid)
.append("connectorName", connectorName)
.append("uuid", uuid)
Expand Down

0 comments on commit 0741b74

Please sign in to comment.