fix: reject removed telemetry fields switch

This commit is contained in:
lingniu
2026-07-01 14:17:51 +08:00
parent eeba8fb754
commit a6784bc8c3
2 changed files with 13 additions and 2 deletions

View File

@@ -49,6 +49,13 @@ import java.nio.file.Path;
@ConditionalOnProperty(prefix = "lingniu.ingest.event-history", name = "enabled", havingValue = "true")
public class EventHistoryAutoConfiguration {
@Bean
@ConditionalOnProperty(prefix = "lingniu.ingest.tdengine-history", name = "telemetry-fields-enabled")
public Object rejectedRemovedTelemetryFieldsSwitch() {
throw new IllegalStateException(
"tdengine-history.telemetry-fields-enabled has been removed; history stores raw_frames and location rows only");
}
@Bean
@ConditionalOnBean(TdengineHistoryWriter.class)
@ConditionalOnMissingBean