domain

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 2 Imported by: 0

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 Links struct {
	PolicyIds []int64 `json:"policy_ids"`
}

func (Links) Equals

func (links Links) Equals(other Links) bool

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL