Skip to content

Commit

Permalink
Merge pull request #16 from iLert/fix/missing-connector-types-for-ter…
Browse files Browse the repository at this point in the history
…raform

fix missing connector types for terraform provider
  • Loading branch information
yacut authored Nov 23, 2022
2 parents 7168a09 + a0e712e commit b3662b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
8 changes: 7 additions & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ var ConnectorTypes = struct {
StatusPageIO string
Webex string
DingTalk string
DingTalkAction string
AutomationRule string
}{
AWSLambda: "aws_lambda",
AzureFAAS: "azure_faas",
Expand All @@ -189,7 +191,9 @@ var ConnectorTypes = struct {
ZoomMeeting: "zoom_meeting",
StatusPageIO: "status_page_io",
Webex: "webex",
DingTalk: "dingtalk",
DingTalk: "ding_talk",
DingTalkAction: "ding_talk_action",
AutomationRule: "automation_rule",
}

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

// CreateConnectorInput represents the input of a CreateConnector operation.
Expand Down
11 changes: 7 additions & 4 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ type Service struct {

// ServiceUptime defines services uptime
type ServiceUptime struct {
UptimePercentage ServiceUptimePercentage `json:"uptimePercentage"`
RangeStart string `json:"rangeStart"` // Date time string in ISO format
RangeEnd string `json:"rangeEnd"` // Date time string in ISO format
Outages []ServiceOutage `json:"outages"`
UptimePercentage *ServiceUptimePercentage `json:"uptimePercentage"`
}

// ServiceUptimePercentage defines service uptime percentage
type ServiceUptimePercentage struct {
RangeStart string `json:"rangeStart"` // Date time string in ISO format
RangeEnd string `json:"rangeEnd"` // Date time string in ISO format
Outages ServiceOutage `json:"outages"`
P90 float64 `json:"p90"`
P60 float64 `json:"p60"`
P30 float64 `json:"p30"`
}

// ServiceOutage defines services outage
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.3.0"
const Version = "v2.3.1"

0 comments on commit b3662b0

Please sign in to comment.