Documentation
¶
Index ¶
- Constants
- func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
- func NewHandler() handlers.Handler
- func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
- type PingdomOutCheckParams
- type PingdomOutMessage
- type PingdomOutProbe
Constants ¶
View Source
const ( DisplayName = "Pingdom" HandlerKey = "pingdom" MessageDirection = "out" DocumentationURL = "https://www.pingdom.com/resources/webhooks" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
func NewHandler ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type PingdomOutCheckParams ¶
type PingdomOutCheckParams struct {
BasicAuth bool `json:"basic_auth,omitempty"`
Encryption bool `json:"encryption,omitempty"`
FullURL string `json:"full_url,omitempty"`
Header string `json:"header,omitempty"`
Hostname string `json:"hostname,omitempty"`
IPV6 bool `json:"ipv6,omitempty"`
Port int `json:"port,omitempty"`
URL string `json:"url,omitempty"`
}
type PingdomOutMessage ¶
type PingdomOutMessage struct {
CheckId int64 `json:"check_id,omitempty"`
CheckName string `json:"check_name,omitempty"`
CheckType string `json:"check_type,omitempty"`
CheckParams PingdomOutCheckParams `json:"check_params,omitempty"`
Tags []string `json:"tags,omitempty"`
PreviousState string `json:"previous_state,omitempty"`
CurrentState string `json:"current_state,omitempty"`
StateChangedTimestamp int64 `json:"state_changed_timestamp,omitempty"`
StateChangedUTCTime string `json:"state_changed_utc_time,omitempty"`
LongDescription string `json:"long_description,omitempty"`
Description string `json:"description,omitempty"`
FirstProbe PingdomOutProbe `json:"first_probe,omitempty"`
SecondProbe PingdomOutProbe `json:"second_probe,omitempty"`
}
func PingdomOutMessageFromBytes ¶
func PingdomOutMessageFromBytes(bytes []byte) (PingdomOutMessage, error)
func (*PingdomOutMessage) CheckURL ¶
func (msg *PingdomOutMessage) CheckURL() string
type PingdomOutProbe ¶
Click to show internal directories.
Click to hide internal directories.