Интеграции погоды#
Документ фиксирует рабочий baseline интеграции двух источников осадков для D-008.
1. Источники и приоритет#
primary: локальная метеостанция (
station)fallback: внешний погодный сервис (
external_weather_service)anomaly control: сравнение
station_precip_mmvsservice_precip_mmс флагомanomaly_flag
2. Adapter profiles#
2.1 Локальная метеостанция#
adapter_profile_id:melioration-weather-station-v1ingress endpoint:
POST /api/v1/melioration-weather/commands/ingestобязательные поля:
field_idstation_precip_mmservice_precip_mm(для anomaly-control)observed_at(RFC3339)
2.2 Внешний weather service#
adapter_profile_id:melioration-weather-service-v1режим: fallback при
telemetry_healthy=falseingress endpoint:
POST /api/v1/melioration-weather/commands/ingestобязательные поля:
field_idservice_precip_mmobserved_at(RFC3339)
3. Runtime policy#
Контур health:
POST /api/v1/melioration-weather/commands/telemetryПри
healthy=true:source_mode=station_primaryused_precip_mm=station_precip_mm
При
healthy=false:source_mode=external_fallbackused_precip_mm=service_precip_mm
Для режима управления
C: автоматическая деградация вfallback_mode(Bпо умолчанию).
4. Контрольный прогон#
Выполнить
POST /api/v1/melioration-weather/commands/telemetryсhealthy=false.Выполнить
POST /api/v1/melioration-weather/commands/ingest.Проверить
GET /api/v1/melioration-weather/list:source_mode=external_fallbackused_precip_mm=service_precip_mm
Проверить
GET /api/v1/melioration-field/list:rain_mmиvolume_mmпересчитаны с учетом fallback-осадков.