First of initiate the client with GeniKey. E.g., in init
func init() {
opsgenieclient.Initiate(opsgenieclient.Config{
ApiKey: "<your api key>",
})
}Now as the client is created, we can create an alert
opg, _ := opsgenieclient.CreateInstance(ctx)
_ = opg.CreateAlert(request)