forked from opensearch-project/alerting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize on compute max seq nos and remove all redundant search requests
Signed-off-by: Surya Sashank Nistala <[email protected]>
- Loading branch information
Showing
3 changed files
with
78 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
alerting/src/main/kotlin/org/opensearch/alerting/model/DocumentExecutionContext.kt
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
alerting/src/main/kotlin/org/opensearch/alerting/model/IndexExecutionContext.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.alerting.model | ||
|
||
import org.opensearch.commons.alerting.model.DocLevelQuery | ||
|
||
data class IndexExecutionContext( | ||
val queries: List<DocLevelQuery>, | ||
val lastRunContext: MutableMap<String, Any>, | ||
val updatedLastRunContext: MutableMap<String, Any>, | ||
val indexName: String, | ||
val concreteIndexName: String, | ||
val conflictingFields: List<String>, | ||
val docIds: List<String>? = null | ||
) |