notifications

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2Credentials

type OAuth2Credentials struct {
	AccessTokenUrl               string  `json:"accessTokenUrl"`                         // Access token URL
	AuthenticateViaRequestHeader *bool   `json:"authenticateViaRequestHeader,omitempty"` // If false, the client credentials are included in the HTTP request body.
	ClientID                     string  `json:"clientId"`                               // Client ID
	ClientSecret                 string  `json:"clientSecret"`                           // Client secret
	Scope                        *string `json:"scope,omitempty"`                        // The scope of access you are requesting
}

func (*OAuth2Credentials) FillDemoValues

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

func (*OAuth2Credentials) MarshalHCL

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

func (*OAuth2Credentials) Schema

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

func (*OAuth2Credentials) UnmarshalHCL

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

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"`         // Use OAuth 2.0 for authentication
	OAuth2Credentials        *OAuth2Credentials `json:"oAuth2Credentials,omitempty"` // To authenticate your integration, the OAuth 2.0 *Client Credentials* Flow (Grant Type) is used. For details see [Client Credentials Flow](https://dt-url.net/ym22wsm)).\n\nThe obtained Access Token is subsequently provided in the *Authorization* header of the request carrying the notification payload.
	SecretUrl                *string            `json:"secretUrl,omitempty"`         // The secret URL of the webhook endpoint.
	UrlContainsSecret        *bool              `json:"urlContainsSecret,omitempty"` // Secret webhook URL
}

func (*WebHook) FillDemoValues

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

func (*WebHook) HandlePreconditions

func (me *WebHook) HandlePreconditions() error

func (*WebHook) MarshalHCL

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

func (*WebHook) PrepareMarshalHCL added in v1.51.0

func (me *WebHook) PrepareMarshalHCL(decoder hcl.Decoder) 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