Discover Packages
github.com/nauxliu/terraform-provider-cronitor
cronitor
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 13, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Client struct {
ApiKey string
}
type Monitor struct {
Code string `json:"code,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Tags []string `json:"tags,omitempty"`
Notifications Notifications `json:"notifications"`
Rules []Rule `json:"rules"`
Note string `json:"note"`
Timezone string `json:"timezone"`
}
type Notifications struct {
Phones []string `json:"phones,omitempty"`
Webhooks []string `json:"webhooks,omitempty"`
Emails []string `json:"emails,omitempty"`
Slack []string `json:"slack,omitempty"`
Templates []string `json:"templates,omitempty"`
}
type Rule struct {
RuleType string `json:"rule_type"`
Value string `json:"value,omitempty"`
TimeUnit string `json:"time_unit,omitempty"`
HoursToFollowupAlert int `json:"hours_to_followup_alert,omitempty"`
GraceSeconds int `json:"grace_seconds,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.