crss-meterprocess-stream-source-daily-raw-dev2.yml 2.1 KB

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