Documentation ¶
Index ¶
- func UptimeMonitorMonitorToBaseMonitorMapper(uptimeMonitor UptimeMonitorMonitor) *models.Monitor
- func UptimeMonitorMonitorsToBaseMonitorsMapper(uptimeMonitors []UptimeMonitorMonitor) []models.Monitor
- type UpTimeMonitorService
- func (monitor *UpTimeMonitorService) Add(m models.Monitor)
- func (monitor *UpTimeMonitorService) GetAll() []models.Monitor
- 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) 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 UptimeMonitorGetMonitorsResponse
- type UptimeMonitorLogs
- type UptimeMonitorMonitor
- type UptimeMonitorMonitorStatus
- type UptimeMonitorNewMonitorResponse
- type UptimeMonitorPagination
- type UptimeMonitorStatusMonitorResponse
- type UptimePublicStatusPage
- type UptimeStatusPageResponse
- type UptimeStatusPagesResponse
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) 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) 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 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"` }
type UptimeMonitorNewMonitorResponse ¶
type UptimeMonitorNewMonitorResponse struct { Stat string `json:"stat"` Monitor UptimeMonitorMonitorStatus `json:"monitor"` }
type UptimeMonitorPagination ¶
type UptimePublicStatusPage ¶
type UptimeStatusPagesResponse ¶
type UptimeStatusPagesResponse struct { Stat string `json:"stat"` StatusPages []UptimePublicStatusPage `json:"psps"` }
Click to show internal directories.
Click to hide internal directories.