grofers / create-opsgenie-alert-action

GiHub action for creating new alert in OpsGenie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create OpsGenie alert action

Tests Compile

This action creates a new OpsGenie alert

Inputs

api_key

[Required] The api key provided by OpsGenie integration.

alias

[Required] The alias for the alert.

message

[Required] The actual alert message.

source

Alert's source. default is IP address of incoming request.

priority

[Required] Alert's priority, valid values: P1-P5.

description

The description for the new alert.

tags

The tags for the new alert, separated by commas.

using_eu_url

Default value is false. Must set to true if required OpsGenie API endpoint is 'https://api.eu.opsgenie.com'.

Example usage

uses: rockem/create-opsgenie-alert-action@v1
with:
    api_key: ${{ secrets.OPSGENIE_API_KEY }}
    alias: timeout-alert-alias
    message: > 
        Activity exceeded timeout: exceeded 60 seconds
    priority: P2
    tags: backend,timeout

About

GiHub action for creating new alert in OpsGenie


Languages

Language:JavaScript 100.0%