Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Actions] Microsoft Teams connector #83169

Merged
merged 15 commits into from
Nov 20, 2020
Merged

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Nov 11, 2020

Resolves #56395

Summary

Added Microsoft Teams connector that uses the Incoming Webhook app available on Teams to post messages to channels within a team. There are fancier formatting options available but this PR does not take advantage of them.

Teams Connector on Create Connector Flyout

Screen Shot 2020-11-11 at 9 38 54 AM

Creating a Teams Connector

Screen Shot 2020-11-11 at 9 39 10 AM

Editing a Teams Connector

Screen Shot 2020-11-11 at 9 40 42 AM

Testing a Teams Connector

Screen Shot 2020-11-11 at 9 40 02 AM

Messages showing up on Teams

Screen Shot 2020-11-11 at 9 42 05 AM

Checklist

Delete any items that are not applicable to this PR.

@ymao1 ymao1 self-assigned this Nov 11, 2020
@ymao1 ymao1 added Feature:Actions release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 v8.0.0 labels Nov 11, 2020
@ymao1 ymao1 marked this pull request as ready for review November 11, 2020 17:49
@elasticmachine
Copy link
Contributor

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

@ymao1 ymao1 requested a review from gchaps November 11, 2020 17:49
@ymao1
Copy link
Contributor Author

ymao1 commented Nov 11, 2020

@gchaps could you review the words in the asciidocs please? Thanks!

@mikecote mikecote requested review from mikecote and a team November 12, 2020 14:00
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Great to see this integration! I left a few nits and questions.

}): TeamsActionType {
return {
id: '.teams',
minimumLicenseRequired: 'gold',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arisonl just to confirm, Teams is gold license?

Copy link
Contributor

@gchaps gchaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI copy looks good.

Can the messages that show up on Microsoft teams be a little friendlier? Instead of "something happened" but give some details of what went wrong?

@ymao1
Copy link
Contributor Author

ymao1 commented Nov 12, 2020

Can the messages that show up on Microsoft teams be a little friendlier? Instead of "something happened" but give some details of what went wrong?

@gchaps Those are just my test messages :) The user can specify what the notification message is and there are default messages for each alert type

Copy link
Contributor

@gchaps gchaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With two reviews already, didn't do a full one, but did look through the server-side code. LGTM!

Noted some potentially extraneous logging - I suspect we have other actions are also logging errors when they don't need to (no need to fix here) and so this was probably copied from one of those, but if those logs ARE extraneous, might as well change them to debugs for when someone copies THIS action when creating a new one :-)

@ymao1
Copy link
Contributor Author

ymao1 commented Nov 16, 2020

@elasticmachine merge upstream

@ymao1
Copy link
Contributor Author

ymao1 commented Nov 20, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
triggersActionsUi 277 282 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.4MB 1.5MB +21.3KB

Distributable file count

id before after diff
default 42957 42966 +9

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
triggersActionsUi 152.2KB 154.7KB +2.5KB
Unknown metric groups

async chunk count

id before after diff
triggersActionsUi 31 33 +2

miscellaneous assets size

id before after diff
triggersActionsUi 27.7KB 37.7KB +10.0KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ymao1 ymao1 merged commit 8ca1e93 into elastic:master Nov 20, 2020
ymao1 added a commit to ymao1/kibana that referenced this pull request Nov 20, 2020
* First cut at adding teams connector

* Getting teams connector working

* Unit tests

* Updating docs

* PR comments

* PR comments

* Changing error to debug log

* Fixing imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
ymao1 added a commit that referenced this pull request Nov 20, 2020
* First cut at adding teams connector

* Getting teams connector working

* Unit tests

* Updating docs

* PR comments

* PR comments

* Changing error to debug log

* Fixing imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@mikecote mikecote added release_note:enhancement and removed release_note:skip Skip the PR/issue when compiling release notes labels Dec 16, 2020
@ymao1 ymao1 deleted the actions/microsoft-teams branch February 4, 2021 15:25
spong added a commit that referenced this pull request Mar 10, 2021
…Actions (#94239)

## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via #83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2021
…Actions (elastic#94239)

## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via elastic#83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2021
…Actions (elastic#94239)

## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via elastic#83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
kibanamachine added a commit that referenced this pull request Mar 10, 2021
…Actions (#94239) (#94260)

## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via #83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 10, 2021
…Actions (#94239) (#94261)

## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via #83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Actions release_note:enhancement Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft Teams action type
7 participants