diff --git a/CHANGELOG.md b/CHANGELOG.md index 6129474..d9a8306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/connection.go b/connection.go index 62be246..5d38f60 100644 --- a/connection.go +++ b/connection.go @@ -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 @@ -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"` diff --git a/connector.go b/connector.go index df43379..f724b90 100644 --- a/connector.go +++ b/connector.go @@ -156,6 +156,8 @@ var ConnectorTypes = struct { ZoomMeeting string StatusPageIO string Webex string + DingTalk string + DingTalkAction string }{ AWSLambda: "aws_lambda", AzureFAAS: "azure_faas", @@ -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 @@ -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. diff --git a/version.go b/version.go index c895dfa..a5a57ec 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v2.2.2" +const Version = "v2.2.3"