opsgenie / opsgenie-nodejs-sdk

OpsGenie Node.js SDK
https://www.opsgenie.com/docs/api-and-client-libraries/opsgenie-nodejs-api
Apache License 2.0
25 stars 19 forks source link

opsgenie.configure() doesn't change the default retryDelay #59

Open adam-farhi opened 1 year ago

adam-farhi commented 1 year ago
    opsgenie.configure({
      retryDelay: 3, //     <--- doesn't change anything
    });

    const createAlertRequest = {...};

    opsgenie.alertV2.create(createAlertRequest, (requestStatus) => {
          this.logger.info(`Created Opsgenie alert`, requestStatus, createAlertRequest);
          const requestId = requestStatus?.requestId;
          resolve({ requestId });
        });

will still use the default 5s delay