1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ## Request timeout
- # timeout: 5s
- ## Uncomment following line in order to write template from scratch (be careful!)
- #no_builtin_template: true
- ## Customizable templates path
- #templates:
- # - contrib/templates/legacy/template.tmpl
- ## You can also override default template using `default_message`
- ## The following example to use the 'legacy' template from v0.3.0
- #default_message:
- # title: '{{ template "legacy.title" . }}'
- # text: '{{ template "legacy.content" . }}'
- ## Targets, previously was known as "profiles"
- targets:
- webhook1: #todo 创建机器人
- # Change access_token=xxxxxxxxxxxx to your robot's url
- url: https://oapi.dingtalk.com/robot/send?access_token=053260093b9b7e06fe9e57f9ac7adc606d2073c91da2c45469aace7c67bab9c4
- # secret for signature
- # Change SEC000000000000000000000 to your robot's secret
- secret: SECe2946badc349a9aa059ad79a60ab8b68b9a63ea51ae4370a3e6017bf76438103
- webhook2:
- url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
- webhook_legacy:
- url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
- # Customize template content
- message:
- # Use legacy template
- title: '{{ template "legacy.title" . }}'
- text: '{{ template "legacy.content" . }}'
- webhook_mention_all:
- url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
- mention:
- all: true
- webhook_mention_users:
- url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
- mention:
- mobiles: ['156xxxx8827', '189xxxx8325']
|