opsgenie / opsgenie-lamp

OpsGenie Lamp with Go SDK
Apache License 2.0
34 stars 18 forks source link

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

Open daswars opened 4 years ago

daswars commented 4 years ago

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 commented 3 years ago

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

ConnorEyles-atlassian commented 3 years ago

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 commented 1 year ago

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