Versions in this module Expand all Collapse all v0 v0.26.7 Jun 12, 2024 v0.26.6 Jun 8, 2024 Changes in this version + const BearerAuthScopes + func GetSwagger() (swagger *openapi3.T, err error) + func NewBulkInviteMembersByEmailRequest(server string, body BulkInviteMembersByEmailJSONRequestBody) (*http.Request, error) + func NewBulkInviteMembersByEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewConfirmInvitationRequest(server string, body ConfirmInvitationJSONRequestBody) (*http.Request, error) + func NewConfirmInvitationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateAccountRequest(server string, body CreateAccountJSONRequestBody) (*http.Request, error) + func NewCreateAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateMonitorRequest(server string, body CreateMonitorJSONRequestBody) (*http.Request, error) + func NewCreateMonitorRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewDeleteMonitorRequest(server string, monitorID string) (*http.Request, error) + func NewEditMonitorRequest(server string, monitorID string, body EditMonitorJSONRequestBody) (*http.Request, error) + func NewEditMonitorRequestWithBody(server string, monitorID string, contentType string, body io.Reader) (*http.Request, error) + func NewGetAllIncidentsRequest(server string, params *GetAllIncidentsParams) (*http.Request, error) + func NewGetAllMonitorsRequest(server string, params *GetAllMonitorsParams) (*http.Request, error) + func NewGetIncidentByIDRequest(server string, incidentID string) (*http.Request, error) + func NewGetMonitorByIDRequest(server string, monitorID string) (*http.Request, error) + func NewGetMonitorResponseTimeStatsRequest(server string, monitorID string, params *GetMonitorResponseTimeStatsParams) (*http.Request, error) + func NewGetProfileDetailsRequest(server string) (*http.Request, error) + func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error) + func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewToggleMonitorPauseRequest(server string, monitorID string, body ToggleMonitorPauseJSONRequestBody) (*http.Request, error) + func NewToggleMonitorPauseRequestWithBody(server string, monitorID string, contentType string, body io.Reader) (*http.Request, error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + type BulkInviteMembersByEmail struct + Emails []string + type BulkInviteMembersByEmailJSONRequestBody = BulkInviteMembersByEmail + type BulkInviteMembersByEmailResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseBulkInviteMembersByEmailResponse(rsp *http.Response) (*BulkInviteMembersByEmailResponse, error) + func (r BulkInviteMembersByEmailResponse) Status() string + func (r BulkInviteMembersByEmailResponse) StatusCode() int + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) BulkInviteMembersByEmail(ctx context.Context, body BulkInviteMembersByEmailJSONRequestBody, ...) (*http.Response, error) + func (c *Client) BulkInviteMembersByEmailWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ConfirmInvitation(ctx context.Context, body ConfirmInvitationJSONRequestBody, ...) (*http.Response, error) + func (c *Client) ConfirmInvitationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateAccount(ctx context.Context, body CreateAccountJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateMonitorWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DeleteMonitor(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) EditMonitor(ctx context.Context, monitorID string, body EditMonitorJSONRequestBody, ...) (*http.Response, error) + func (c *Client) EditMonitorWithBody(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) GetAllIncidents(ctx context.Context, params *GetAllIncidentsParams, ...) (*http.Response, error) + func (c *Client) GetAllMonitors(ctx context.Context, params *GetAllMonitorsParams, ...) (*http.Response, error) + func (c *Client) GetIncidentByID(ctx context.Context, incidentID string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetMonitorByID(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetMonitorResponseTimeStats(ctx context.Context, monitorID string, ...) (*http.Response, error) + func (c *Client) GetProfileDetails(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ToggleMonitorPause(ctx context.Context, monitorID string, body ToggleMonitorPauseJSONRequestBody, ...) (*http.Response, error) + func (c *Client) ToggleMonitorPauseWithBody(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + BulkInviteMembersByEmail func(ctx context.Context, body BulkInviteMembersByEmailJSONRequestBody, ...) (*http.Response, error) + BulkInviteMembersByEmailWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ConfirmInvitation func(ctx context.Context, body ConfirmInvitationJSONRequestBody, ...) (*http.Response, error) + ConfirmInvitationWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateAccount func(ctx context.Context, body CreateAccountJSONRequestBody, ...) (*http.Response, error) + CreateAccountWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateMonitor func(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*http.Response, error) + CreateMonitorWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + DeleteMonitor func(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*http.Response, error) + EditMonitor func(ctx context.Context, monitorID string, body EditMonitorJSONRequestBody, ...) (*http.Response, error) + EditMonitorWithBody func(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*http.Response, error) + GetAllIncidents func(ctx context.Context, params *GetAllIncidentsParams, ...) (*http.Response, error) + GetAllMonitors func(ctx context.Context, params *GetAllMonitorsParams, ...) (*http.Response, error) + GetIncidentByID func(ctx context.Context, incidentID string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetMonitorByID func(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetMonitorResponseTimeStats func(ctx context.Context, monitorID string, ...) (*http.Response, error) + GetProfileDetails func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + Login func(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + LoginWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ToggleMonitorPause func(ctx context.Context, monitorID string, body ToggleMonitorPauseJSONRequestBody, ...) (*http.Response, error) + ToggleMonitorPauseWithBody func(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) BulkInviteMembersByEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BulkInviteMembersByEmailResponse, error) + func (c *ClientWithResponses) BulkInviteMembersByEmailWithResponse(ctx context.Context, body BulkInviteMembersByEmailJSONRequestBody, ...) (*BulkInviteMembersByEmailResponse, error) + func (c *ClientWithResponses) ConfirmInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmInvitationResponse, error) + func (c *ClientWithResponses) ConfirmInvitationWithResponse(ctx context.Context, body ConfirmInvitationJSONRequestBody, ...) (*ConfirmInvitationResponse, error) + func (c *ClientWithResponses) CreateAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccountResponse, error) + func (c *ClientWithResponses) CreateAccountWithResponse(ctx context.Context, body CreateAccountJSONRequestBody, ...) (*CreateAccountResponse, error) + func (c *ClientWithResponses) CreateMonitorWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMonitorResponse, error) + func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*CreateMonitorResponse, error) + func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error) + func (c *ClientWithResponses) EditMonitorWithBodyWithResponse(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*EditMonitorResponse, error) + func (c *ClientWithResponses) EditMonitorWithResponse(ctx context.Context, monitorID string, body EditMonitorJSONRequestBody, ...) (*EditMonitorResponse, error) + func (c *ClientWithResponses) GetAllIncidentsWithResponse(ctx context.Context, params *GetAllIncidentsParams, ...) (*GetAllIncidentsResponse, error) + func (c *ClientWithResponses) GetAllMonitorsWithResponse(ctx context.Context, params *GetAllMonitorsParams, ...) (*GetAllMonitorsResponse, error) + func (c *ClientWithResponses) GetIncidentByIDWithResponse(ctx context.Context, incidentID string, reqEditors ...RequestEditorFn) (*GetIncidentByIDResponse, error) + func (c *ClientWithResponses) GetMonitorByIDWithResponse(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*GetMonitorByIDResponse, error) + func (c *ClientWithResponses) GetMonitorResponseTimeStatsWithResponse(ctx context.Context, monitorID string, ...) (*GetMonitorResponseTimeStatsResponse, error) + func (c *ClientWithResponses) GetProfileDetailsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileDetailsResponse, error) + func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error) + func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error) + func (c *ClientWithResponses) ToggleMonitorPauseWithBodyWithResponse(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*ToggleMonitorPauseResponse, error) + func (c *ClientWithResponses) ToggleMonitorPauseWithResponse(ctx context.Context, monitorID string, body ToggleMonitorPauseJSONRequestBody, ...) (*ToggleMonitorPauseResponse, error) + type ClientWithResponsesInterface interface + BulkInviteMembersByEmailWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*BulkInviteMembersByEmailResponse, error) + BulkInviteMembersByEmailWithResponse func(ctx context.Context, body BulkInviteMembersByEmailJSONRequestBody, ...) (*BulkInviteMembersByEmailResponse, error) + ConfirmInvitationWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*ConfirmInvitationResponse, error) + ConfirmInvitationWithResponse func(ctx context.Context, body ConfirmInvitationJSONRequestBody, ...) (*ConfirmInvitationResponse, error) + CreateAccountWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccountResponse, error) + CreateAccountWithResponse func(ctx context.Context, body CreateAccountJSONRequestBody, ...) (*CreateAccountResponse, error) + CreateMonitorWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMonitorResponse, error) + CreateMonitorWithResponse func(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*CreateMonitorResponse, error) + DeleteMonitorWithResponse func(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error) + EditMonitorWithBodyWithResponse func(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*EditMonitorResponse, error) + EditMonitorWithResponse func(ctx context.Context, monitorID string, body EditMonitorJSONRequestBody, ...) (*EditMonitorResponse, error) + GetAllIncidentsWithResponse func(ctx context.Context, params *GetAllIncidentsParams, ...) (*GetAllIncidentsResponse, error) + GetAllMonitorsWithResponse func(ctx context.Context, params *GetAllMonitorsParams, ...) (*GetAllMonitorsResponse, error) + GetIncidentByIDWithResponse func(ctx context.Context, incidentID string, reqEditors ...RequestEditorFn) (*GetIncidentByIDResponse, error) + GetMonitorByIDWithResponse func(ctx context.Context, monitorID string, reqEditors ...RequestEditorFn) (*GetMonitorByIDResponse, error) + GetMonitorResponseTimeStatsWithResponse func(ctx context.Context, monitorID string, ...) (*GetMonitorResponseTimeStatsResponse, error) + GetProfileDetailsWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileDetailsResponse, error) + LoginWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error) + LoginWithResponse func(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error) + ToggleMonitorPauseWithBodyWithResponse func(ctx context.Context, monitorID string, contentType string, body io.Reader, ...) (*ToggleMonitorPauseResponse, error) + ToggleMonitorPauseWithResponse func(ctx context.Context, monitorID string, body ToggleMonitorPauseJSONRequestBody, ...) (*ToggleMonitorPauseResponse, error) + type ConfirmInvitationJSONRequestBody = ConfirmInvitationRequest + type ConfirmInvitationRequest struct + Email string + InvitationToken string + Password string + type ConfirmInvitationResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseConfirmInvitationResponse(rsp *http.Response) (*ConfirmInvitationResponse, error) + func (r ConfirmInvitationResponse) Status() string + func (r ConfirmInvitationResponse) StatusCode() int + type CreateAccountJSONRequestBody = CreateAccountRequest + type CreateAccountRequest struct + AccountName string + Email string + Password string + type CreateAccountResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseCreateAccountResponse(rsp *http.Response) (*CreateAccountResponse, error) + func (r CreateAccountResponse) Status() string + func (r CreateAccountResponse) StatusCode() int + type CreateMonitorJSONRequestBody = CreateMonitorRequest + type CreateMonitorRequest struct + CheckIntervalInSeconds int + EndpointUrl string + type CreateMonitorResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseCreateMonitorResponse(rsp *http.Response) (*CreateMonitorResponse, error) + func (r CreateMonitorResponse) Status() string + func (r CreateMonitorResponse) StatusCode() int + type DefaultError = ErrorResponse + type DeleteMonitorResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseDeleteMonitorResponse(rsp *http.Response) (*DeleteMonitorResponse, error) + func (r DeleteMonitorResponse) Status() string + func (r DeleteMonitorResponse) StatusCode() int + type EditMonitorJSONRequestBody = EditMonitorRequest + type EditMonitorRequest struct + CheckIntervalInSeconds int + EndpointUrl string + type EditMonitorResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseEditMonitorResponse(rsp *http.Response) (*EditMonitorResponse, error) + func (r EditMonitorResponse) Status() string + func (r EditMonitorResponse) StatusCode() int + type ErrorResponse struct + Error string + Message string + type FullIncident struct + Cause string + CheckedUrl string + CreatedAt time.Time + Id string + MonitorId string + ResolvedAt *time.Time + ResponseStatus *int + type GetAllIncidentsParams struct + Limit *int + Page *int + type GetAllIncidentsPayload struct + Data []Incident + Page int + PageCount int + PerPage int + TotalCount int64 + type GetAllIncidentsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetAllIncidentsPayload + JSONDefault *DefaultError + func ParseGetAllIncidentsResponse(rsp *http.Response) (*GetAllIncidentsResponse, error) + func (r GetAllIncidentsResponse) Status() string + func (r GetAllIncidentsResponse) StatusCode() int + type GetAllMonitorByIdPayload struct + Data Monitor + type GetAllMonitorsParams struct + Limit *int + Page *int + type GetAllMonitorsPayload struct + Data []Monitor + Page int + PageCount int + PerPage int + TotalCount int64 + type GetAllMonitorsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetAllMonitorsPayload + JSONDefault *DefaultError + func ParseGetAllMonitorsResponse(rsp *http.Response) (*GetAllMonitorsResponse, error) + func (r GetAllMonitorsResponse) Status() string + func (r GetAllMonitorsResponse) StatusCode() int + type GetIncidentByByIdPayload struct + Data FullIncident + type GetIncidentByIDResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetIncidentByByIdPayload + JSONDefault *DefaultError + func ParseGetIncidentByIDResponse(rsp *http.Response) (*GetIncidentByIDResponse, error) + func (r GetIncidentByIDResponse) Status() string + func (r GetIncidentByIDResponse) StatusCode() int + type GetMonitorByIDResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetAllMonitorByIdPayload + JSONDefault *DefaultError + func ParseGetMonitorByIDResponse(rsp *http.Response) (*GetMonitorByIDResponse, error) + func (r GetMonitorByIDResponse) Status() string + func (r GetMonitorByIDResponse) StatusCode() int + type GetMonitorResponseTimeStatsParams struct + RangeInDays *int + type GetMonitorResponseTimeStatsPayload struct + Data []ResponseTimeStat + type GetMonitorResponseTimeStatsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetMonitorResponseTimeStatsPayload + JSONDefault *DefaultError + func ParseGetMonitorResponseTimeStatsResponse(rsp *http.Response) (*GetMonitorResponseTimeStatsResponse, error) + func (r GetMonitorResponseTimeStatsResponse) Status() string + func (r GetMonitorResponseTimeStatsResponse) StatusCode() int + type GetProfileDetailsPayload struct + Data User + type GetProfileDetailsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GetProfileDetailsPayload + JSONDefault *DefaultError + func ParseGetProfileDetailsResponse(rsp *http.Response) (*GetProfileDetailsResponse, error) + func (r GetProfileDetailsResponse) Status() string + func (r GetProfileDetailsResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Incident struct + Cause string + CheckedUrl string + CreatedAt time.Time + Id string + ResolvedAt *time.Time + type LogInPayload struct + Token string + type LogInRequest struct + Email string + Password string + type LoginJSONRequestBody = LogInRequest + type LoginResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *LogInPayload + JSONDefault *DefaultError + func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error) + func (r LoginResponse) Status() string + func (r LoginResponse) StatusCode() int + type Monitor struct + CheckIntervalInSeconds int + CreatedAt time.Time + DownSince *time.Time + EndpointUrl string + Id string + Incidents []Incident + IsEndpointUp bool + IsPaused bool + LastCheckedAt *time.Time + UpSince *time.Time + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type ResponseTimeStat struct + Date time.Time + Region string + Value int + type ToggleMonitorPauseJSONRequestBody = ToggleMonitorPauseRequest + type ToggleMonitorPauseRequest struct + Pause bool + type ToggleMonitorPauseResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *DefaultError + func ParseToggleMonitorPauseResponse(rsp *http.Response) (*ToggleMonitorPauseResponse, error) + func (r ToggleMonitorPauseResponse) Status() string + func (r ToggleMonitorPauseResponse) StatusCode() int + type User struct + CreatedAt time.Time + Email string + FirstName string + Id string + LastName string + Role string