github.com/stakater/IngressMonitorController@v1.0.103/pkg/monitors/uptimerobot/uptime-responses.go (about)

     1  package uptimerobot
     2  
     3  type UptimeMonitorGetMonitorsResponse struct {
     4  	Stat       string                  `json:"stat"`
     5  	Pagination UptimeMonitorPagination `json:"pagination"`
     6  	Monitors   []UptimeMonitorMonitor  `json:"monitors"`
     7  }
     8  
     9  type UptimeMonitorPagination struct {
    10  	Offset int `json:"offset"`
    11  	Limit  int `json:"limit"`
    12  	Total  int `json:"total"`
    13  }
    14  
    15  type UptimeMonitorMonitor struct {
    16  	ID             int                          `json:"id"`
    17  	FriendlyName   string                       `json:"friendly_name"`
    18  	URL            string                       `json:"url"`
    19  	Type           int                          `json:"type"`
    20  	SubType        string                       `json:"sub_type"`
    21  	KeywordType    int                          `json:"keyword_type"`
    22  	KeywordValue   string                       `json:"keyword_value"`
    23  	HTTPUsername   string                       `json:"http_username"`
    24  	HTTPPassword   string                       `json:"http_password"`
    25  	Port           string                       `json:"port"`
    26  	Interval       int                          `json:"interval"`
    27  	Status         int                          `json:"status"`
    28  	CreateDatetime int                          `json:"create_datetime"`
    29  	Logs           []UptimeMonitorLogs          `json:"logs"`
    30  	AlertContacts  []UptimeMonitorAlertContacts `json:"alert_contacts"`
    31  }
    32  
    33  type UptimeMonitorAlertContacts struct {
    34  	ID         string `json:"id"`
    35  	Threshold  int    `json:"threshold"`
    36  	Recurrence int    `json:"recurrence"`
    37  }
    38  
    39  type UptimeMonitorLogs struct {
    40  	Type     int `json:"type"`
    41  	Datetime int `json:"datetime"`
    42  	Duration int `json:"duration"`
    43  }
    44  
    45  type UptimeMonitorNewMonitorResponse struct {
    46  	Stat    string                     `json:"stat"`
    47  	Monitor UptimeMonitorMonitorStatus `json:"monitor"`
    48  }
    49  
    50  type UptimeMonitorMonitorStatus struct {
    51  	ID     int `json:"id"`
    52  	Status int `json:"status"`
    53  }
    54  
    55  type UptimeMonitorStatusMonitorResponse struct {
    56  	Stat    string `json:"stat"`
    57  	Monitor struct {
    58  		ID int `json:"id"`
    59  	} `json:"monitor"`
    60  }
    61  
    62  type UptimePublicStatusPage struct {
    63  	ID           int    `json:"id"`
    64  	FriendlyName string `json:"friendly_name"`
    65  	Monitors     []int  `json:"monitors"`
    66  	CustomDomain string `json:"custom_domain"`
    67  	Password     string `json:"password"`
    68  	Sort         int    `json:"sort"`
    69  	Status       int    `json:"status"`
    70  }
    71  
    72  type UptimeStatusPageResponse struct {
    73  	Stat                   string `json:"stat"`
    74  	UptimePublicStatusPage struct {
    75  		ID int `json:"id"`
    76  	} `json:"psp"`
    77  }
    78  
    79  type UptimeStatusPagesResponse struct {
    80  	Stat       string `json:"stat"`
    81  	Pagination struct {
    82  		Offset int `json:"offset"`
    83  		Limit  int `json:"limit"`
    84  		Total  int `json:"total"`
    85  	} `json:"pagination"`
    86  	StatusPages []UptimePublicStatusPage `json:"psps"`
    87  }