opsgenie-lamp icon indicating copy to clipboard operation
opsgenie-lamp copied to clipboard

Missing --alias at closeAlert since version 3.X

Open daswars opened this issue 4 years ago • 3 comments

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".

daswars avatar Aug 20 '20 13:08 daswars

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

krazyipman avatar Aug 21 '21 12:08 krazyipman

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

ConnorEyles-atlassian avatar Aug 26 '21 22:08 ConnorEyles-atlassian

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

ievgenii-shepeliuk avatar Feb 06 '23 16:02 ievgenii-shepeliuk