fix: keep telemetry fields out of default history api
This commit is contained in:
@@ -82,7 +82,6 @@ lsof -nP -iTCP:32960 -sTCP:LISTEN
|
||||
```bash
|
||||
HTTP_PORT=20200 \
|
||||
KAFKA_CONSUMER_ENABLED=true \
|
||||
EVENT_FILE_STORE_PATH=./target/tdengine-verification/event-store \
|
||||
TDENGINE_TELEMETRY_FIELDS_ENABLED=false \
|
||||
java -jar modules/apps/vehicle-history-app/target/vehicle-history-app.jar
|
||||
```
|
||||
@@ -92,10 +91,10 @@ java -jar modules/apps/vehicle-history-app/target/vehicle-history-app.jar
|
||||
```bash
|
||||
curl -sS http://127.0.0.1:20200/actuator/health
|
||||
curl -sS http://127.0.0.1:20200/v3/api-docs \
|
||||
| grep -E '/api/event-history/jt808/locations|/api/event-history/gb32960/snapshots|/api/event-history/telemetry/fields'
|
||||
| grep -E '/api/event-history/locations|/api/event-history/raw-frames'
|
||||
```
|
||||
|
||||
预期:健康检查为 `UP`,OpenAPI 中包含 JT808 TDengine 分页查询接口和 GB32960 snapshot 接口。`/api/event-history/telemetry/fields` 会存在,但只有在 `TDENGINE_TELEMETRY_FIELDS_ENABLED=true` 后才会持续写入新字段数据。
|
||||
预期:健康检查为 `UP`,OpenAPI 中包含通用位置分页查询和 RAW 帧查询接口。`/api/event-history/telemetry/fields` 只有在 `TDENGINE_TELEMETRY_FIELDS_ENABLED=true` 后才会暴露;默认高吞吐模式不暴露该接口,也不会持续写入逐字段宽表。
|
||||
|
||||
## 本机 launchctl 部署
|
||||
|
||||
|
||||
Reference in New Issue
Block a user