Skip to content

Commit

Permalink
add dingtalk alert action and connector support
Browse files Browse the repository at this point in the history
  • Loading branch information
yacut committed Nov 17, 2022
1 parent e0a4648 commit e94d751
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 17.11.2022, Version 2.2.3

- add dingtalk alert action and connector support

## 08.09.2022, Version 2.2.2

- add fields for multiple responders in escalation rule (escalation policy)
Expand Down
6 changes: 6 additions & 0 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type ConnectionOutputParams struct {
WebhookURL string `json:"webhookUrl,omitempty"` // Custom
Email string `json:"email,omitempty"` // Zammad
PageID string `json:"pageId,omitempty"` // StatusPage.io
URL string `json:"url,omitempty"` // DingTalk
}

// ConnectionParamsAutotask definition
Expand All @@ -83,6 +84,11 @@ type ConnectionParamsDatadog struct {
Site string `json:"site,omitempty"` // `US` | `EU`
}

// ConnectionParamsDingTalkAction definition
type ConnectionParamsDingTalkAction struct {
URL string `json:"url,omitempty"`
}

// ConnectionParamsJira definition
type ConnectionParamsJira struct {
Project string `json:"project,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ var ConnectorTypes = struct {
ZoomMeeting string
StatusPageIO string
Webex string
DingTalk string
DingTalkAction string
}{
AWSLambda: "aws_lambda",
AzureFAAS: "azure_faas",
Expand All @@ -181,6 +183,8 @@ var ConnectorTypes = struct {
ZoomMeeting: "zoom_meeting",
StatusPageIO: "status_page_io",
Webex: "webex",
DingTalk: "dingtalk",
DingTalkAction: "dingtalk_action",
}

// ConnectorTypesAll defines connector all types list
Expand Down Expand Up @@ -209,6 +213,8 @@ var ConnectorTypesAll = []string{
ConnectorTypes.ZoomMeeting,
ConnectorTypes.StatusPageIO,
ConnectorTypes.Webex,
ConnectorTypes.DingTalk,
ConnectorTypes.DingTalkAction,
}

// CreateConnectorInput represents the input of a CreateConnector operation.
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ilert

// Version package version
const Version = "v2.2.2"
const Version = "v2.2.3"

0 comments on commit e94d751

Please sign in to comment.