jplanckeel / steampipe-plugin-opsgenie

Steampipe Plugin to access Opsgenie
https://hub.steampipe.io/plugins/jplanckeel/opsgenie
Apache License 2.0
1 stars 2 forks source link

Initial suggestions for plugin release #2

Closed madhushreeray30 closed 6 months ago

madhushreeray30 commented 11 months ago

Thanks @jplanckeel for this new plugin. Great work 🎉 !!

The basic structure looks good so far. While using the plugin, we did come up with a few suggestions based on our best practices:

config/opsgenie.spc

docs/tables/*

opsgenie/tables

docs/index.md

Configure your account details in ~/.steampipe/config/opsgenie.spc:

- Please update the configuration section with the latest details as per the `opsgenie.spc` file.

`README.md`

- The following section is indicative of the `jira plugin` we should update it for the `opsgenie plugin`:

go.mod

Missing files

A couple of follow-up questions:

jplanckeel commented 11 months ago

Thank you, i have start to fix your comment ! :)

jplanckeel commented 11 months ago

How are we handling the resource not found errors?

Buy null value

Do the APIs support pagination? I did not find any reference to it, but I want to make sure that we have checked that box before releasing it.

The pagination is supported in API, but not in golang sdk :/ I tried increasing by 100 until I reached a value before the rate limit.

https://github.com/jplanckeel/steampipe-plugin-opsgenie/pull/1/files#diff-42be304ed42f5f48c2f092e2b1b40b20e0260808f6a138ed29e8ef4a8961d231R66

https://docs.opsgenie.com/docs/alert-api#list-alerts

While working with the APIs did you encounter rate limit errors?

I didn't encounter rate limit with APIs, this API is limited to output 20 000 Alertes.

https://docs.opsgenie.com/docs/api-rate-limiting

madhushreeray30 commented 10 months ago

Thanks @jplanckeel for the fixes 👍 . Can you please take a look at the following suggestions

jplanckeel commented 6 months ago

for me, i have fix all issues, is missing only og_image file ;)