elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.51k stars 8.06k forks source link

[Actions] Support Microsoft Teams Adaptive Card format #89441

Open ymao1 opened 3 years ago

ymao1 commented 3 years ago

Currently, the Microsoft Teams action type allows you to create and send a very basic message string. Teams also supports Adaptive Cards to allow for more information inside each post. We should consider extending the action type to allow users to create and send actions in the Adaptive Card format.

elasticmachine commented 3 years ago

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

pmuellr commented 3 years ago

Kinda related issue: https://github.com/elastic/kibana/issues/88832

In that one, we'd like to extend what we send to Slack (also currently just a text message) to their Block Kit structured data story.

I can't imagine that we'd come up with a single library of reusable set of code to handle both - since the data structures look quite different - but hopefully they can at least share a similar UX experience.

Since both are JSON, perhaps there's some story where we could "define" what can be provided in these objects via some schema language, (eg JSON Schema) and then use that to drive how the UX would work. Eg, first release, let the customer add literal JSON for these new/alternate parameters in a JSON editor, and then validate them with that schema.

syepes commented 7 months ago

+1 This would be a great addition we are in almost 2024 and having plain old text is outdated ;-)

This could simply be implemented by allowing the adjustment of the connector headers: Content-Type: "text/plain" or "application/json" this would allow to keep the current functionality and at the same time permitting others to send reach text

Danouchka commented 7 months ago

+1