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 UptimeMonitorGetMonitorsResponse
- type UptimeMonitorLogs
- type UptimeMonitorMaintenance
- type UptimeMonitorMonitor
- type UptimeMonitorMonitorResponse
- type UptimeMonitorMonitorStatus
- type UptimeMonitorPagination
- type UptimeMonitorStatusMonitorResponse
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 UptimeMonitorGetMonitorsResponse ¶
type UptimeMonitorGetMonitorsResponse struct { Count int `json:"count"` Next int `json:"next"` Previous int `json:"previous"` Monitors []UptimeMonitorMonitor `json:"results"` }
type UptimeMonitorLogs ¶
type UptimeMonitorMonitor ¶
type UptimeMonitorMonitor struct { PK int `json:"pk"` URL string `json:"url"` Name string `json:"name"` CachedRespTime float64 `json:"cached_response_time"` CachedUptime float64 `json:"cached_uptime"` ContactGroups []string `json:"contact_groups"` CreatedAt string `json:"created_at"` ModifiedAt string `json:"modified_at"` Locations []string `json:"locations"` Tags []string `json:"tags"` CheckType string `json:"check_type"` Escalations []string `json:"escalations"` Maintenance UptimeMonitorMaintenance `json:"maintenance"` MonitoringServiceType string `json:"monitoring_service_type"` IsPaused bool `json:"is_paused"` StateIsUp bool `json:"state_is_up"` MspScript string `json:"msp_script"` MspDNSRecordType string `json:"msp_dns_record_type"` MspIPVersion string `json:"msp_use_ip_version"` MspSensitivity int `json:"msp_sensitivity"` MspInterval int `json:"msp_interval"` MspHeaders string `json:"msp_headers"` MspNotes string `json:"msp_notes"` MspEncryption string `json:"msp_encryption"` MspExpectString string `json:"msp_expect_string"` MspAddress string `json:"msp_address"` MspProtocol string `json:"msp_protocol"` MspDNSServer string `json:"msp_dns_server"` MspSendString string `json:"msp_send_string"` MspUsername string `json:"msp_username"` MspExpectStringType string `json:"msp_expect_string_type"` MspPassword string `json:"msp_password"` MspThreshold int `json:"msp_threshold"` MspIncludeGlobalMetrics bool `json:"msp_include_global_metrics"` MspPort int `json:"msp_port"` StatsURL string `json:"stats_url"` AlertsURL string `json:"alerts_url"` }
type UptimeMonitorMonitorResponse ¶
type UptimeMonitorMonitorResponse struct { Errors bool `json:"errors"` Details string `json:"details"` Results UptimeMonitorMonitor `json:"results"` }
type UptimeMonitorPagination ¶
Click to show internal directories.
Click to hide internal directories.