quick-start-connectors

Форк
0

README.md

Opsgenie Connector

This package is a utility for connecting Cohere to Opsgenie.

Configuration

The search connector requires the following environment variables:

OPSGENIE_DOMAIN_URL

This variable should contain the URL of your Opsgenie domain.

OPSGENIE_API_KEY

This variable should contain the API key for the Opsgenie domain. To get an API key, use this link.

OPSGENIE_CONNECTOR_API_KEY

This variable should contain the API key for the connector.

Optional Configuration

OPSGENIE_SEARCH_LIMIT

This variable might contain the maximum number of results to return from Opsgenie. Max is 100, default is 20.

Development

Create a virual environment and install dependencies with poetry. We recommend using in-project virtual environments:

$ poetry config virtualenvs.in-project true
$ poetry install --no-root

Next, start up the search connector server:

$ poetry run flask --app provider --debug run --port 5000

and check with curl to see that everything works:

curl --request POST \
--url http://localhost:5000/search \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <CONNECTOR_API_KEY>' \
--data '{
"query": "BBQ"
}'

Alternatively, load up the Swagger UI and try out the API from a browser: http://localhost:5000/ui/

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.