pingdom

package
v0.0.0-...-cf82eea Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 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 BasicHTTPCheck

type BasicHTTPCheck struct {
	Name     string
	URL      string
	Interval uint8
}

BasicHTTPCheck represents a data type holding the needed details for setting up a Http check

type Client

type Client pingdom.Client

Client is a wrapper type around go-pingdom clinet

func NewClient

func NewClient(credentials Credentials) (Client, error)

NewClient creates single user pingdom client

func (*Client) AddCheck

func (c *Client) AddCheck(checks []BasicHTTPCheck)

AddCheck add a new check to pingdom service

func (*Client) DeleteCheck

func (c *Client) DeleteCheck(checks []BasicHTTPCheck)

DeleteCheck deletes existing check on pingdom service

func (*Client) UpdateCheck

func (c *Client) UpdateCheck(checks []BasicHTTPCheck)

UpdateCheck updates existing check on pingdom service

type Credentials

type Credentials struct {
	Username string
	Password string
	Apikey   string
}

Credentials holds needed values for single user auth

Jump to

Keyboard shortcuts

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