notifications

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebHook

type WebHook struct {
	Enabled   bool   `json:"-"`
	Name      string `json:"-"`
	ProfileID string `json:"-"`

	URL                      string       `json:"url"`                      // The URL of the WebHook endpoint
	Insecure                 bool         `json:"acceptAnyCertificate"`     // Accept any SSL certificate (including self-signed and invalid certificates)
	NotifyEventMergesEnabled bool         `json:"notifyEventMergesEnabled"` // Call webhook if new events merge into existing problems
	NotifyClosedProblems     bool         `json:"notifyClosedProblems"`     // Call webhook if problem is closed
	Headers                  http.Headers `json:"headers,omitempty"`        // Additional HTTP headers
	Payload                  string       `json:"payload"`                  // The content of the notification message. Type '{' for placeholder suggestions
	UseOAuth2                *bool        `json:"useOAuth2,omitempty"`
}

func (*WebHook) FillDemoValues

func (me *WebHook) FillDemoValues() []string

func (*WebHook) MarshalHCL

func (me *WebHook) MarshalHCL(properties hcl.Properties) error

func (*WebHook) Schema

func (me *WebHook) Schema() map[string]*schema.Schema

func (*WebHook) UnmarshalHCL

func (me *WebHook) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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