Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { ID int `json:"id"` Name string `json:"name"` Status string `json:"status"` PerformanceStatus string `json:"performance_status"` AlertNote string `json:"alert_note"` Location string `json:"location"` AlertUsers []int `json:"alert_users"` AlertContacts []int `json:"alert_contacts"` MonitoringInterval int `json:"monitoring_interval"` URL string `json:"url"` RequestTimeout int `json:"request_timeout"` BasicAuthUsername string `json:"basic_auth_username"` BasicAuthPassword string `json:"basic_auth_password"` CommandString string `json:"command_string"` SuccessString string `json:"success_string"` ErrorString string `json:"error_string"` }
type CheckListResponse ¶
type CheckListResponse struct {
Results []Check `json:"results"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...ClientOption) *Client
func (*Client) GetUsers ¶
func (c *Client) GetUsers() (*UserListResponse, error)
type ClientOption ¶
type ClientOption func(c *Client)
func WithAuth ¶
func WithAuth(apiKey string, subdomain string) ClientOption
type UserListResponse ¶
Click to show internal directories.
Click to hide internal directories.