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

Missing --alias at closeAlert since version 3.X #35

Open
daswars opened this issue Aug 20, 2020 · 3 comments
Open

Missing --alias at closeAlert since version 3.X #35

daswars opened this issue Aug 20, 2020 · 3 comments

Comments

@daswars
Copy link

daswars commented Aug 20, 2020

Hi,

With version 2.7.0 and older I created and closed alarms with alias.

This is not possible since version 3.X.
Since version 3.x the parameter alias is no longer available in closeAlert
Although it is documented like this:
https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie#close-alert-command
Example:
opsgenie-lamp closeAlert --apiKey ab5454992-fabb2-4ba2-ad44f-1af65ds8b5c079 --alias appserver3Down

ERROR: "Error occured while executing command: flag provided but not defined: -alias"

Point two:
When I download the latest version (https://s3-us-west-2.amazonaws.com/opsgeniedownloads/repo/opsgenie-lamp-3.8.0.zip) and I display the version, it says: "lamp version 3.2.0".

@krazyipman
Copy link

krazyipman commented Aug 21, 2021

same experience. --alias is not working on closeAlert and getAlert on version 3.X. Downloaded version 3.1.4

@ConnorEyles-atlassian
Copy link

Hi there!

If you are wanting to close an alert using the Alias the correct format is the following -

opsgenie-lamp closeAlert --apiKey ab5454992-fabb2-4ba2-ad44f-1af65ds8b5c079 --identifier=alias --id appserver3Down

I understand our documentation says otherwise, we are currently in the works of updating this.

Thanks,
Connor

@ievgenii-shepeliuk
Copy link

Hello, any progress on this issue to properly address it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants