Action description
Sends notifications to DingTalk through a webhook. For more information, see Message types.
Syntax
Action: ACS::Notify::DingTalkWebhook
Properties:
webhook: String
msgtype: String
text: Json
link: Json
markdown: Json
at: Json
Properties
|
Property name |
Description |
Type |
Required |
Default value |
Constraints |
|
webhook |
The webhook URL for sending notifications to DingTalk. |
String |
Yes |
||
|
msgtype |
The message type. |
String |
No |
text |
|
|
text |
The text content of the notification. Required if msgtype is set to text. |
Json |
No |
{'content': 'I am who I am, a different kind of firework'} |
|
|
link |
The link content of the notification. Required if msgtype is set to link. |
Json |
No |
{'text': 'This is a link message', 'title': 'This is a link message', 'picUrl': 'https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png ', 'messageUrl': 'https://open.dingtalk.com/document/ '} |
|
|
markdown |
The Markdown content of the notification. Required if msgtype is set to markdown. |
Json |
No |
{'title': 'Hangzhou Weather', 'text': '#### Hangzhou Weather \n> 9 degrees, NW wind level 1, Air Quality: Good (89), Relative humidity: 73%\n> \n'} |
|
|
at |
The users to mention (@) in the notification. |
Json |
No |
{'atMobiles': ['150XXXXXXXX'], 'atUserIds': ['user123'], 'isAtAll': False} |
Return value
None
\n> ###### Weather published at 10:20