Documentation ¶
Index ¶
Constants ¶
View Source
const ( AlertKind = "alert" AlertConfigKind = "alertConfig" RecipientKind = "recipient" AlertStateActive = "active" AlertStateSuppressed = "suppressed" AlertStateDisabled = "disabled" AlertStateEnabled = "enabled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedOptionsSpec ¶
type Alert ¶
type Alert struct { client.Resource Description string `json:"description"` State string `json:"state"` Severity string `json:"severity"` TargetType string `json:"targetType"` TargetID string `json:"targetId"` HostRule CommonHealthRule `json:"hostRule"` ServiceRule CommonHealthRule `json:"serviceRule"` StackRule CommonHealthRule `json:"stackRule"` AdvancedOptions AdvancedOptionsSpec `json:"advancedOptions"` MetricRule MetricRuleSpec `json:"metricRule"` Environment string `json:"environment"` RecipientID string `json:"recipientId"` StartsAt time.Time `json:"startsAt,omitempty"` EndsAt time.Time `json:"endsAt,omitempty"` }
type AlertConfig ¶
type AlertConfig struct { client.Resource ResolveTimeout string `json:"resolveTimeout"` EmailConfig EmailConfigSpec `json:"emailConfig"` }
type CommonHealthRule ¶
type CommonHealthRule struct {
HoldDuration string `json:"holdDuration, omitempty"`
}
type EmailConfigSpec ¶
type EmailRecipientSpec ¶
type EmailRecipientSpec struct {
Address string `json:"address"`
}
type MetricRuleSpec ¶
type Recipient ¶
type Recipient struct { client.Resource Environment string `json:"environment"` RecipientType string `json:"recipientType"` EmailRecipient EmailRecipientSpec `json:"emailRecipient"` WebhookRecipient WebhookRecipientSpec `json:"webhookRecipient"` }
type WebhookRecipientSpec ¶
Click to show internal directories.
Click to hide internal directories.