github.com/stakater/IngressMonitorController@v1.0.103/pkg/monitors/uptime/uptime-responses.go (about) 1 package uptime 2 3 type UptimeMonitorGetMonitorsResponse struct { 4 Count int `json:"count"` 5 Next int `json:"next"` 6 Previous int `json:"previous"` 7 Monitors []UptimeMonitorMonitor `json:"results"` 8 } 9 10 type UptimeMonitorPagination struct { 11 Offset int `json:"offset"` 12 Limit int `json:"limit"` 13 Total int `json:"total"` 14 } 15 16 type UptimeMonitorMonitor struct { 17 PK int `json:"pk"` 18 URL string `json:"url"` 19 Name string `json:"name"` 20 CachedRespTime float64 `json:"cached_response_time"` 21 CachedUptime float64 `json:"cached_uptime"` 22 ContactGroups []string `json:"contact_groups"` 23 CreatedAt string `json:"created_at"` 24 ModifiedAt string `json:"modified_at"` 25 Locations []string `json:"locations"` 26 Tags []string `json:"tags"` 27 CheckType string `json:"check_type"` 28 Escalations []string `json:"escalations"` 29 Maintenance UptimeMonitorMaintenance `json:"maintenance"` 30 MonitoringServiceType string `json:"monitoring_service_type"` 31 IsPaused bool `json:"is_paused"` 32 StateIsUp bool `json:"state_is_up"` 33 MspScript string `json:"msp_script"` 34 MspDNSRecordType string `json:"msp_dns_record_type"` 35 MspIPVersion string `json:"msp_use_ip_version"` 36 MspSensitivity int `json:"msp_sensitivity"` 37 MspInterval int `json:"msp_interval"` 38 MspHeaders string `json:"msp_headers"` 39 MspNotes string `json:"msp_notes"` 40 MspEncryption string `json:"msp_encryption"` 41 MspExpectString string `json:"msp_expect_string"` 42 MspAddress string `json:"msp_address"` 43 MspProtocol string `json:"msp_protocol"` 44 MspDNSServer string `json:"msp_dns_server"` 45 MspSendString string `json:"msp_send_string"` 46 MspUsername string `json:"msp_username"` 47 MspExpectStringType string `json:"msp_expect_string_type"` 48 MspPassword string `json:"msp_password"` 49 MspThreshold int `json:"msp_threshold"` 50 MspIncludeGlobalMetrics bool `json:"msp_include_global_metrics"` 51 MspPort int `json:"msp_port"` 52 StatsURL string `json:"stats_url"` 53 AlertsURL string `json:"alerts_url"` 54 } 55 56 type UptimeMonitorMaintenance struct { 57 Timezone string `json:"timezone"` 58 State string `json:"state"` 59 Schedule []string `json:"schedule"` 60 } 61 62 type UptimeMonitorLogs struct { 63 Type int `json:"type"` 64 Datetime int `json:"datetime"` 65 Duration int `json:"duration"` 66 } 67 68 type UptimeMonitorMonitorResponse struct { 69 Errors bool `json:"errors"` 70 Details string `json:"details"` 71 Results UptimeMonitorMonitor `json:"results"` 72 } 73 74 type UptimeMonitorMonitorStatus struct { 75 ID int `json:"id"` 76 Status int `json:"status"` 77 } 78 79 type UptimeMonitorStatusMonitorResponse struct { 80 Stat string `json:"stat"` 81 Monitor struct { 82 ID int `json:"id"` 83 } `json:"monitor"` 84 }