httppull.yaml 844 B

12345678910111213141516171819202122232425
  1. #Global httppull configurations
  2. default:
  3. # url of the request server address
  4. url: http://localhost
  5. # post, get, put, delete
  6. method: post
  7. # The interval between the requests, time unit is ms
  8. interval: 10000
  9. # The timeout for http request, time unit is ms
  10. timeout: 5000
  11. # If it's set to true, then will compare with last result; If response of two requests are the same, then will skip sending out the result.
  12. # The possible setting could be: true/false
  13. incremental: false
  14. # The body of request, such as '{"data": "data", "method": 1}'
  15. body: '{}'
  16. # Body type, none|text|json|html|xml|javascript|form
  17. bodyType: json
  18. # HTTP headers required for the request
  19. headers:
  20. Accept: application/json
  21. #Override the global configurations
  22. application_conf: #Conf_key
  23. incremental: true
  24. url: http://localhost:9090/pull