Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Conversation

@guxlightyear
Copy link

@guxlightyear guxlightyear commented Nov 5, 2021

This is related to the issue I posted in #1

This PR adds an extra optional configuration on the CLI, to select a different domain to issue OpsGenie requests to. It is necessary when working on OpsGenie EU, since it uses a different domain (api.eu.opsgenie.com).

Tested it locally, and it works as expected.

@guxlightyear guxlightyear changed the title Add new options to the documentation Allow configuring OpsGenie domain Nov 5, 2021
@rosscdh
Copy link

rosscdh commented Nov 5, 2021

Fantastic just what I was thinking about doing! thanks @guxlightyear

💯


const pageSize = 100; // The max.

async function listAlerts(query: string, offset: number, apiKey: string, options: any): Promise<any[]> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiKey was actually not used in the method (it is part of the Options argument).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants