uptimerobot

package
v1.0.103 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UptimeMonitorMonitorToBaseMonitorMapper

func UptimeMonitorMonitorToBaseMonitorMapper(uptimeMonitor UptimeMonitorMonitor) *models.Monitor

func UptimeMonitorMonitorsToBaseMonitorsMapper

func UptimeMonitorMonitorsToBaseMonitorsMapper(uptimeMonitors []UptimeMonitorMonitor) []models.Monitor

Types

type UpTimeMonitorService

type UpTimeMonitorService struct {
	// contains filtered or unexported fields
}

func (*UpTimeMonitorService) Add

func (monitor *UpTimeMonitorService) Add(m models.Monitor)

func (*UpTimeMonitorService) GetAll

func (monitor *UpTimeMonitorService) GetAll() []models.Monitor

func (*UpTimeMonitorService) GetAllByName added in v1.0.78

func (monitor *UpTimeMonitorService) GetAllByName(name string) ([]models.Monitor, error)

func (*UpTimeMonitorService) GetByName

func (monitor *UpTimeMonitorService) GetByName(name string) (*models.Monitor, error)

func (*UpTimeMonitorService) Remove

func (monitor *UpTimeMonitorService) Remove(m models.Monitor)

func (*UpTimeMonitorService) Setup

func (monitor *UpTimeMonitorService) Setup(p config.Provider)

func (*UpTimeMonitorService) Update

func (monitor *UpTimeMonitorService) Update(m models.Monitor)

type UpTimeStatusPage

type UpTimeStatusPage struct {
	ID       string
	Name     string
	Monitors []string
}

func UptimeStatusPageToBaseStatusPageMapper

func UptimeStatusPageToBaseStatusPageMapper(uptimePublicStatusPage UptimePublicStatusPage) *UpTimeStatusPage

type UpTimeStatusPageService

type UpTimeStatusPageService struct {
	// contains filtered or unexported fields
}

func (*UpTimeStatusPageService) Add

func (statusPageService *UpTimeStatusPageService) Add(statusPage UpTimeStatusPage) (string, error)

func (*UpTimeStatusPageService) AddMonitorToStatusPage

func (statusPageService *UpTimeStatusPageService) AddMonitorToStatusPage(statusPage UpTimeStatusPage, monitor models.Monitor) (string, error)

func (*UpTimeStatusPageService) Get

func (statusPageService *UpTimeStatusPageService) Get(ID string) (*UpTimeStatusPage, error)

func (*UpTimeStatusPageService) GetAllStatusPages added in v1.0.78

func (statusPageService *UpTimeStatusPageService) GetAllStatusPages(name string) ([]UpTimeStatusPage, error)

func (*UpTimeStatusPageService) GetStatusPagesForMonitor

func (statusPageService *UpTimeStatusPageService) GetStatusPagesForMonitor(ID string) ([]string, error)

func (*UpTimeStatusPageService) Remove

func (statusPageService *UpTimeStatusPageService) Remove(statusPage UpTimeStatusPage)

func (*UpTimeStatusPageService) RemoveMonitorFromStatusPage

func (statusPageService *UpTimeStatusPageService) RemoveMonitorFromStatusPage(statusPage UpTimeStatusPage, monitor models.Monitor) (string, error)

func (*UpTimeStatusPageService) Setup

func (statusPage *UpTimeStatusPageService) Setup(p config.Provider)

type UptimeMonitorAlertContacts added in v1.0.98

type UptimeMonitorAlertContacts struct {
	ID         string `json:"id"`
	Threshold  int    `json:"threshold"`
	Recurrence int    `json:"recurrence"`
}

type UptimeMonitorGetMonitorsResponse

type UptimeMonitorGetMonitorsResponse struct {
	Stat       string                  `json:"stat"`
	Pagination UptimeMonitorPagination `json:"pagination"`
	Monitors   []UptimeMonitorMonitor  `json:"monitors"`
}

type UptimeMonitorLogs

type UptimeMonitorLogs struct {
	Type     int `json:"type"`
	Datetime int `json:"datetime"`
	Duration int `json:"duration"`
}

type UptimeMonitorMonitor

type UptimeMonitorMonitor struct {
	ID             int                          `json:"id"`
	FriendlyName   string                       `json:"friendly_name"`
	URL            string                       `json:"url"`
	Type           int                          `json:"type"`
	SubType        string                       `json:"sub_type"`
	KeywordType    int                          `json:"keyword_type"`
	KeywordValue   string                       `json:"keyword_value"`
	HTTPUsername   string                       `json:"http_username"`
	HTTPPassword   string                       `json:"http_password"`
	Port           string                       `json:"port"`
	Interval       int                          `json:"interval"`
	Status         int                          `json:"status"`
	CreateDatetime int                          `json:"create_datetime"`
	Logs           []UptimeMonitorLogs          `json:"logs"`
	AlertContacts  []UptimeMonitorAlertContacts `json:"alert_contacts"`
}

type UptimeMonitorMonitorStatus

type UptimeMonitorMonitorStatus struct {
	ID     int `json:"id"`
	Status int `json:"status"`
}

type UptimeMonitorNewMonitorResponse

type UptimeMonitorNewMonitorResponse struct {
	Stat    string                     `json:"stat"`
	Monitor UptimeMonitorMonitorStatus `json:"monitor"`
}

type UptimeMonitorPagination

type UptimeMonitorPagination struct {
	Offset int `json:"offset"`
	Limit  int `json:"limit"`
	Total  int `json:"total"`
}

type UptimeMonitorStatusMonitorResponse

type UptimeMonitorStatusMonitorResponse struct {
	Stat    string `json:"stat"`
	Monitor struct {
		ID int `json:"id"`
	} `json:"monitor"`
}

type UptimePublicStatusPage

type UptimePublicStatusPage struct {
	ID           int    `json:"id"`
	FriendlyName string `json:"friendly_name"`
	Monitors     []int  `json:"monitors"`
	CustomDomain string `json:"custom_domain"`
	Password     string `json:"password"`
	Sort         int    `json:"sort"`
	Status       int    `json:"status"`
}

type UptimeStatusPageResponse

type UptimeStatusPageResponse struct {
	Stat                   string `json:"stat"`
	UptimePublicStatusPage struct {
		ID int `json:"id"`
	} `json:"psp"`
}

type UptimeStatusPagesResponse

type UptimeStatusPagesResponse struct {
	Stat       string `json:"stat"`
	Pagination struct {
		Offset int `json:"offset"`
		Limit  int `json:"limit"`
		Total  int `json:"total"`
	} `json:"pagination"`
	StatusPages []UptimePublicStatusPage `json:"psps"`
}

Jump to

Keyboard shortcuts

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