Documentation
¶
Index ¶
- Constants
- func UptimeMonitorMonitorToBaseMonitorMapper(uptimeMonitor UptimeMonitorMonitor) *models.Monitor
- func UptimeMonitorMonitorsToBaseMonitorsMapper(uptimeMonitors []UptimeMonitorMonitor) []models.Monitor
- type UpTimeMonitorService
- func (monitor *UpTimeMonitorService) Add(m models.Monitor)
- func (monitor *UpTimeMonitorService) Equal(oldMonitor models.Monitor, newMonitor models.Monitor) bool
- func (monitor *UpTimeMonitorService) GetAll() []models.Monitor
- func (monitor *UpTimeMonitorService) GetAllByName(name string) ([]models.Monitor, error)
- func (monitor *UpTimeMonitorService) GetByName(name string) (*models.Monitor, error)
- func (monitor *UpTimeMonitorService) Remove(m models.Monitor)
- func (monitor *UpTimeMonitorService) Setup(p config.Provider)
- func (monitor *UpTimeMonitorService) Update(m models.Monitor)
- type UpTimeStatusPage
- type UpTimeStatusPageService
- func (statusPageService *UpTimeStatusPageService) Add(statusPage UpTimeStatusPage) (string, error)
- func (statusPageService *UpTimeStatusPageService) AddMonitorToStatusPage(statusPage UpTimeStatusPage, monitor models.Monitor) (string, error)
- func (statusPageService *UpTimeStatusPageService) Get(ID string) (*UpTimeStatusPage, error)
- func (statusPageService *UpTimeStatusPageService) GetAllStatusPages(name string) ([]UpTimeStatusPage, error)
- func (statusPageService *UpTimeStatusPageService) GetStatusPagesForMonitor(ID string) ([]string, error)
- func (statusPageService *UpTimeStatusPageService) Remove(statusPage UpTimeStatusPage)
- func (statusPageService *UpTimeStatusPageService) RemoveMonitorFromStatusPage(statusPage UpTimeStatusPage, monitor models.Monitor) (string, error)
- func (statusPage *UpTimeStatusPageService) Setup(p config.Provider)
- type UptimeMonitorAlertContacts
- type UptimeMonitorError
- type UptimeMonitorGetMonitorsResponse
- type UptimeMonitorLogs
- type UptimeMonitorMonitor
- type UptimeMonitorMonitorStatus
- type UptimeMonitorNewMonitorResponse
- type UptimeMonitorPagination
- type UptimeMonitorStatusMonitorResponse
- type UptimePublicStatusPage
- type UptimeStatusPageResponse
- type UptimeStatusPagesResponse
Constants ¶
View Source
const DefaultInterval = 300
Default Interval for status checking
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 ¶
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 ¶
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 ¶
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 UptimeMonitorError ¶
type UptimeMonitorGetMonitorsResponse ¶
type UptimeMonitorGetMonitorsResponse struct {
Stat string `json:"stat"`
Pagination UptimeMonitorPagination `json:"pagination"`
Monitors []UptimeMonitorMonitor `json:"monitors"`
}
type UptimeMonitorLogs ¶
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 UptimeMonitorNewMonitorResponse ¶
type UptimeMonitorNewMonitorResponse struct {
Stat string `json:"stat"`
Monitor UptimeMonitorMonitorStatus `json:"monitor"`
Error UptimeMonitorError `json:"error"`
}
type UptimeMonitorPagination ¶
type UptimeMonitorStatusMonitorResponse ¶
type UptimeMonitorStatusMonitorResponse struct {
Stat string `json:"stat"`
Error UptimeMonitorError `json:"error"`
Monitor struct {
ID int `json:"id"`
} `json:"monitor"`
}
type UptimePublicStatusPage ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.