crss-meterprocess-stream-source-daily-raw.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #daily extract
  2. spring:
  3. profiles: dailyExtract
  4. datasource:
  5. driver-class-name: com.edb.Driver
  6. maxPoolSize: 2
  7. test-on-borrow: true
  8. validation-query: SELECT 1
  9. cloud:
  10. stream:
  11. bindings:
  12. output:
  13. content-type: application/json
  14. jdbc:
  15. query: "select * from metering.txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
  16. update: "update metering.txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
  17. trigger:
  18. fixed-delay: 5
  19. time-unit: SECONDS
  20. logging:
  21. level:
  22. com.pemc: DEBUG
  23. ---
  24. #Monthly extract
  25. spring:
  26. profiles: monthlyExtract
  27. datasource:
  28. driver-class-name: com.edb.Driver
  29. maxPoolSize: 2
  30. test-on-borrow: true
  31. validation-query: SELECT 1
  32. cloud:
  33. stream:
  34. bindings:
  35. output:
  36. content-type: application/json
  37. jdbc:
  38. query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
  39. update: "update metering.txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
  40. trigger:
  41. fixed-delay: 5
  42. time-unit: SECONDS
  43. logging:
  44. level:
  45. com.pemc: DEBUG
  46. ---
  47. # default
  48. spring:
  49. datasource:
  50. driver-class-name: com.edb.Driver
  51. maxPoolSize: 2
  52. test-on-borrow: true
  53. validation-query: SELECT 1
  54. cloud:
  55. stream:
  56. bindings:
  57. output:
  58. content-type: application/json
  59. jdbc:
  60. query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
  61. update: "update metering.txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
  62. trigger:
  63. fixed-delay: 5
  64. time-unit: SECONDS
  65. logging:
  66. level:
  67. com.pemc: DEBUG