diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchRequest.kt b/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchRequest.kt index aa3f9e088..6f1048b5c 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchRequest.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchRequest.kt @@ -23,8 +23,7 @@ class GetFindingsSearchRequest : ActionRequest { findingsId: String?, version: Long, srcContext: FetchSourceContext?, - table: Table, - destinationType: String + table: Table ) : super() { this.findingsId = findingsId this.version = version diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchResponse.kt b/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchResponse.kt index f575a9858..8da44c219 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchResponse.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/action/GetFindingsSearchResponse.kt @@ -23,7 +23,7 @@ class GetFindingsSearchResponse : ActionResponse, ToXContentObject { constructor( status: RestStatus, totalFindings: Int?, - findings: List + findings: List ) : super() { this.status = status this.totalFindings = totalFindings @@ -33,11 +33,11 @@ class GetFindingsSearchResponse : ActionResponse, ToXContentObject { @Throws(IOException::class) constructor(sin: StreamInput) { this.status = sin.readEnum(RestStatus::class.java) - val findings = mutableListOf() + val findings = mutableListOf() this.totalFindings = sin.readOptionalInt() var currentSize = sin.readInt() for (i in 0 until currentSize) { - findings.add(Destination.readFrom(sin)) + findings.add(Finding.readFrom(sin)) } this.findings = findings }