Skip to content

Commit

Permalink
Revert createFindings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 18, 2022
1 parent ce2b0f9 commit a7bf3b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ object MonitorRunner : JobRunner, CoroutineScope, AbstractLifecycleComponent() {
// todo: below is all hardcoded, temp code and added only to test. replace this with proper Findings index lifecycle management.
val indexRequest = IndexRequest(".opensearch-alerting-findings")
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
.source(finding.toXContent(XContentFactory.jsonBuilder(), ToXContent.MapParams(mapOf("with_type" to "true"))))
.source(findingStr, XContentType.JSON)

client.index(indexRequest).actionGet()
return finding.id
Expand Down

0 comments on commit a7bf3b9

Please sign in to comment.