Documentation ¶
Index ¶
- type OAuth2Credentials
- type WebHook
- func (me *WebHook) FillDemoValues() []string
- func (me *WebHook) HandlePreconditions() error
- func (me *WebHook) MarshalHCL(properties hcl.Properties) error
- func (me *WebHook) PrepareMarshalHCL(decoder hcl.Decoder) error
- func (me *WebHook) Schema() map[string]*schema.Schema
- func (me *WebHook) UnmarshalHCL(decoder hcl.Decoder) error
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 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) 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 (*WebHook) HandlePreconditions ¶
func (*WebHook) MarshalHCL ¶
func (me *WebHook) MarshalHCL(properties hcl.Properties) error
func (*WebHook) PrepareMarshalHCL ¶ added in v1.51.0
Click to show internal directories.
Click to hide internal directories.