Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Id *int64 `json:"id,omitempty"` Name string `json:"name"` Type string `json:"type"` Configuration Configuration `json:"configuration"` Links Links `json:"links,omitempty"` }
type Configuration ¶
type Configuration struct { // Slack Url string `json:"url,omitempty"` Channel string `json:"channel,omitempty"` // Email Recipients string `json:"recipients,omitempty"` IncludeJsonAttachments bool `json:"include_json_attachment,omitempty"` // OpsGenie ApiKey string `json:"api_key,omitempty"` Teams string `json:"teams,omitempty"` Tags string `json:"tags,omitempty"` // NewRelic does not return API keys, so we need to keep a hash // of the config to know if it has been modified PreviousVersion string `json:"-" hash:"-"` }
func (Configuration) Equals ¶
func (c Configuration) Equals(other Configuration) bool
func (Configuration) IsModified ¶
func (c Configuration) IsModified() bool
func (Configuration) Version ¶
func (c Configuration) Version() string
type NotificationChannel ¶
type NotificationChannel struct {
Channel Channel `json:"channel"`
}
func (NotificationChannel) Equals ¶
func (channel NotificationChannel) Equals(other NotificationChannel) bool
type NotificationChannelList ¶
type NotificationChannelList struct {
Channels []Channel `json:"channels"`
}
Click to show internal directories.
Click to hide internal directories.