influxdata / influxdata/kapacitor

opsgenie integration: make enity customizable

Open
#1,780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Currently both the alias and entity fields are set to the same value, could this be made customizable?
https://github.com/influxdata/kapacitor/blob/master/services/opsgenie/service.go#L140
ogData["entity"] = entityID
ogData["alias"] = entityID

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in services/opsgenie/service.go at the referenced payload construction around line 140, then trace where entityID is configured and passed into the integration. Determine how alias and entity can be supplied independently while preserving the current behavior when only one value is provided. No test file is mentioned in the issue, so identify the relevant service tests before making the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.