Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring OpsGenie domain #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

💯

@@ -8,9 +8,9 @@ import { OutputStream } from "../lib/output-stream";

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants