Skip to content

Add initial opsgenie client#23707

Merged
EdwardDowling merged 20 commits intomasterfrom
edwarddowling/opsgenieclient
Apr 19, 2023
Merged

Add initial opsgenie client#23707
EdwardDowling merged 20 commits intomasterfrom
edwarddowling/opsgenieclient

Conversation

@EdwardDowling
Copy link
Copy Markdown
Contributor

Part of 473

Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/types.go Outdated
@EdwardDowling EdwardDowling marked this pull request as ready for review April 4, 2023 09:11
@github-actions github-actions Bot requested review from mdwn and timothyb89 April 4, 2023 09:12
@EdwardDowling EdwardDowling marked this pull request as draft April 4, 2023 09:32
@EdwardDowling EdwardDowling marked this pull request as ready for review April 4, 2023 09:48
@github-actions github-actions Bot requested review from lxea and rosstimothy April 4, 2023 09:48
@r0mant r0mant requested review from hugoShaka and marcoandredinis and removed request for mdwn and timothyb89 April 4, 2023 16:06
Comment thread go.mod Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/plugindata.go
Comment thread lib/plugin/opsgenie/types.go Outdated
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis left a comment

Choose a reason for hiding this comment

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

Tests are missing

Did we consider using their official go client?
https://docs.opsgenie.com/docs/opsgenie-go-api-v2

Comment thread go.mod Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/types.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/plugindata.go
Comment thread lib/plugin/opsgenie/client_test.go
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis left a comment

Choose a reason for hiding this comment

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

Overall LGTM, but left some comments

Comment thread go.mod
Comment thread go.mod Outdated
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client.go Outdated
Comment thread lib/plugin/opsgenie/client.go
Comment thread lib/plugin/opsgenie/client_test.go Outdated
Comment thread lib/plugin/opsgenie/types.go Outdated
Comment thread lib/plugin/opsgenie/client.go Outdated
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka left a comment

Choose a reason for hiding this comment

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

LGTM once the remaining comments are resolved

@EdwardDowling EdwardDowling enabled auto-merge April 19, 2023 15:45
@EdwardDowling EdwardDowling added this pull request to the merge queue Apr 19, 2023
Merged via the queue into master with commit 3195d9b Apr 19, 2023
@EdwardDowling EdwardDowling deleted the edwarddowling/opsgenieclient branch April 19, 2023 16:18
EdwardDowling added a commit that referenced this pull request Jun 21, 2023
* Add initial opsgenie client

* Embed opsgenie client config in client and move some helper funcs

* Fix mod and sum and call to opsgenie client buildalertbody

* Add more godocs and use vendored teleport plugins lib

* Rename opsgenie client and config to prevent repetition

* Fix struct tag in opsgenie alertbody

* Fix misleading comment

* Add tests to opsgenie client to check note bodies are formatted

* Wrap errs with more descriptive types

* Close response bodies and fix error handling

* Add missing godoc and fix defer and return order

* Add missing godocs to opsgenie types

* Change opsgenie client test to not depend on json indent etc

* Add example of api url to godoc

* Undo unnecessary mod and sum changes

* Fix go sum

* Move opsgenie client code to integrations/lib

* Fix typos
github-merge-queue Bot pushed a commit that referenced this pull request Jun 23, 2023
* Add initial opsgenie client (#23707)

* Add initial opsgenie client

* Embed opsgenie client config in client and move some helper funcs

* Fix mod and sum and call to opsgenie client buildalertbody

* Add more godocs and use vendored teleport plugins lib

* Rename opsgenie client and config to prevent repetition

* Fix struct tag in opsgenie alertbody

* Fix misleading comment

* Add tests to opsgenie client to check note bodies are formatted

* Wrap errs with more descriptive types

* Close response bodies and fix error handling

* Add missing godoc and fix defer and return order

* Add missing godocs to opsgenie types

* Change opsgenie client test to not depend on json indent etc

* Add example of api url to godoc

* Undo unnecessary mod and sum changes

* Fix go sum

* Move opsgenie client code to integrations/lib

* Fix typos

* Add opsgenie plugin (#25995)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants