Skip to content

Commit b1db55c

Browse files
authored
fix polling interval option to align with UI (#780)
1 parent a83f6c1 commit b1db55c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/src/main/java/co/elastic/otel/dynamicconfig/CentralConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@ void update(String configurationValue, CentralConfigurationManager centralConfig
304304

305305
public static final class PollingInterval extends ConfigOption {
306306
PollingInterval() {
307-
super("polling_interval", "30s");
307+
super("opamp_polling_interval", "30s");
308308
}
309309

310310
@Override
311311
void update(String configurationValue, CentralConfigurationManager centralConfigurationManager)
312312
throws IllegalArgumentException {
313313
if (centralConfigurationManager instanceof CentralConfigurationManagerImpl) {
314314
try {
315-
Duration duration = Duration.parse(configurationValue);
315+
Duration duration = Duration.parse("PT" + configurationValue);
316316
((CentralConfigurationManagerImpl) centralConfigurationManager)
317317
.resetPeriodicDelay(duration);
318318
} catch (DateTimeParseException e) {

0 commit comments

Comments
 (0)