From db22128c8c3c42690b40a7a52d3e146b24affcdb Mon Sep 17 00:00:00 2001 From: Manaswini Ragamouni Date: Wed, 25 Mar 2026 20:18:25 +0000 Subject: [PATCH] Fix sample-remote-monitor-plugin compilation after Target field addition Add null Target parameter to Monitor constructor calls in SampleRemoteMonitorRestHandler to match the updated Monitor constructor from common-utils #916. Signed-off-by: Manaswini Ragamouni --- .../alerting/SampleRemoteMonitorRestHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sample-remote-monitor-plugin/src/main/java/org/opensearch/alerting/SampleRemoteMonitorRestHandler.java b/sample-remote-monitor-plugin/src/main/java/org/opensearch/alerting/SampleRemoteMonitorRestHandler.java index 17a29cf54..46cb7ee58 100644 --- a/sample-remote-monitor-plugin/src/main/java/org/opensearch/alerting/SampleRemoteMonitorRestHandler.java +++ b/sample-remote-monitor-plugin/src/main/java/org/opensearch/alerting/SampleRemoteMonitorRestHandler.java @@ -96,7 +96,8 @@ protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient new DataSources(), false, false, - "sample-remote-monitor-plugin" + "sample-remote-monitor-plugin", + null ); IndexMonitorRequest indexMonitorRequest1 = new IndexMonitorRequest( Monitor.NO_ID, @@ -158,7 +159,8 @@ public void onFailure(Exception e) { new DataSources(), false, false, - "sample-remote-monitor-plugin" + "sample-remote-monitor-plugin", + null ); IndexMonitorRequest indexMonitorRequest2 = new IndexMonitorRequest( Monitor.NO_ID, @@ -243,7 +245,8 @@ public void onFailure(Exception e) { new DataSources(), false, false, - "sample-remote-monitor-plugin" + "sample-remote-monitor-plugin", + null ); IndexMonitorRequest indexDocLevelMonitorRequest = new IndexMonitorRequest( Monitor.NO_ID,