forked from opsgenie/oec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HEIMDALL-4809 add Opsgenie Action support to OEC
- Loading branch information
1 parent
ae3f27e
commit 1715997
Showing
14 changed files
with
48 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,17 @@ | ||
package queue | ||
|
||
type QueuePayload struct { | ||
Alert Alert `json:"alert"` | ||
Entity Entity `json:"entity"` | ||
Action string `json:"action"` | ||
MappedAction MappedAction `json:"mappedActionV2"` | ||
} | ||
|
||
type Alert struct { | ||
AlertId string `json:"alertId"` | ||
type Entity struct { | ||
Id string `json:"id"` | ||
Type string `json:"type"` | ||
} | ||
|
||
type MappedAction struct { | ||
Name string `json:"name"` | ||
ExtraField string `json:"extraField"` | ||
} | ||
|
||
/* Unmarshaling of full payload is not necessary | ||
type QueuePayload struct { | ||
Source Source `json:"source,omitempty"` | ||
Alert Alert `json:"alert,omitempty"` | ||
Action string `json:"action,omitempty"` | ||
MappedAction MappedAction `json:"mappedAction,omitempty"` | ||
IntegrationId string `json:"integrationName,omitempty"` | ||
IntegrationName string `json:"integrationId,omitempty"` | ||
EscalationId string `json:"escalationId,omitempty"` | ||
EscalationName string `json:"escalationName,omitempty"` | ||
EscalationNotify EscalationNotify `json:"escalationNotify,omitempty"` | ||
EscalationTime int64 `json:"escalationTime,omitempty"` | ||
RepeatCount int `json:"repeatCount,omitempty"` | ||
} | ||
type Source struct { | ||
Name string `json:"name,omitempty"` | ||
Type string `json:"type,omitempty"` | ||
} | ||
type Alert struct { | ||
AlertId string `json:"alertId,omitempty"` | ||
Message string `json:"message,omitempty"` | ||
Tags []string `json:"tags,omitempty"` | ||
TinyId string `json:"tinyId,omitempty"` | ||
Entity string `json:"entity,omitempty"` | ||
Alias string `json:"alias,omitempty"` | ||
CreatedAt int64 `json:"createdAt,omitempty"` | ||
UpdatedAt int64 `json:"updatedAt,omitempty"` | ||
Username string `json:"username,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
Recipient string `json:"recipient,omitempty"` | ||
Team string `json:"team,omitempty"` | ||
Owner string `json:"owner,omitempty"` | ||
Recipients []string `json:"recipients,omitempty"` | ||
Teams []string `json:"teams,omitempty"` | ||
Actions []string `json:"actions,omitempty"` | ||
SnoozeEndDate string `json:"snoozeEndDate,omitempty"` | ||
SnoozedUntil int64 `json:"snoozedUntil,omitempty"` | ||
AddedTags string `json:"addedTags,omitempty"` | ||
RemovedTags string `json:"removedTags,omitempty"` | ||
Priority string `json:"priority,omitempty"` | ||
OldPriority string `json:"oldPriority,omitempty"` | ||
Source string `json:"source,omitempty"` | ||
} | ||
type MappedAction struct { | ||
Name string `json:"name,omitempty"` | ||
ExtraField string `json:"extraField,omitempty"` | ||
} | ||
type EscalationNotify struct { | ||
Entity string `json:"entity,omitempty"` | ||
Id string `json:"id,omitempty"` | ||
Type string `json:"type,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
} | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters