monitor

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package monitor provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcknowledgeIncidentRequest

func NewAcknowledgeIncidentRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewAcknowledgeIncidentRequest generates requests for AcknowledgeIncident

func NewApplyMonitorBulkActionRequest

func NewApplyMonitorBulkActionRequest(server string, body ApplyMonitorBulkActionJSONRequestBody) (*http.Request, error)

NewApplyMonitorBulkActionRequest calls the generic ApplyMonitorBulkAction builder with application/json body

func NewApplyMonitorBulkActionRequestWithBody

func NewApplyMonitorBulkActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewApplyMonitorBulkActionRequestWithBody generates requests for ApplyMonitorBulkAction with any type of body

func NewConfirmAlertChannelVerificationRequest

func NewConfirmAlertChannelVerificationRequest(server string, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody) (*http.Request, error)

NewConfirmAlertChannelVerificationRequest calls the generic ConfirmAlertChannelVerification builder with application/json body

func NewConfirmAlertChannelVerificationRequestWithBody

func NewConfirmAlertChannelVerificationRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewConfirmAlertChannelVerificationRequestWithBody generates requests for ConfirmAlertChannelVerification with any type of body

func NewCreateAlertChannelRequest

func NewCreateAlertChannelRequest(server string, body CreateAlertChannelJSONRequestBody) (*http.Request, error)

NewCreateAlertChannelRequest calls the generic CreateAlertChannel builder with application/json body

func NewCreateAlertChannelRequestWithBody

func NewCreateAlertChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAlertChannelRequestWithBody generates requests for CreateAlertChannel with any type of body

func NewCreateMonitorRequest

func NewCreateMonitorRequest(server string, body CreateMonitorJSONRequestBody) (*http.Request, error)

NewCreateMonitorRequest calls the generic CreateMonitor builder with application/json body

func NewCreateMonitorRequestWithBody

func NewCreateMonitorRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateMonitorRequestWithBody generates requests for CreateMonitor with any type of body

func NewCreateStatusPageIncidentRequest added in v0.23.0

func NewCreateStatusPageIncidentRequest(server string, id openapi_types.UUID, body CreateStatusPageIncidentJSONRequestBody) (*http.Request, error)

NewCreateStatusPageIncidentRequest calls the generic CreateStatusPageIncident builder with application/json body

func NewCreateStatusPageIncidentRequestWithBody added in v0.23.0

func NewCreateStatusPageIncidentRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewCreateStatusPageIncidentRequestWithBody generates requests for CreateStatusPageIncident with any type of body

func NewCreateStatusPageIncidentUpdateRequest added in v0.23.0

func NewCreateStatusPageIncidentUpdateRequest(server string, id openapi_types.UUID, incidentId openapi_types.UUID, body CreateStatusPageIncidentUpdateJSONRequestBody) (*http.Request, error)

NewCreateStatusPageIncidentUpdateRequest calls the generic CreateStatusPageIncidentUpdate builder with application/json body

func NewCreateStatusPageIncidentUpdateRequestWithBody added in v0.23.0

func NewCreateStatusPageIncidentUpdateRequestWithBody(server string, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewCreateStatusPageIncidentUpdateRequestWithBody generates requests for CreateStatusPageIncidentUpdate with any type of body

func NewCreateStatusPagePreviewLinkRequest added in v0.23.0

func NewCreateStatusPagePreviewLinkRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewCreateStatusPagePreviewLinkRequest generates requests for CreateStatusPagePreviewLink

func NewCreateStatusPageRequest added in v0.23.0

func NewCreateStatusPageRequest(server string, body CreateStatusPageJSONRequestBody) (*http.Request, error)

NewCreateStatusPageRequest calls the generic CreateStatusPage builder with application/json body

func NewCreateStatusPageRequestWithBody added in v0.23.0

func NewCreateStatusPageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateStatusPageRequestWithBody generates requests for CreateStatusPage with any type of body

func NewDeleteAlertChannelRequest

func NewDeleteAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteAlertChannelRequest generates requests for DeleteAlertChannel

func NewDeleteMonitorRequest

func NewDeleteMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteMonitorRequest generates requests for DeleteMonitor

func NewDeleteStatusPageRequest added in v0.23.0

func NewDeleteStatusPageRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteStatusPageRequest generates requests for DeleteStatusPage

func NewGetAlertChannelRequest

func NewGetAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetAlertChannelRequest generates requests for GetAlertChannel

func NewGetIncidentRequest

func NewGetIncidentRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetIncidentRequest generates requests for GetIncident

func NewGetIncidentSummaryRequest

func NewGetIncidentSummaryRequest(server string) (*http.Request, error)

NewGetIncidentSummaryRequest generates requests for GetIncidentSummary

func NewGetMonitorAlertsRequest

func NewGetMonitorAlertsRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetMonitorAlertsRequest generates requests for GetMonitorAlerts

func NewGetMonitorAvailabilityRequest

func NewGetMonitorAvailabilityRequest(server string, id openapi_types.UUID, params *GetMonitorAvailabilityParams) (*http.Request, error)

NewGetMonitorAvailabilityRequest generates requests for GetMonitorAvailability

func NewGetMonitorCertificateRequest

func NewGetMonitorCertificateRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetMonitorCertificateRequest generates requests for GetMonitorCertificate

func NewGetMonitorRequest

func NewGetMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetMonitorRequest generates requests for GetMonitor

func NewGetMonitorStatsRequest

func NewGetMonitorStatsRequest(server string, id openapi_types.UUID, params *GetMonitorStatsParams) (*http.Request, error)

NewGetMonitorStatsRequest generates requests for GetMonitorStats

func NewGetStatusPageIncidentRequest added in v0.23.0

func NewGetStatusPageIncidentRequest(server string, id openapi_types.UUID, incidentId openapi_types.UUID) (*http.Request, error)

NewGetStatusPageIncidentRequest generates requests for GetStatusPageIncident

func NewGetStatusPageLayoutRequest added in v0.23.0

func NewGetStatusPageLayoutRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetStatusPageLayoutRequest generates requests for GetStatusPageLayout

func NewGetStatusPageRequest added in v0.23.0

func NewGetStatusPageRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetStatusPageRequest generates requests for GetStatusPage

func NewListAlertChannelDeliveriesRequest

func NewListAlertChannelDeliveriesRequest(server string, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams) (*http.Request, error)

NewListAlertChannelDeliveriesRequest generates requests for ListAlertChannelDeliveries

func NewListAlertChannelsRequest

func NewListAlertChannelsRequest(server string, params *ListAlertChannelsParams) (*http.Request, error)

NewListAlertChannelsRequest generates requests for ListAlertChannels

func NewListIncidentsRequest

func NewListIncidentsRequest(server string, params *ListIncidentsParams) (*http.Request, error)

NewListIncidentsRequest generates requests for ListIncidents

func NewListMonitorResultsRequest

func NewListMonitorResultsRequest(server string, id openapi_types.UUID, params *ListMonitorResultsParams) (*http.Request, error)

NewListMonitorResultsRequest generates requests for ListMonitorResults

func NewListMonitorStatusChangesRequest

func NewListMonitorStatusChangesRequest(server string, id openapi_types.UUID, params *ListMonitorStatusChangesParams) (*http.Request, error)

NewListMonitorStatusChangesRequest generates requests for ListMonitorStatusChanges

func NewListMonitorsRequest

func NewListMonitorsRequest(server string, params *ListMonitorsParams) (*http.Request, error)

NewListMonitorsRequest generates requests for ListMonitors

func NewListStatusPageIncidentsRequest added in v0.23.0

func NewListStatusPageIncidentsRequest(server string, id openapi_types.UUID, params *ListStatusPageIncidentsParams) (*http.Request, error)

NewListStatusPageIncidentsRequest generates requests for ListStatusPageIncidents

func NewListStatusPagesRequest added in v0.23.0

func NewListStatusPagesRequest(server string, params *ListStatusPagesParams) (*http.Request, error)

NewListStatusPagesRequest generates requests for ListStatusPages

func NewPauseMonitorRequest

func NewPauseMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewPauseMonitorRequest generates requests for PauseMonitor

func NewPreviewStatusPageRequest added in v0.23.0

func NewPreviewStatusPageRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewPreviewStatusPageRequest generates requests for PreviewStatusPage

func NewPublishStatusPageRequest added in v0.23.0

func NewPublishStatusPageRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewPublishStatusPageRequest generates requests for PublishStatusPage

func NewResumeMonitorRequest

func NewResumeMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewResumeMonitorRequest generates requests for ResumeMonitor

func NewRunMonitorCheckRequest

func NewRunMonitorCheckRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRunMonitorCheckRequest generates requests for RunMonitorCheck

func NewSendAlertChannelVerificationRequest

func NewSendAlertChannelVerificationRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewSendAlertChannelVerificationRequest generates requests for SendAlertChannelVerification

func NewSetMonitorAlertsRequest

func NewSetMonitorAlertsRequest(server string, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody) (*http.Request, error)

NewSetMonitorAlertsRequest calls the generic SetMonitorAlerts builder with application/json body

func NewSetMonitorAlertsRequestWithBody

func NewSetMonitorAlertsRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSetMonitorAlertsRequestWithBody generates requests for SetMonitorAlerts with any type of body

func NewSetStatusPageLayoutRequest added in v0.23.0

func NewSetStatusPageLayoutRequest(server string, id openapi_types.UUID, body SetStatusPageLayoutJSONRequestBody) (*http.Request, error)

NewSetStatusPageLayoutRequest calls the generic SetStatusPageLayout builder with application/json body

func NewSetStatusPageLayoutRequestWithBody added in v0.23.0

func NewSetStatusPageLayoutRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSetStatusPageLayoutRequestWithBody generates requests for SetStatusPageLayout with any type of body

func NewTestAlertChannelRequest

func NewTestAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewTestAlertChannelRequest generates requests for TestAlertChannel

func NewUnpublishStatusPageRequest added in v0.23.0

func NewUnpublishStatusPageRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewUnpublishStatusPageRequest generates requests for UnpublishStatusPage

func NewUpdateAlertChannelRequest

func NewUpdateAlertChannelRequest(server string, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody) (*http.Request, error)

NewUpdateAlertChannelRequest calls the generic UpdateAlertChannel builder with application/json body

func NewUpdateAlertChannelRequestWithBody

func NewUpdateAlertChannelRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAlertChannelRequestWithBody generates requests for UpdateAlertChannel with any type of body

func NewUpdateMonitorRequest

func NewUpdateMonitorRequest(server string, id openapi_types.UUID, body UpdateMonitorJSONRequestBody) (*http.Request, error)

NewUpdateMonitorRequest calls the generic UpdateMonitor builder with application/json body

func NewUpdateMonitorRequestWithBody

func NewUpdateMonitorRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMonitorRequestWithBody generates requests for UpdateMonitor with any type of body

func NewUpdateStatusPageIncidentRequest added in v0.23.0

func NewUpdateStatusPageIncidentRequest(server string, id openapi_types.UUID, incidentId openapi_types.UUID, body UpdateStatusPageIncidentJSONRequestBody) (*http.Request, error)

NewUpdateStatusPageIncidentRequest calls the generic UpdateStatusPageIncident builder with application/json body

func NewUpdateStatusPageIncidentRequestWithBody added in v0.23.0

func NewUpdateStatusPageIncidentRequestWithBody(server string, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateStatusPageIncidentRequestWithBody generates requests for UpdateStatusPageIncident with any type of body

func NewUpdateStatusPageRequest added in v0.23.0

func NewUpdateStatusPageRequest(server string, id openapi_types.UUID, body UpdateStatusPageJSONRequestBody) (*http.Request, error)

NewUpdateStatusPageRequest calls the generic UpdateStatusPage builder with application/json body

func NewUpdateStatusPageRequestWithBody added in v0.23.0

func NewUpdateStatusPageRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateStatusPageRequestWithBody generates requests for UpdateStatusPage with any type of body

Types

type AcknowledgeIncidentResponse

type AcknowledgeIncidentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoIncidentDetail
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseAcknowledgeIncidentResponse

func ParseAcknowledgeIncidentResponse(rsp *http.Response) (*AcknowledgeIncidentResponse, error)

ParseAcknowledgeIncidentResponse parses an HTTP response from a AcknowledgeIncidentWithResponse call

func (AcknowledgeIncidentResponse) ContentType

func (r AcknowledgeIncidentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AcknowledgeIncidentResponse) Status

Status returns HTTPResponse.Status

func (AcknowledgeIncidentResponse) StatusCode

func (r AcknowledgeIncidentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplyMonitorBulkActionJSONRequestBody

type ApplyMonitorBulkActionJSONRequestBody = DtoMonitorBulkRequest

ApplyMonitorBulkActionJSONRequestBody defines body for ApplyMonitorBulkAction for application/json ContentType.

type ApplyMonitorBulkActionResponse

type ApplyMonitorBulkActionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitorBulkResult
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON429      *ResponseProblem
	JSON503      *ResponseProblem
}

func ParseApplyMonitorBulkActionResponse

func ParseApplyMonitorBulkActionResponse(rsp *http.Response) (*ApplyMonitorBulkActionResponse, error)

ParseApplyMonitorBulkActionResponse parses an HTTP response from a ApplyMonitorBulkActionWithResponse call

func (ApplyMonitorBulkActionResponse) ContentType

func (r ApplyMonitorBulkActionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ApplyMonitorBulkActionResponse) Status

Status returns HTTPResponse.Status

func (ApplyMonitorBulkActionResponse) StatusCode

func (r ApplyMonitorBulkActionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AcknowledgeIncident

func (c *Client) AcknowledgeIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplyMonitorBulkAction

func (c *Client) ApplyMonitorBulkAction(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplyMonitorBulkActionWithBody

func (c *Client) ApplyMonitorBulkActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ConfirmAlertChannelVerification

func (c *Client) ConfirmAlertChannelVerification(ctx context.Context, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ConfirmAlertChannelVerificationWithBody

func (c *Client) ConfirmAlertChannelVerificationWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAlertChannel

func (c *Client) CreateAlertChannel(ctx context.Context, body CreateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAlertChannelWithBody

func (c *Client) CreateAlertChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMonitor

func (c *Client) CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMonitorWithBody

func (c *Client) CreateMonitorWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPage added in v0.23.0

func (c *Client) CreateStatusPage(ctx context.Context, body CreateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPageIncident added in v0.23.0

func (c *Client) CreateStatusPageIncident(ctx context.Context, id openapi_types.UUID, body CreateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPageIncidentUpdate added in v0.23.0

func (c *Client) CreateStatusPageIncidentUpdate(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body CreateStatusPageIncidentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPageIncidentUpdateWithBody added in v0.23.0

func (c *Client) CreateStatusPageIncidentUpdateWithBody(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPageIncidentWithBody added in v0.23.0

func (c *Client) CreateStatusPageIncidentWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (c *Client) CreateStatusPagePreviewLink(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStatusPageWithBody added in v0.23.0

func (c *Client) CreateStatusPageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAlertChannel

func (c *Client) DeleteAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteMonitor

func (c *Client) DeleteMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStatusPage added in v0.23.0

func (c *Client) DeleteStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAlertChannel

func (c *Client) GetAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIncident

func (c *Client) GetIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIncidentSummary

func (c *Client) GetIncidentSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMonitor

func (c *Client) GetMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMonitorAlerts

func (c *Client) GetMonitorAlerts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMonitorAvailability

func (c *Client) GetMonitorAvailability(ctx context.Context, id openapi_types.UUID, params *GetMonitorAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMonitorCertificate

func (c *Client) GetMonitorCertificate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMonitorStats

func (c *Client) GetMonitorStats(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusPage added in v0.23.0

func (c *Client) GetStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusPageIncident added in v0.23.0

func (c *Client) GetStatusPageIncident(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusPageLayout added in v0.23.0

func (c *Client) GetStatusPageLayout(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAlertChannelDeliveries

func (c *Client) ListAlertChannelDeliveries(ctx context.Context, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAlertChannels

func (c *Client) ListAlertChannels(ctx context.Context, params *ListAlertChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIncidents

func (c *Client) ListIncidents(ctx context.Context, params *ListIncidentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListMonitorResults

func (c *Client) ListMonitorResults(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListMonitorStatusChanges

func (c *Client) ListMonitorStatusChanges(ctx context.Context, id openapi_types.UUID, params *ListMonitorStatusChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListMonitors

func (c *Client) ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListStatusPageIncidents added in v0.23.0

func (c *Client) ListStatusPageIncidents(ctx context.Context, id openapi_types.UUID, params *ListStatusPageIncidentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListStatusPages added in v0.23.0

func (c *Client) ListStatusPages(ctx context.Context, params *ListStatusPagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PauseMonitor

func (c *Client) PauseMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PreviewStatusPage added in v0.23.0

func (c *Client) PreviewStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PublishStatusPage added in v0.23.0

func (c *Client) PublishStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResumeMonitor

func (c *Client) ResumeMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunMonitorCheck

func (c *Client) RunMonitorCheck(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SendAlertChannelVerification

func (c *Client) SendAlertChannelVerification(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetMonitorAlerts

func (c *Client) SetMonitorAlerts(ctx context.Context, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetMonitorAlertsWithBody

func (c *Client) SetMonitorAlertsWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetStatusPageLayout added in v0.23.0

func (c *Client) SetStatusPageLayout(ctx context.Context, id openapi_types.UUID, body SetStatusPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetStatusPageLayoutWithBody added in v0.23.0

func (c *Client) SetStatusPageLayoutWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TestAlertChannel

func (c *Client) TestAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UnpublishStatusPage added in v0.23.0

func (c *Client) UnpublishStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlertChannel

func (c *Client) UpdateAlertChannel(ctx context.Context, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlertChannelWithBody

func (c *Client) UpdateAlertChannelWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMonitor

func (c *Client) UpdateMonitor(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMonitorWithBody

func (c *Client) UpdateMonitorWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStatusPage added in v0.23.0

func (c *Client) UpdateStatusPage(ctx context.Context, id openapi_types.UUID, body UpdateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStatusPageIncident added in v0.23.0

func (c *Client) UpdateStatusPageIncident(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body UpdateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStatusPageIncidentWithBody added in v0.23.0

func (c *Client) UpdateStatusPageIncidentWithBody(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStatusPageWithBody added in v0.23.0

func (c *Client) UpdateStatusPageWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListAlertChannels request
	ListAlertChannels(ctx context.Context, params *ListAlertChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAlertChannelWithBody request with any body
	CreateAlertChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAlertChannel(ctx context.Context, body CreateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAlertChannel request
	DeleteAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertChannel request
	GetAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAlertChannelWithBody request with any body
	UpdateAlertChannelWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAlertChannel(ctx context.Context, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertChannelDeliveries request
	ListAlertChannelDeliveries(ctx context.Context, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TestAlertChannel request
	TestAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendAlertChannelVerification request
	SendAlertChannelVerification(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmAlertChannelVerificationWithBody request with any body
	ConfirmAlertChannelVerificationWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ConfirmAlertChannelVerification(ctx context.Context, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIncidents request
	ListIncidents(ctx context.Context, params *ListIncidentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIncidentSummary request
	GetIncidentSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIncident request
	GetIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcknowledgeIncident request
	AcknowledgeIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMonitors request
	ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMonitorWithBody request with any body
	CreateMonitorWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplyMonitorBulkActionWithBody request with any body
	ApplyMonitorBulkActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplyMonitorBulkAction(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMonitor request
	DeleteMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitor request
	GetMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMonitorWithBody request with any body
	UpdateMonitorWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMonitor(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitorAlerts request
	GetMonitorAlerts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetMonitorAlertsWithBody request with any body
	SetMonitorAlertsWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetMonitorAlerts(ctx context.Context, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitorAvailability request
	GetMonitorAvailability(ctx context.Context, id openapi_types.UUID, params *GetMonitorAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitorCertificate request
	GetMonitorCertificate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunMonitorCheck request
	RunMonitorCheck(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PauseMonitor request
	PauseMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMonitorResults request
	ListMonitorResults(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResumeMonitor request
	ResumeMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitorStats request
	GetMonitorStats(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMonitorStatusChanges request
	ListMonitorStatusChanges(ctx context.Context, id openapi_types.UUID, params *ListMonitorStatusChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListStatusPages request
	ListStatusPages(ctx context.Context, params *ListStatusPagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStatusPageWithBody request with any body
	CreateStatusPageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateStatusPage(ctx context.Context, body CreateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStatusPage request
	DeleteStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusPage request
	GetStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateStatusPageWithBody request with any body
	UpdateStatusPageWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateStatusPage(ctx context.Context, id openapi_types.UUID, body UpdateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListStatusPageIncidents request
	ListStatusPageIncidents(ctx context.Context, id openapi_types.UUID, params *ListStatusPageIncidentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStatusPageIncidentWithBody request with any body
	CreateStatusPageIncidentWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateStatusPageIncident(ctx context.Context, id openapi_types.UUID, body CreateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusPageIncident request
	GetStatusPageIncident(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateStatusPageIncidentWithBody request with any body
	UpdateStatusPageIncidentWithBody(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateStatusPageIncident(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body UpdateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStatusPageIncidentUpdateWithBody request with any body
	CreateStatusPageIncidentUpdateWithBody(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateStatusPageIncidentUpdate(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body CreateStatusPageIncidentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusPageLayout request
	GetStatusPageLayout(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetStatusPageLayoutWithBody request with any body
	SetStatusPageLayoutWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetStatusPageLayout(ctx context.Context, id openapi_types.UUID, body SetStatusPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewStatusPage request
	PreviewStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStatusPagePreviewLink request
	CreateStatusPagePreviewLink(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishStatusPage request
	PublishStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnpublishStatusPage request
	UnpublishStatusPage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AcknowledgeIncidentWithResponse

func (c *ClientWithResponses) AcknowledgeIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*AcknowledgeIncidentResponse, error)

AcknowledgeIncidentWithResponse request returning *AcknowledgeIncidentResponse

func (*ClientWithResponses) ApplyMonitorBulkActionWithBodyWithResponse

func (c *ClientWithResponses) ApplyMonitorBulkActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyMonitorBulkActionResponse, error)

ApplyMonitorBulkActionWithBodyWithResponse request with arbitrary body returning *ApplyMonitorBulkActionResponse

func (*ClientWithResponses) ApplyMonitorBulkActionWithResponse

func (c *ClientWithResponses) ApplyMonitorBulkActionWithResponse(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyMonitorBulkActionResponse, error)

func (*ClientWithResponses) ConfirmAlertChannelVerificationWithBodyWithResponse

func (c *ClientWithResponses) ConfirmAlertChannelVerificationWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmAlertChannelVerificationResponse, error)

ConfirmAlertChannelVerificationWithBodyWithResponse request with arbitrary body returning *ConfirmAlertChannelVerificationResponse

func (*ClientWithResponses) CreateAlertChannelWithBodyWithResponse

func (c *ClientWithResponses) CreateAlertChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertChannelResponse, error)

CreateAlertChannelWithBodyWithResponse request with arbitrary body returning *CreateAlertChannelResponse

func (*ClientWithResponses) CreateAlertChannelWithResponse

func (c *ClientWithResponses) CreateAlertChannelWithResponse(ctx context.Context, body CreateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertChannelResponse, error)

func (*ClientWithResponses) CreateMonitorWithBodyWithResponse

func (c *ClientWithResponses) CreateMonitorWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

CreateMonitorWithBodyWithResponse request with arbitrary body returning *CreateMonitorResponse

func (*ClientWithResponses) CreateMonitorWithResponse

func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

func (*ClientWithResponses) CreateStatusPageIncidentUpdateWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) CreateStatusPageIncidentUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentUpdateResponse, error)

CreateStatusPageIncidentUpdateWithBodyWithResponse request with arbitrary body returning *CreateStatusPageIncidentUpdateResponse

func (*ClientWithResponses) CreateStatusPageIncidentUpdateWithResponse added in v0.23.0

func (*ClientWithResponses) CreateStatusPageIncidentWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) CreateStatusPageIncidentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentResponse, error)

CreateStatusPageIncidentWithBodyWithResponse request with arbitrary body returning *CreateStatusPageIncidentResponse

func (*ClientWithResponses) CreateStatusPageIncidentWithResponse added in v0.23.0

func (*ClientWithResponses) CreateStatusPagePreviewLinkWithResponse added in v0.23.0

func (c *ClientWithResponses) CreateStatusPagePreviewLinkWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CreateStatusPagePreviewLinkResponse, error)

CreateStatusPagePreviewLinkWithResponse request returning *CreateStatusPagePreviewLinkResponse

func (*ClientWithResponses) CreateStatusPageWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) CreateStatusPageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageResponse, error)

CreateStatusPageWithBodyWithResponse request with arbitrary body returning *CreateStatusPageResponse

func (*ClientWithResponses) CreateStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) CreateStatusPageWithResponse(ctx context.Context, body CreateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStatusPageResponse, error)

func (*ClientWithResponses) DeleteAlertChannelWithResponse

func (c *ClientWithResponses) DeleteAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAlertChannelResponse, error)

DeleteAlertChannelWithResponse request returning *DeleteAlertChannelResponse

func (*ClientWithResponses) DeleteMonitorWithResponse

func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error)

DeleteMonitorWithResponse request returning *DeleteMonitorResponse

func (*ClientWithResponses) DeleteStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) DeleteStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStatusPageResponse, error)

DeleteStatusPageWithResponse request returning *DeleteStatusPageResponse

func (*ClientWithResponses) GetAlertChannelWithResponse

func (c *ClientWithResponses) GetAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAlertChannelResponse, error)

GetAlertChannelWithResponse request returning *GetAlertChannelResponse

func (*ClientWithResponses) GetIncidentSummaryWithResponse

func (c *ClientWithResponses) GetIncidentSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIncidentSummaryResponse, error)

GetIncidentSummaryWithResponse request returning *GetIncidentSummaryResponse

func (*ClientWithResponses) GetIncidentWithResponse

func (c *ClientWithResponses) GetIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error)

GetIncidentWithResponse request returning *GetIncidentResponse

func (*ClientWithResponses) GetMonitorAlertsWithResponse

func (c *ClientWithResponses) GetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorAlertsResponse, error)

GetMonitorAlertsWithResponse request returning *GetMonitorAlertsResponse

func (*ClientWithResponses) GetMonitorAvailabilityWithResponse

func (c *ClientWithResponses) GetMonitorAvailabilityWithResponse(ctx context.Context, id openapi_types.UUID, params *GetMonitorAvailabilityParams, reqEditors ...RequestEditorFn) (*GetMonitorAvailabilityResponse, error)

GetMonitorAvailabilityWithResponse request returning *GetMonitorAvailabilityResponse

func (*ClientWithResponses) GetMonitorCertificateWithResponse

func (c *ClientWithResponses) GetMonitorCertificateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorCertificateResponse, error)

GetMonitorCertificateWithResponse request returning *GetMonitorCertificateResponse

func (*ClientWithResponses) GetMonitorStatsWithResponse

func (c *ClientWithResponses) GetMonitorStatsWithResponse(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, reqEditors ...RequestEditorFn) (*GetMonitorStatsResponse, error)

GetMonitorStatsWithResponse request returning *GetMonitorStatsResponse

func (*ClientWithResponses) GetMonitorWithResponse

func (c *ClientWithResponses) GetMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)

GetMonitorWithResponse request returning *GetMonitorResponse

func (*ClientWithResponses) GetStatusPageIncidentWithResponse added in v0.23.0

func (c *ClientWithResponses) GetStatusPageIncidentWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageIncidentResponse, error)

GetStatusPageIncidentWithResponse request returning *GetStatusPageIncidentResponse

func (*ClientWithResponses) GetStatusPageLayoutWithResponse added in v0.23.0

func (c *ClientWithResponses) GetStatusPageLayoutWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageLayoutResponse, error)

GetStatusPageLayoutWithResponse request returning *GetStatusPageLayoutResponse

func (*ClientWithResponses) GetStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) GetStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageResponse, error)

GetStatusPageWithResponse request returning *GetStatusPageResponse

func (*ClientWithResponses) ListAlertChannelDeliveriesWithResponse

func (c *ClientWithResponses) ListAlertChannelDeliveriesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams, reqEditors ...RequestEditorFn) (*ListAlertChannelDeliveriesResponse, error)

ListAlertChannelDeliveriesWithResponse request returning *ListAlertChannelDeliveriesResponse

func (*ClientWithResponses) ListAlertChannelsWithResponse

func (c *ClientWithResponses) ListAlertChannelsWithResponse(ctx context.Context, params *ListAlertChannelsParams, reqEditors ...RequestEditorFn) (*ListAlertChannelsResponse, error)

ListAlertChannelsWithResponse request returning *ListAlertChannelsResponse

func (*ClientWithResponses) ListIncidentsWithResponse

func (c *ClientWithResponses) ListIncidentsWithResponse(ctx context.Context, params *ListIncidentsParams, reqEditors ...RequestEditorFn) (*ListIncidentsResponse, error)

ListIncidentsWithResponse request returning *ListIncidentsResponse

func (*ClientWithResponses) ListMonitorResultsWithResponse

func (c *ClientWithResponses) ListMonitorResultsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, reqEditors ...RequestEditorFn) (*ListMonitorResultsResponse, error)

ListMonitorResultsWithResponse request returning *ListMonitorResultsResponse

func (*ClientWithResponses) ListMonitorStatusChangesWithResponse

func (c *ClientWithResponses) ListMonitorStatusChangesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListMonitorStatusChangesParams, reqEditors ...RequestEditorFn) (*ListMonitorStatusChangesResponse, error)

ListMonitorStatusChangesWithResponse request returning *ListMonitorStatusChangesResponse

func (*ClientWithResponses) ListMonitorsWithResponse

func (c *ClientWithResponses) ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)

ListMonitorsWithResponse request returning *ListMonitorsResponse

func (*ClientWithResponses) ListStatusPageIncidentsWithResponse added in v0.23.0

func (c *ClientWithResponses) ListStatusPageIncidentsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListStatusPageIncidentsParams, reqEditors ...RequestEditorFn) (*ListStatusPageIncidentsResponse, error)

ListStatusPageIncidentsWithResponse request returning *ListStatusPageIncidentsResponse

func (*ClientWithResponses) ListStatusPagesWithResponse added in v0.23.0

func (c *ClientWithResponses) ListStatusPagesWithResponse(ctx context.Context, params *ListStatusPagesParams, reqEditors ...RequestEditorFn) (*ListStatusPagesResponse, error)

ListStatusPagesWithResponse request returning *ListStatusPagesResponse

func (*ClientWithResponses) PauseMonitorWithResponse

func (c *ClientWithResponses) PauseMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)

PauseMonitorWithResponse request returning *PauseMonitorResponse

func (*ClientWithResponses) PreviewStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) PreviewStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PreviewStatusPageResponse, error)

PreviewStatusPageWithResponse request returning *PreviewStatusPageResponse

func (*ClientWithResponses) PublishStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) PublishStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishStatusPageResponse, error)

PublishStatusPageWithResponse request returning *PublishStatusPageResponse

func (*ClientWithResponses) ResumeMonitorWithResponse

func (c *ClientWithResponses) ResumeMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)

ResumeMonitorWithResponse request returning *ResumeMonitorResponse

func (*ClientWithResponses) RunMonitorCheckWithResponse

func (c *ClientWithResponses) RunMonitorCheckWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RunMonitorCheckResponse, error)

RunMonitorCheckWithResponse request returning *RunMonitorCheckResponse

func (*ClientWithResponses) SendAlertChannelVerificationWithResponse

func (c *ClientWithResponses) SendAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*SendAlertChannelVerificationResponse, error)

SendAlertChannelVerificationWithResponse request returning *SendAlertChannelVerificationResponse

func (*ClientWithResponses) SetMonitorAlertsWithBodyWithResponse

func (c *ClientWithResponses) SetMonitorAlertsWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMonitorAlertsResponse, error)

SetMonitorAlertsWithBodyWithResponse request with arbitrary body returning *SetMonitorAlertsResponse

func (*ClientWithResponses) SetMonitorAlertsWithResponse

func (*ClientWithResponses) SetStatusPageLayoutWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) SetStatusPageLayoutWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStatusPageLayoutResponse, error)

SetStatusPageLayoutWithBodyWithResponse request with arbitrary body returning *SetStatusPageLayoutResponse

func (*ClientWithResponses) SetStatusPageLayoutWithResponse added in v0.23.0

func (*ClientWithResponses) TestAlertChannelWithResponse

func (c *ClientWithResponses) TestAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestAlertChannelResponse, error)

TestAlertChannelWithResponse request returning *TestAlertChannelResponse

func (*ClientWithResponses) UnpublishStatusPageWithResponse added in v0.23.0

func (c *ClientWithResponses) UnpublishStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnpublishStatusPageResponse, error)

UnpublishStatusPageWithResponse request returning *UnpublishStatusPageResponse

func (*ClientWithResponses) UpdateAlertChannelWithBodyWithResponse

func (c *ClientWithResponses) UpdateAlertChannelWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertChannelResponse, error)

UpdateAlertChannelWithBodyWithResponse request with arbitrary body returning *UpdateAlertChannelResponse

func (*ClientWithResponses) UpdateAlertChannelWithResponse

func (*ClientWithResponses) UpdateMonitorWithBodyWithResponse

func (c *ClientWithResponses) UpdateMonitorWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

UpdateMonitorWithBodyWithResponse request with arbitrary body returning *UpdateMonitorResponse

func (*ClientWithResponses) UpdateMonitorWithResponse

func (c *ClientWithResponses) UpdateMonitorWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

func (*ClientWithResponses) UpdateStatusPageIncidentWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) UpdateStatusPageIncidentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusPageIncidentResponse, error)

UpdateStatusPageIncidentWithBodyWithResponse request with arbitrary body returning *UpdateStatusPageIncidentResponse

func (*ClientWithResponses) UpdateStatusPageIncidentWithResponse added in v0.23.0

func (*ClientWithResponses) UpdateStatusPageWithBodyWithResponse added in v0.23.0

func (c *ClientWithResponses) UpdateStatusPageWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusPageResponse, error)

UpdateStatusPageWithBodyWithResponse request with arbitrary body returning *UpdateStatusPageResponse

func (*ClientWithResponses) UpdateStatusPageWithResponse added in v0.23.0

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListAlertChannelsWithResponse request
	ListAlertChannelsWithResponse(ctx context.Context, params *ListAlertChannelsParams, reqEditors ...RequestEditorFn) (*ListAlertChannelsResponse, error)

	// CreateAlertChannelWithBodyWithResponse request with any body
	CreateAlertChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertChannelResponse, error)

	CreateAlertChannelWithResponse(ctx context.Context, body CreateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertChannelResponse, error)

	// DeleteAlertChannelWithResponse request
	DeleteAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAlertChannelResponse, error)

	// GetAlertChannelWithResponse request
	GetAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAlertChannelResponse, error)

	// UpdateAlertChannelWithBodyWithResponse request with any body
	UpdateAlertChannelWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertChannelResponse, error)

	UpdateAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertChannelResponse, error)

	// ListAlertChannelDeliveriesWithResponse request
	ListAlertChannelDeliveriesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams, reqEditors ...RequestEditorFn) (*ListAlertChannelDeliveriesResponse, error)

	// TestAlertChannelWithResponse request
	TestAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestAlertChannelResponse, error)

	// SendAlertChannelVerificationWithResponse request
	SendAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*SendAlertChannelVerificationResponse, error)

	// ConfirmAlertChannelVerificationWithBodyWithResponse request with any body
	ConfirmAlertChannelVerificationWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmAlertChannelVerificationResponse, error)

	ConfirmAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmAlertChannelVerificationResponse, error)

	// ListIncidentsWithResponse request
	ListIncidentsWithResponse(ctx context.Context, params *ListIncidentsParams, reqEditors ...RequestEditorFn) (*ListIncidentsResponse, error)

	// GetIncidentSummaryWithResponse request
	GetIncidentSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIncidentSummaryResponse, error)

	// GetIncidentWithResponse request
	GetIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error)

	// AcknowledgeIncidentWithResponse request
	AcknowledgeIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*AcknowledgeIncidentResponse, error)

	// ListMonitorsWithResponse request
	ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)

	// CreateMonitorWithBodyWithResponse request with any body
	CreateMonitorWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

	CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

	// ApplyMonitorBulkActionWithBodyWithResponse request with any body
	ApplyMonitorBulkActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyMonitorBulkActionResponse, error)

	ApplyMonitorBulkActionWithResponse(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyMonitorBulkActionResponse, error)

	// DeleteMonitorWithResponse request
	DeleteMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error)

	// GetMonitorWithResponse request
	GetMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)

	// UpdateMonitorWithBodyWithResponse request with any body
	UpdateMonitorWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

	UpdateMonitorWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

	// GetMonitorAlertsWithResponse request
	GetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorAlertsResponse, error)

	// SetMonitorAlertsWithBodyWithResponse request with any body
	SetMonitorAlertsWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMonitorAlertsResponse, error)

	SetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMonitorAlertsResponse, error)

	// GetMonitorAvailabilityWithResponse request
	GetMonitorAvailabilityWithResponse(ctx context.Context, id openapi_types.UUID, params *GetMonitorAvailabilityParams, reqEditors ...RequestEditorFn) (*GetMonitorAvailabilityResponse, error)

	// GetMonitorCertificateWithResponse request
	GetMonitorCertificateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorCertificateResponse, error)

	// RunMonitorCheckWithResponse request
	RunMonitorCheckWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RunMonitorCheckResponse, error)

	// PauseMonitorWithResponse request
	PauseMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)

	// ListMonitorResultsWithResponse request
	ListMonitorResultsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, reqEditors ...RequestEditorFn) (*ListMonitorResultsResponse, error)

	// ResumeMonitorWithResponse request
	ResumeMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)

	// GetMonitorStatsWithResponse request
	GetMonitorStatsWithResponse(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, reqEditors ...RequestEditorFn) (*GetMonitorStatsResponse, error)

	// ListMonitorStatusChangesWithResponse request
	ListMonitorStatusChangesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListMonitorStatusChangesParams, reqEditors ...RequestEditorFn) (*ListMonitorStatusChangesResponse, error)

	// ListStatusPagesWithResponse request
	ListStatusPagesWithResponse(ctx context.Context, params *ListStatusPagesParams, reqEditors ...RequestEditorFn) (*ListStatusPagesResponse, error)

	// CreateStatusPageWithBodyWithResponse request with any body
	CreateStatusPageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageResponse, error)

	CreateStatusPageWithResponse(ctx context.Context, body CreateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStatusPageResponse, error)

	// DeleteStatusPageWithResponse request
	DeleteStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStatusPageResponse, error)

	// GetStatusPageWithResponse request
	GetStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageResponse, error)

	// UpdateStatusPageWithBodyWithResponse request with any body
	UpdateStatusPageWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusPageResponse, error)

	UpdateStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateStatusPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusPageResponse, error)

	// ListStatusPageIncidentsWithResponse request
	ListStatusPageIncidentsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListStatusPageIncidentsParams, reqEditors ...RequestEditorFn) (*ListStatusPageIncidentsResponse, error)

	// CreateStatusPageIncidentWithBodyWithResponse request with any body
	CreateStatusPageIncidentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentResponse, error)

	CreateStatusPageIncidentWithResponse(ctx context.Context, id openapi_types.UUID, body CreateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentResponse, error)

	// GetStatusPageIncidentWithResponse request
	GetStatusPageIncidentWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageIncidentResponse, error)

	// UpdateStatusPageIncidentWithBodyWithResponse request with any body
	UpdateStatusPageIncidentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusPageIncidentResponse, error)

	UpdateStatusPageIncidentWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body UpdateStatusPageIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusPageIncidentResponse, error)

	// CreateStatusPageIncidentUpdateWithBodyWithResponse request with any body
	CreateStatusPageIncidentUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentUpdateResponse, error)

	CreateStatusPageIncidentUpdateWithResponse(ctx context.Context, id openapi_types.UUID, incidentId openapi_types.UUID, body CreateStatusPageIncidentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStatusPageIncidentUpdateResponse, error)

	// GetStatusPageLayoutWithResponse request
	GetStatusPageLayoutWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStatusPageLayoutResponse, error)

	// SetStatusPageLayoutWithBodyWithResponse request with any body
	SetStatusPageLayoutWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStatusPageLayoutResponse, error)

	SetStatusPageLayoutWithResponse(ctx context.Context, id openapi_types.UUID, body SetStatusPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStatusPageLayoutResponse, error)

	// PreviewStatusPageWithResponse request
	PreviewStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PreviewStatusPageResponse, error)

	// CreateStatusPagePreviewLinkWithResponse request
	CreateStatusPagePreviewLinkWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CreateStatusPagePreviewLinkResponse, error)

	// PublishStatusPageWithResponse request
	PublishStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishStatusPageResponse, error)

	// UnpublishStatusPageWithResponse request
	UnpublishStatusPageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnpublishStatusPageResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ConfirmAlertChannelVerificationJSONRequestBody

type ConfirmAlertChannelVerificationJSONRequestBody = DtoAlertChannelVerifyConfirm

ConfirmAlertChannelVerificationJSONRequestBody defines body for ConfirmAlertChannelVerification for application/json ContentType.

type ConfirmAlertChannelVerificationResponse

type ConfirmAlertChannelVerificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoAlertChannel
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseConfirmAlertChannelVerificationResponse

func ParseConfirmAlertChannelVerificationResponse(rsp *http.Response) (*ConfirmAlertChannelVerificationResponse, error)

ParseConfirmAlertChannelVerificationResponse parses an HTTP response from a ConfirmAlertChannelVerificationWithResponse call

func (ConfirmAlertChannelVerificationResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmAlertChannelVerificationResponse) Status

Status returns HTTPResponse.Status

func (ConfirmAlertChannelVerificationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ConstantsErrorCode

type ConstantsErrorCode string

ConstantsErrorCode defines model for constants.ErrorCode.

const (
	ErrorCodeAlreadyExists    ConstantsErrorCode = "ALREADY_EXISTS"
	ErrorCodeConflict         ConstantsErrorCode = "CONFLICT"
	ErrorCodeForbidden        ConstantsErrorCode = "FORBIDDEN"
	ErrorCodeInternal         ConstantsErrorCode = "INTERNAL_ERROR"
	ErrorCodeInvalidPayload   ConstantsErrorCode = "INVALID_PAYLOAD"
	ErrorCodeLimitReached     ConstantsErrorCode = "LIMIT_REACHED"
	ErrorCodeManagedResource  ConstantsErrorCode = "MANAGED_RESOURCE"
	ErrorCodeMethodNotAllowed ConstantsErrorCode = "METHOD_NOT_ALLOWED"
	ErrorCodeNotFound         ConstantsErrorCode = "NOT_FOUND"
	ErrorCodeOrgBlocked       ConstantsErrorCode = "ORG_BLOCKED"
	ErrorCodePayloadTooLarge  ConstantsErrorCode = "PAYLOAD_TOO_LARGE"
	ErrorCodeTooManyRequests  ConstantsErrorCode = "TOO_MANY_REQUESTS"
	ErrorCodeUnauthorized     ConstantsErrorCode = "UNAUTHORIZED"
	ErrorCodeUnavailable      ConstantsErrorCode = "UNAVAILABLE"
	ErrorCodeValidationFailed ConstantsErrorCode = "VALIDATION_FAILED"
)

Defines values for ConstantsErrorCode.

func (ConstantsErrorCode) Valid

func (e ConstantsErrorCode) Valid() bool

Valid indicates whether the value is a known member of the ConstantsErrorCode enum.

type ConstantsErrorReason

type ConstantsErrorReason string

ConstantsErrorReason defines model for constants.ErrorReason.

const (
	ErrorReasonAlertChannelLimit      ConstantsErrorReason = "ALERT_CHANNEL_LIMIT"
	ErrorReasonAlreadyVerified        ConstantsErrorReason = "ALREADY_VERIFIED"
	ErrorReasonCallerOutsideNamespace ConstantsErrorReason = "CALLER_OUTSIDE_NAMESPACE"
	ErrorReasonChannelTypeUnavailable ConstantsErrorReason = "CHANNEL_TYPE_UNAVAILABLE"
	ErrorReasonCodeExpired            ConstantsErrorReason = "CODE_EXPIRED"
	ErrorReasonCodeRecentlySent       ConstantsErrorReason = "CODE_RECENTLY_SENT"
	ErrorReasonContactUnverified      ConstantsErrorReason = "CONTACT_UNVERIFIED"
	ErrorReasonDeliveryRejected       ConstantsErrorReason = "DELIVERY_REJECTED"
	ErrorReasonIncidentResolved       ConstantsErrorReason = "INCIDENT_RESOLVED"
	ErrorReasonInsufficientScope      ConstantsErrorReason = "INSUFFICIENT_SCOPE"
	ErrorReasonMissingOrganizationID  ConstantsErrorReason = "MISSING_ORGANIZATION_ID"
	ErrorReasonMonitorLimit           ConstantsErrorReason = "MONITOR_LIMIT"
	ErrorReasonNothingToVerify        ConstantsErrorReason = "NOTHING_TO_VERIFY"
	ErrorReasonSlugTaken              ConstantsErrorReason = "SLUG_TAKEN"
	ErrorReasonStatusPageLimit        ConstantsErrorReason = "STATUS_PAGE_LIMIT"
	ErrorReasonTooManyAttempts        ConstantsErrorReason = "TOO_MANY_ATTEMPTS"
	ErrorReasonUnverifiedChannelLimit ConstantsErrorReason = "UNVERIFIED_CHANNEL_LIMIT"
)

Defines values for ConstantsErrorReason.

func (ConstantsErrorReason) Valid

func (e ConstantsErrorReason) Valid() bool

Valid indicates whether the value is a known member of the ConstantsErrorReason enum.

type CreateAlertChannelJSONRequestBody

type CreateAlertChannelJSONRequestBody = DtoAlertChannelCreate

CreateAlertChannelJSONRequestBody defines body for CreateAlertChannel for application/json ContentType.

type CreateAlertChannelResponse

type CreateAlertChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DtoAlertChannelWithSecret
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
}

func ParseCreateAlertChannelResponse

func ParseCreateAlertChannelResponse(rsp *http.Response) (*CreateAlertChannelResponse, error)

ParseCreateAlertChannelResponse parses an HTTP response from a CreateAlertChannelWithResponse call

func (CreateAlertChannelResponse) ContentType

func (r CreateAlertChannelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateAlertChannelResponse) Status

Status returns HTTPResponse.Status

func (CreateAlertChannelResponse) StatusCode

func (r CreateAlertChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMonitorJSONRequestBody

type CreateMonitorJSONRequestBody = DtoMonitorCreate

CreateMonitorJSONRequestBody defines body for CreateMonitor for application/json ContentType.

type CreateMonitorResponse

type CreateMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DtoMonitor
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON503      *ResponseProblem
}

func ParseCreateMonitorResponse

func ParseCreateMonitorResponse(rsp *http.Response) (*CreateMonitorResponse, error)

ParseCreateMonitorResponse parses an HTTP response from a CreateMonitorWithResponse call

func (CreateMonitorResponse) ContentType

func (r CreateMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateMonitorResponse) Status

func (r CreateMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (CreateMonitorResponse) StatusCode

func (r CreateMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateStatusPageIncidentJSONRequestBody added in v0.23.0

type CreateStatusPageIncidentJSONRequestBody = DtoStatusPageIncidentCreate

CreateStatusPageIncidentJSONRequestBody defines body for CreateStatusPageIncident for application/json ContentType.

type CreateStatusPageIncidentResponse added in v0.23.0

type CreateStatusPageIncidentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DtoStatusPageIncident
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseCreateStatusPageIncidentResponse added in v0.23.0

func ParseCreateStatusPageIncidentResponse(rsp *http.Response) (*CreateStatusPageIncidentResponse, error)

ParseCreateStatusPageIncidentResponse parses an HTTP response from a CreateStatusPageIncidentWithResponse call

func (CreateStatusPageIncidentResponse) ContentType added in v0.23.0

func (r CreateStatusPageIncidentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateStatusPageIncidentResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (CreateStatusPageIncidentResponse) StatusCode added in v0.23.0

func (r CreateStatusPageIncidentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateStatusPageIncidentUpdateJSONRequestBody added in v0.23.0

type CreateStatusPageIncidentUpdateJSONRequestBody = DtoStatusPageIncidentPost

CreateStatusPageIncidentUpdateJSONRequestBody defines body for CreateStatusPageIncidentUpdate for application/json ContentType.

type CreateStatusPageIncidentUpdateResponse added in v0.23.0

type CreateStatusPageIncidentUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DtoStatusPageIncident
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseCreateStatusPageIncidentUpdateResponse added in v0.23.0

func ParseCreateStatusPageIncidentUpdateResponse(rsp *http.Response) (*CreateStatusPageIncidentUpdateResponse, error)

ParseCreateStatusPageIncidentUpdateResponse parses an HTTP response from a CreateStatusPageIncidentUpdateWithResponse call

func (CreateStatusPageIncidentUpdateResponse) ContentType added in v0.23.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateStatusPageIncidentUpdateResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (CreateStatusPageIncidentUpdateResponse) StatusCode added in v0.23.0

StatusCode returns HTTPResponse.StatusCode

type CreateStatusPageJSONRequestBody added in v0.23.0

type CreateStatusPageJSONRequestBody = DtoStatusPageCreate

CreateStatusPageJSONRequestBody defines body for CreateStatusPage for application/json ContentType.

type CreateStatusPagePreviewLinkResponse added in v0.23.0

type CreateStatusPagePreviewLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPagePreviewLink
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseCreateStatusPagePreviewLinkResponse added in v0.23.0

func ParseCreateStatusPagePreviewLinkResponse(rsp *http.Response) (*CreateStatusPagePreviewLinkResponse, error)

ParseCreateStatusPagePreviewLinkResponse parses an HTTP response from a CreateStatusPagePreviewLinkWithResponse call

func (CreateStatusPagePreviewLinkResponse) ContentType added in v0.23.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateStatusPagePreviewLinkResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (CreateStatusPagePreviewLinkResponse) StatusCode added in v0.23.0

StatusCode returns HTTPResponse.StatusCode

type CreateStatusPageResponse added in v0.23.0

type CreateStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DtoStatusPage
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseCreateStatusPageResponse added in v0.23.0

func ParseCreateStatusPageResponse(rsp *http.Response) (*CreateStatusPageResponse, error)

ParseCreateStatusPageResponse parses an HTTP response from a CreateStatusPageWithResponse call

func (CreateStatusPageResponse) ContentType added in v0.23.0

func (r CreateStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateStatusPageResponse) Status added in v0.23.0

func (r CreateStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (CreateStatusPageResponse) StatusCode added in v0.23.0

func (r CreateStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAlertChannelResponse

type DeleteAlertChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseDeleteAlertChannelResponse

func ParseDeleteAlertChannelResponse(rsp *http.Response) (*DeleteAlertChannelResponse, error)

ParseDeleteAlertChannelResponse parses an HTTP response from a DeleteAlertChannelWithResponse call

func (DeleteAlertChannelResponse) ContentType

func (r DeleteAlertChannelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteAlertChannelResponse) Status

Status returns HTTPResponse.Status

func (DeleteAlertChannelResponse) StatusCode

func (r DeleteAlertChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMonitorResponse

type DeleteMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseDeleteMonitorResponse

func ParseDeleteMonitorResponse(rsp *http.Response) (*DeleteMonitorResponse, error)

ParseDeleteMonitorResponse parses an HTTP response from a DeleteMonitorWithResponse call

func (DeleteMonitorResponse) ContentType

func (r DeleteMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteMonitorResponse) Status

func (r DeleteMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteMonitorResponse) StatusCode

func (r DeleteMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteStatusPageResponse added in v0.23.0

type DeleteStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseDeleteStatusPageResponse added in v0.23.0

func ParseDeleteStatusPageResponse(rsp *http.Response) (*DeleteStatusPageResponse, error)

ParseDeleteStatusPageResponse parses an HTTP response from a DeleteStatusPageWithResponse call

func (DeleteStatusPageResponse) ContentType added in v0.23.0

func (r DeleteStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteStatusPageResponse) Status added in v0.23.0

func (r DeleteStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteStatusPageResponse) StatusCode added in v0.23.0

func (r DeleteStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DtoAlertChannel

type DtoAlertChannel struct {
	CreatedAt string             `json:"createdAt"`
	Enabled   bool               `json:"enabled"`
	Id        openapi_types.UUID `json:"id"`
	IsDefault bool               `json:"isDefault"`

	// Kind Kind is how the channel delivers. voice is a voice-call channel made
	// before calls were withdrawn: it stays disabled and gets no alerts;
	// it can be renamed or deleted.
	Kind      DtoAlertChannelKind     `json:"kind"`
	Name      string                  `json:"name"`
	Settings  DtoAlertChannelSettings `json:"settings"`
	UpdatedAt string                  `json:"updatedAt"`

	// Verified Verified is false for an SMS or email-address channel until
	// its contact confirmed a code; such a channel gets no alerts.
	Verified bool `json:"verified"`
}

DtoAlertChannel defines model for dto.AlertChannel.

type DtoAlertChannelCreate

type DtoAlertChannelCreate struct {
	// IsDefault IsDefault channels get the alerts of monitors without their own
	// alert settings.
	IsDefault *bool                        `json:"isDefault,omitempty"`
	Kind      DtoAlertChannelCreateKind    `json:"kind"`
	Name      string                       `json:"name"`
	Settings  DtoAlertChannelSettingsInput `json:"settings"`
}

DtoAlertChannelCreate defines model for dto.AlertChannelCreate.

type DtoAlertChannelCreateKind

type DtoAlertChannelCreateKind string

DtoAlertChannelCreateKind defines model for DtoAlertChannelCreate.Kind.

const (
	DtoAlertChannelCreateKindDiscord DtoAlertChannelCreateKind = "discord"
	DtoAlertChannelCreateKindEmail   DtoAlertChannelCreateKind = "email"
	DtoAlertChannelCreateKindSlack   DtoAlertChannelCreateKind = "slack"
	DtoAlertChannelCreateKindSms     DtoAlertChannelCreateKind = "sms"
	DtoAlertChannelCreateKindWebhook DtoAlertChannelCreateKind = "webhook"
)

Defines values for DtoAlertChannelCreateKind.

func (DtoAlertChannelCreateKind) Valid

func (e DtoAlertChannelCreateKind) Valid() bool

Valid indicates whether the value is a known member of the DtoAlertChannelCreateKind enum.

type DtoAlertChannelKind

type DtoAlertChannelKind string

DtoAlertChannelKind Kind is how the channel delivers. voice is a voice-call channel made before calls were withdrawn: it stays disabled and gets no alerts; it can be renamed or deleted.

const (
	DtoAlertChannelKindDiscord DtoAlertChannelKind = "discord"
	DtoAlertChannelKindEmail   DtoAlertChannelKind = "email"
	DtoAlertChannelKindSlack   DtoAlertChannelKind = "slack"
	DtoAlertChannelKindSms     DtoAlertChannelKind = "sms"
	DtoAlertChannelKindVoice   DtoAlertChannelKind = "voice"
	DtoAlertChannelKindWebhook DtoAlertChannelKind = "webhook"
)

Defines values for DtoAlertChannelKind.

func (DtoAlertChannelKind) Valid

func (e DtoAlertChannelKind) Valid() bool

Valid indicates whether the value is a known member of the DtoAlertChannelKind enum.

type DtoAlertChannelSettings

type DtoAlertChannelSettings struct {
	Address *string `json:"address,omitempty"`
	Hint    *string `json:"hint,omitempty"`
	Members *bool   `json:"members,omitempty"`
	Phone   *string `json:"phone,omitempty"`
	Url     *string `json:"url,omitempty"`
}

DtoAlertChannelSettings defines model for dto.AlertChannelSettings.

type DtoAlertChannelSettingsInput

type DtoAlertChannelSettingsInput struct {
	Address       *string `json:"address,omitempty"`
	Members       *bool   `json:"members,omitempty"`
	Phone         *string `json:"phone,omitempty"`
	SigningSecret *string `json:"signingSecret,omitempty"`
	Url           *string `json:"url,omitempty"`
}

DtoAlertChannelSettingsInput defines model for dto.AlertChannelSettingsInput.

type DtoAlertChannelTestResult

type DtoAlertChannelTestResult struct {
	ProviderRef string `json:"providerRef"`
}

DtoAlertChannelTestResult defines model for dto.AlertChannelTestResult.

type DtoAlertChannelUpdate

type DtoAlertChannelUpdate struct {
	Enabled      *bool                         `json:"enabled,omitempty"`
	IsDefault    *bool                         `json:"isDefault,omitempty"`
	Name         *string                       `json:"name,omitempty"`
	RotateSecret *bool                         `json:"rotateSecret,omitempty"`
	Settings     *DtoAlertChannelSettingsInput `json:"settings,omitempty"`
}

DtoAlertChannelUpdate defines model for dto.AlertChannelUpdate.

type DtoAlertChannelVerifyConfirm

type DtoAlertChannelVerifyConfirm struct {
	Code string `json:"code"`
}

DtoAlertChannelVerifyConfirm defines model for dto.AlertChannelVerifyConfirm.

type DtoAlertChannelWithSecret

type DtoAlertChannelWithSecret struct {
	CreatedAt string             `json:"createdAt"`
	Enabled   bool               `json:"enabled"`
	Id        openapi_types.UUID `json:"id"`
	IsDefault bool               `json:"isDefault"`

	// Kind Kind is how the channel delivers. voice is a voice-call channel made
	// before calls were withdrawn: it stays disabled and gets no alerts;
	// it can be renamed or deleted.
	Kind          DtoAlertChannelWithSecretKind `json:"kind"`
	Name          string                        `json:"name"`
	Settings      DtoAlertChannelSettings       `json:"settings"`
	SigningSecret *string                       `json:"signingSecret,omitempty"`
	UpdatedAt     string                        `json:"updatedAt"`

	// Verified Verified is false for an SMS or email-address channel until
	// its contact confirmed a code; such a channel gets no alerts.
	Verified bool `json:"verified"`
}

DtoAlertChannelWithSecret defines model for dto.AlertChannelWithSecret.

type DtoAlertChannelWithSecretKind

type DtoAlertChannelWithSecretKind string

DtoAlertChannelWithSecretKind Kind is how the channel delivers. voice is a voice-call channel made before calls were withdrawn: it stays disabled and gets no alerts; it can be renamed or deleted.

const (
	Discord DtoAlertChannelWithSecretKind = "discord"
	Email   DtoAlertChannelWithSecretKind = "email"
	Slack   DtoAlertChannelWithSecretKind = "slack"
	Sms     DtoAlertChannelWithSecretKind = "sms"
	Voice   DtoAlertChannelWithSecretKind = "voice"
	Webhook DtoAlertChannelWithSecretKind = "webhook"
)

Defines values for DtoAlertChannelWithSecretKind.

func (DtoAlertChannelWithSecretKind) Valid

Valid indicates whether the value is a known member of the DtoAlertChannelWithSecretKind enum.

type DtoAvailability

type DtoAvailability struct {
	Checks          int                  `json:"checks"`
	Critical        int                  `json:"critical"`
	Days            []DtoDayAvailability `json:"days"`
	DowntimeMinutes int                  `json:"downtimeMinutes"`
	From            string               `json:"from"`
	Inconclusive    int                  `json:"inconclusive"`
	Ok              int                  `json:"ok"`
	To              string               `json:"to"`

	// UptimePercent UptimePercent is (ok + warning) / (ok + warning + critical); absent
	// without conclusive checks, and for SSL and domain monitors (no
	// uptime: their downtime is always 0).
	UptimePercent *float32 `json:"uptimePercent,omitempty"`
	Warning       int      `json:"warning"`
}

DtoAvailability defines model for dto.Availability.

type DtoCertificate

type DtoCertificate struct {
	// Chain Chain is what the server presented, leaf first; absent on results
	// recorded before chains were kept.
	Chain         *[]DtoChainCertificate `json:"chain,omitempty"`
	ChainValid    bool                   `json:"chainValid"`
	DaysRemaining int                    `json:"daysRemaining"`

	// DnsNames DNSNames are the subject alternative names (SANs).
	DnsNames *[]string `json:"dnsNames,omitempty"`

	// FingerprintSha256 FingerprintSHA256 is the SHA-256 of the certificate (DER), hex.
	FingerprintSha256 *string `json:"fingerprintSha256,omitempty"`
	HostnameValid     bool    `json:"hostnameValid"`
	Issuer            string  `json:"issuer"`
	IssuerOrg         *string `json:"issuerOrg,omitempty"`
	NotAfter          string  `json:"notAfter"`
	NotBefore         string  `json:"notBefore"`
	SerialNumber      *string `json:"serialNumber,omitempty"`

	// SignatureAlgorithm SignatureAlgorithm as Go names it ("SHA256-RSA", "ECDSA-SHA384").
	SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty"`
	Subject            string  `json:"subject"`

	// VerifiedChainLength VerifiedChainLength counts the certificates from the leaf to a
	// trusted root, root included; absent when the chain doesn't verify.
	VerifiedChainLength *int `json:"verifiedChainLength,omitempty"`
}

DtoCertificate defines model for dto.Certificate.

type DtoCertificateRenewal

type DtoCertificateRenewal struct {
	Current  DtoRenewedCertificate `json:"current"`
	Previous DtoRenewedCertificate `json:"previous"`
}

DtoCertificateRenewal defines model for dto.CertificateRenewal.

type DtoChainCertificate

type DtoChainCertificate struct {
	IsCA      bool   `json:"isCA"`
	Issuer    string `json:"issuer"`
	NotAfter  string `json:"notAfter"`
	NotBefore string `json:"notBefore"`
	Subject   string `json:"subject"`
}

DtoChainCertificate defines model for dto.ChainCertificate.

type DtoChannelDelivery

type DtoChannelDelivery struct {
	Attempts  int                     `json:"attempts"`
	CreatedAt string                  `json:"createdAt"`
	Event     DtoChannelDeliveryEvent `json:"event"`
	Id        openapi_types.UUID      `json:"id"`

	// IncidentId IncidentID is absent for an alert outside an incident.
	IncidentId  *openapi_types.UUID `json:"incidentId,omitempty"`
	LastError   *string             `json:"lastError,omitempty"`
	MonitorId   openapi_types.UUID  `json:"monitorId"`
	MonitorName string              `json:"monitorName"`

	// NextAttemptAt NextAttemptAt is set while pending.
	NextAttemptAt *string `json:"nextAttemptAt,omitempty"`
	SentAt        *string `json:"sentAt,omitempty"`

	// Status Status: pending (queued or waiting to retry), sent, dead (gave up).
	Status DtoChannelDeliveryStatus `json:"status"`
}

DtoChannelDelivery defines model for dto.ChannelDelivery.

type DtoChannelDeliveryEvent

type DtoChannelDeliveryEvent string

DtoChannelDeliveryEvent defines model for DtoChannelDelivery.Event.

const (
	DtoChannelDeliveryEventDown      DtoChannelDeliveryEvent = "down"
	DtoChannelDeliveryEventExpired   DtoChannelDeliveryEvent = "expired"
	DtoChannelDeliveryEventExpiring  DtoChannelDeliveryEvent = "expiring"
	DtoChannelDeliveryEventRecovered DtoChannelDeliveryEvent = "recovered"
	DtoChannelDeliveryEventReminder  DtoChannelDeliveryEvent = "reminder"
	DtoChannelDeliveryEventWarning   DtoChannelDeliveryEvent = "warning"
)

Defines values for DtoChannelDeliveryEvent.

func (DtoChannelDeliveryEvent) Valid

func (e DtoChannelDeliveryEvent) Valid() bool

Valid indicates whether the value is a known member of the DtoChannelDeliveryEvent enum.

type DtoChannelDeliveryStatus

type DtoChannelDeliveryStatus string

DtoChannelDeliveryStatus Status: pending (queued or waiting to retry), sent, dead (gave up).

const (
	DtoChannelDeliveryStatusDead    DtoChannelDeliveryStatus = "dead"
	DtoChannelDeliveryStatusPending DtoChannelDeliveryStatus = "pending"
	DtoChannelDeliveryStatusSent    DtoChannelDeliveryStatus = "sent"
)

Defines values for DtoChannelDeliveryStatus.

func (DtoChannelDeliveryStatus) Valid

func (e DtoChannelDeliveryStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoChannelDeliveryStatus enum.

type DtoCheckRegion

type DtoCheckRegion struct {
	// Code Code is the AWS region code, as results' region carries it.
	Code string `json:"code"`

	// Name Name is the city people know the region by.
	Name string `json:"name"`
}

DtoCheckRegion defines model for dto.CheckRegion.

type DtoCheckResult

type DtoCheckResult struct {
	Certificate  *DtoCertificate        `json:"certificate,omitempty"`
	CheckedAt    string                 `json:"checkedAt"`
	Condition    string                 `json:"condition"`
	Domain       *DtoDomainRegistration `json:"domain,omitempty"`
	ErrorMessage *string                `json:"errorMessage,omitempty"`
	Id           int                    `json:"id"`
	Redirects    *[]string              `json:"redirects,omitempty"`
	Region       string                 `json:"region"`
	Severity     DtoCheckResultSeverity `json:"severity"`
	StatusCode   *int                   `json:"statusCode,omitempty"`
	Timings      DtoCheckTimings        `json:"timings"`
}

DtoCheckResult defines model for dto.CheckResult.

type DtoCheckResultSeverity

type DtoCheckResultSeverity string

DtoCheckResultSeverity defines model for DtoCheckResult.Severity.

const (
	DtoCheckResultSeverityCritical     DtoCheckResultSeverity = "critical"
	DtoCheckResultSeverityInconclusive DtoCheckResultSeverity = "inconclusive"
	DtoCheckResultSeverityOk           DtoCheckResultSeverity = "ok"
	DtoCheckResultSeverityWarning      DtoCheckResultSeverity = "warning"
)

Defines values for DtoCheckResultSeverity.

func (DtoCheckResultSeverity) Valid

func (e DtoCheckResultSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoCheckResultSeverity enum.

type DtoCheckTimings

type DtoCheckTimings struct {
	ConnectMs  *int `json:"connectMs,omitempty"`
	DnsMs      *int `json:"dnsMs,omitempty"`
	RedirectMs *int `json:"redirectMs,omitempty"`
	TlsMs      *int `json:"tlsMs,omitempty"`
	TotalMs    int  `json:"totalMs"`
	TtfbMs     *int `json:"ttfbMs,omitempty"`
}

DtoCheckTimings defines model for dto.CheckTimings.

type DtoConditionFacts

type DtoConditionFacts struct {
	DaysRemaining *int    `json:"daysRemaining,omitempty"`
	ExpiresAt     *string `json:"expiresAt,omitempty"`

	// ResponseTimeMs ResponseTimeMs and SlowThresholdMs: a slow response's time and the
	// threshold it went over (slow_response only).
	ResponseTimeMs  *int `json:"responseTimeMs,omitempty"`
	SlowThresholdMs *int `json:"slowThresholdMs,omitempty"`
	StatusCode      *int `json:"statusCode,omitempty"`

	// ThresholdDays ThresholdDays is the smallest expiry threshold the expiry is within.
	ThresholdDays *int `json:"thresholdDays,omitempty"`
}

DtoConditionFacts defines model for dto.ConditionFacts.

type DtoDayAvailability

type DtoDayAvailability struct {
	Checks   int `json:"checks"`
	Critical int `json:"critical"`

	// Date Date is the UTC day, YYYY-MM-DD.
	Date string `json:"date"`

	// DowntimeMinutes DowntimeMinutes estimates the time spent down: the share of
	// critical checks among the conclusive ones times the minutes the
	// day's checks cover. A warning is not downtime.
	DowntimeMinutes int `json:"downtimeMinutes"`
	Inconclusive    int `json:"inconclusive"`

	// NoData NoData: no checks that day (draw it gray, never as up).
	NoData        bool     `json:"noData"`
	Ok            int      `json:"ok"`
	UptimePercent *float32 `json:"uptimePercent,omitempty"`
	Warning       int      `json:"warning"`
}

DtoDayAvailability defines model for dto.DayAvailability.

type DtoDomainRegistration

type DtoDomainRegistration struct {
	// CheckedAt CheckedAt is when the registry was asked (lookups are cached up to
	// an hour).
	CheckedAt string `json:"checkedAt"`

	// DaysRemaining DaysRemaining is 0 on the expiry day, negative after it.
	DaysRemaining *int `json:"daysRemaining,omitempty"`

	// Dnssec DNSSEC: signed when the registry holds DS records for the domain;
	// absent when the registry doesn't say.
	Dnssec *DtoDomainRegistrationDnssec `json:"dnssec,omitempty"`
	Domain string                       `json:"domain"`

	// ExpiresAt ExpiresAt is the expiry date at 00:00 UTC; absent when the registry
	// publishes none.
	ExpiresAt *string `json:"expiresAt,omitempty"`

	// Nameservers Nameservers are the delegation's nameservers, lower case, in the
	// registry's order; [] when unknown (results recorded before they were
	// kept, registries that publish none).
	Nameservers []string `json:"nameservers"`
	Registered  bool     `json:"registered"`

	// RegisteredAt RegisteredAt is the registration (creation) date at 00:00 UTC, and
	// UpdatedAt the registry's last change of it; absent when the registry
	// doesn't publish them (and for dns answers).
	RegisteredAt *string                     `json:"registeredAt,omitempty"`
	Registrar    *string                     `json:"registrar,omitempty"`
	Source       DtoDomainRegistrationSource `json:"source"`

	// StatusCodes StatusCodes are the EPP status codes (RFC 5731), e.g. ok,
	// clientTransferProhibited, serverHold, pendingDelete,
	// redemptionPeriod; [] when unknown (dns answers).
	StatusCodes []string `json:"statusCodes"`
	UpdatedAt   *string  `json:"updatedAt,omitempty"`
}

DtoDomainRegistration defines model for dto.DomainRegistration.

type DtoDomainRegistrationDnssec

type DtoDomainRegistrationDnssec string

DtoDomainRegistrationDnssec DNSSEC: signed when the registry holds DS records for the domain; absent when the registry doesn't say.

const (
	Signed   DtoDomainRegistrationDnssec = "signed"
	Unsigned DtoDomainRegistrationDnssec = "unsigned"
)

Defines values for DtoDomainRegistrationDnssec.

func (DtoDomainRegistrationDnssec) Valid

Valid indicates whether the value is a known member of the DtoDomainRegistrationDnssec enum.

type DtoDomainRegistrationSource

type DtoDomainRegistrationSource string

DtoDomainRegistrationSource defines model for DtoDomainRegistration.Source.

const (
	Dns   DtoDomainRegistrationSource = "dns"
	Rdap  DtoDomainRegistrationSource = "rdap"
	Whois DtoDomainRegistrationSource = "whois"
)

Defines values for DtoDomainRegistrationSource.

func (DtoDomainRegistrationSource) Valid

Valid indicates whether the value is a known member of the DtoDomainRegistrationSource enum.

type DtoDomainSettings

type DtoDomainSettings struct {
	Domain               string `json:"domain"`
	ExpiryThresholdsDays []int  `json:"expiryThresholdsDays"`
}

DtoDomainSettings defines model for dto.DomainSettings.

type DtoDomainSettingsInput

type DtoDomainSettingsInput struct {
	Domain               string `json:"domain"`
	ExpiryThresholdsDays []int  `json:"expiryThresholdsDays"`
}

DtoDomainSettingsInput defines model for dto.DomainSettingsInput.

type DtoExpiryWatch

type DtoExpiryWatch struct {
	ThresholdsDays []int `json:"thresholdsDays"`
}

DtoExpiryWatch defines model for dto.ExpiryWatch.

type DtoExpiryWatchInput

type DtoExpiryWatchInput struct {
	// ThresholdsDays ThresholdsDays are the expiry warnings, in days before expiry.
	ThresholdsDays []int `json:"thresholdsDays"`
}

DtoExpiryWatchInput defines model for dto.ExpiryWatchInput.

type DtoHTTPHeader

type DtoHTTPHeader struct {
	Name   string  `json:"name"`
	Secret bool    `json:"secret"`
	Value  *string `json:"value,omitempty"`
}

DtoHTTPHeader defines model for dto.HTTPHeader.

type DtoHTTPHeaderInput

type DtoHTTPHeaderInput struct {
	Name   string  `json:"name"`
	Secret *bool   `json:"secret,omitempty"`
	Value  *string `json:"value,omitempty"`
}

DtoHTTPHeaderInput defines model for dto.HTTPHeaderInput.

type DtoHTTPSettings

type DtoHTTPSettings struct {
	// CertificateExpiry CertificateExpiry and DomainExpiry are the watches that are on;
	// absent when off.
	CertificateExpiry      *DtoExpiryWatch `json:"certificateExpiry,omitempty"`
	DomainExpiry           *DtoExpiryWatch `json:"domainExpiry,omitempty"`
	ExpectedStatus         []string        `json:"expectedStatus"`
	FollowRedirects        bool            `json:"followRedirects"`
	Headers                []DtoHTTPHeader `json:"headers"`
	Keyword                *string         `json:"keyword,omitempty"`
	KeywordCaseSensitive   bool            `json:"keywordCaseSensitive"`
	KeywordMode            *string         `json:"keywordMode,omitempty"`
	MaxRedirects           int             `json:"maxRedirects"`
	Method                 string          `json:"method"`
	RequestBody            *string         `json:"requestBody,omitempty"`
	RequestBodyContentType *string         `json:"requestBodyContentType,omitempty"`
	SlowThresholdMs        *int            `json:"slowThresholdMs,omitempty"`
	TimeoutMs              int             `json:"timeoutMs"`
	Url                    string          `json:"url"`
	VerifyTls              bool            `json:"verifyTls"`
}

DtoHTTPSettings defines model for dto.HTTPSettings.

type DtoHTTPSettingsInput

type DtoHTTPSettingsInput struct {
	// CertificateExpiry CertificateExpiry watches the expiry of the certificate the URL
	// presents (https:// URLs only), judged with every check; omit it to
	// leave the watch off.
	CertificateExpiry *DtoExpiryWatchInput `json:"certificateExpiry,omitempty"`

	// DomainExpiry DomainExpiry watches the registration of the URL's registrable
	// domain (shop.example.com watches example.com), looked up twice a
	// day; omit it to leave the watch off. Not for IP addresses.
	DomainExpiry    *DtoExpiryWatchInput  `json:"domainExpiry,omitempty"`
	ExpectedStatus  []string              `json:"expectedStatus"`
	FollowRedirects bool                  `json:"followRedirects"`
	Headers         *[]DtoHTTPHeaderInput `json:"headers,omitempty"`

	// Keyword Keyword is looked for in the first 256 KiB of the response body.
	Keyword                *string                          `json:"keyword,omitempty"`
	KeywordCaseSensitive   *bool                            `json:"keywordCaseSensitive,omitempty"`
	KeywordMode            *DtoHTTPSettingsInputKeywordMode `json:"keywordMode,omitempty"`
	MaxRedirects           int                              `json:"maxRedirects"`
	Method                 DtoHTTPSettingsInputMethod       `json:"method"`
	RequestBody            *string                          `json:"requestBody,omitempty"`
	RequestBodyContentType *string                          `json:"requestBodyContentType,omitempty"`
	SlowThresholdMs        *int                             `json:"slowThresholdMs,omitempty"`
	TimeoutMs              int                              `json:"timeoutMs"`
	Url                    string                           `json:"url"`
	VerifyTls              bool                             `json:"verifyTls"`
}

DtoHTTPSettingsInput defines model for dto.HTTPSettingsInput.

type DtoHTTPSettingsInputKeywordMode

type DtoHTTPSettingsInputKeywordMode string

DtoHTTPSettingsInputKeywordMode defines model for DtoHTTPSettingsInput.KeywordMode.

const (
	Absent  DtoHTTPSettingsInputKeywordMode = "absent"
	Present DtoHTTPSettingsInputKeywordMode = "present"
)

Defines values for DtoHTTPSettingsInputKeywordMode.

func (DtoHTTPSettingsInputKeywordMode) Valid

Valid indicates whether the value is a known member of the DtoHTTPSettingsInputKeywordMode enum.

type DtoHTTPSettingsInputMethod

type DtoHTTPSettingsInputMethod string

DtoHTTPSettingsInputMethod defines model for DtoHTTPSettingsInput.Method.

const (
	DELETE  DtoHTTPSettingsInputMethod = "DELETE"
	GET     DtoHTTPSettingsInputMethod = "GET"
	HEAD    DtoHTTPSettingsInputMethod = "HEAD"
	OPTIONS DtoHTTPSettingsInputMethod = "OPTIONS"
	PATCH   DtoHTTPSettingsInputMethod = "PATCH"
	POST    DtoHTTPSettingsInputMethod = "POST"
	PUT     DtoHTTPSettingsInputMethod = "PUT"
)

Defines values for DtoHTTPSettingsInputMethod.

func (DtoHTTPSettingsInputMethod) Valid

func (e DtoHTTPSettingsInputMethod) Valid() bool

Valid indicates whether the value is a known member of the DtoHTTPSettingsInputMethod enum.

type DtoHistoryBeat

type DtoHistoryBeat struct {
	CheckedAt      string                 `json:"checkedAt"`
	Condition      string                 `json:"condition"`
	ResponseTimeMs int                    `json:"responseTimeMs"`
	ResultId       int                    `json:"resultId"`
	Severity       DtoHistoryBeatSeverity `json:"severity"`
	StatusCode     *int                   `json:"statusCode,omitempty"`
}

DtoHistoryBeat defines model for dto.HistoryBeat.

type DtoHistoryBeatSeverity

type DtoHistoryBeatSeverity string

DtoHistoryBeatSeverity defines model for DtoHistoryBeat.Severity.

const (
	DtoHistoryBeatSeverityCritical     DtoHistoryBeatSeverity = "critical"
	DtoHistoryBeatSeverityInconclusive DtoHistoryBeatSeverity = "inconclusive"
	DtoHistoryBeatSeverityOk           DtoHistoryBeatSeverity = "ok"
	DtoHistoryBeatSeverityWarning      DtoHistoryBeatSeverity = "warning"
)

Defines values for DtoHistoryBeatSeverity.

func (DtoHistoryBeatSeverity) Valid

func (e DtoHistoryBeatSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoHistoryBeatSeverity enum.

type DtoIncident

type DtoIncident struct {
	AcknowledgedAt *string             `json:"acknowledgedAt,omitempty"`
	AcknowledgedBy *openapi_types.UUID `json:"acknowledgedBy,omitempty"`

	// Aspect Aspect is what the incident is about.
	Aspect DtoIncidentAspect `json:"aspect"`

	// Condition Condition is what the latest check that changed the incident found;
	// summary is its message, facts its facts.
	Condition string `json:"condition"`

	// DurationSeconds DurationSeconds is how long it lasted (or has lasted so far).
	DurationSeconds int                    `json:"durationSeconds"`
	Facts           DtoConditionFacts      `json:"facts"`
	Id              openapi_types.UUID     `json:"id"`
	MonitorId       openapi_types.UUID     `json:"monitorId"`
	MonitorName     string                 `json:"monitorName"`
	MonitorTarget   string                 `json:"monitorTarget"`
	MonitorType     DtoIncidentMonitorType `json:"monitorType"`

	// MonitorVariant MonitorVariant names what the monitor does, as on monitor rows
	// (keyword for an HTTP monitor with a keyword).
	MonitorVariant DtoIncidentMonitorVariant `json:"monitorVariant"`
	OpenedAt       string                    `json:"openedAt"`
	PeakSeverity   DtoIncidentPeakSeverity   `json:"peakSeverity"`
	ResolvedAt     *string                   `json:"resolvedAt,omitempty"`

	// Severity Severity is the current one; peakSeverity the worst it reached (a
	// de-escalated incident stays open at warning).
	Severity DtoIncidentSeverity `json:"severity"`
	Status   DtoIncidentStatus   `json:"status"`
	Summary  string              `json:"summary"`

	// Title Title names the problem in the monitor type's words (an expiry's
	// days counted now, or when it ended).
	Title string `json:"title"`
}

DtoIncident defines model for dto.Incident.

type DtoIncidentAspect

type DtoIncidentAspect string

DtoIncidentAspect Aspect is what the incident is about.

const (
	DtoIncidentAspectAvailability DtoIncidentAspect = "availability"
	DtoIncidentAspectCertificate  DtoIncidentAspect = "certificate"
	DtoIncidentAspectDomain       DtoIncidentAspect = "domain"
)

Defines values for DtoIncidentAspect.

func (DtoIncidentAspect) Valid

func (e DtoIncidentAspect) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentAspect enum.

type DtoIncidentDelivery

type DtoIncidentDelivery struct {
	// AlertId AlertID is the alert this delivery sends: an alert goes to every
	// channel of its route, one delivery each.
	AlertId     openapi_types.UUID       `json:"alertId"`
	Attempts    int                      `json:"attempts"`
	ChannelId   *openapi_types.UUID      `json:"channelId,omitempty"`
	ChannelKind *string                  `json:"channelKind,omitempty"`
	ChannelName *string                  `json:"channelName,omitempty"`
	Event       DtoIncidentDeliveryEvent `json:"event"`
	LastError   *string                  `json:"lastError,omitempty"`

	// NextAttemptAt NextAttemptAt is when a pending delivery is tried again.
	NextAttemptAt *string `json:"nextAttemptAt,omitempty"`

	// QueuedAt QueuedAt is when the alert was queued: the time of the timeline
	// entry that sent it (opened, escalated, threshold, reminder).
	QueuedAt string                    `json:"queuedAt"`
	SentAt   *string                   `json:"sentAt,omitempty"`
	Status   DtoIncidentDeliveryStatus `json:"status"`
}

DtoIncidentDelivery defines model for dto.IncidentDelivery.

type DtoIncidentDeliveryEvent

type DtoIncidentDeliveryEvent string

DtoIncidentDeliveryEvent defines model for DtoIncidentDelivery.Event.

const (
	DtoIncidentDeliveryEventDown      DtoIncidentDeliveryEvent = "down"
	DtoIncidentDeliveryEventExpired   DtoIncidentDeliveryEvent = "expired"
	DtoIncidentDeliveryEventExpiring  DtoIncidentDeliveryEvent = "expiring"
	DtoIncidentDeliveryEventRecovered DtoIncidentDeliveryEvent = "recovered"
	DtoIncidentDeliveryEventReminder  DtoIncidentDeliveryEvent = "reminder"
	DtoIncidentDeliveryEventWarning   DtoIncidentDeliveryEvent = "warning"
)

Defines values for DtoIncidentDeliveryEvent.

func (DtoIncidentDeliveryEvent) Valid

func (e DtoIncidentDeliveryEvent) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentDeliveryEvent enum.

type DtoIncidentDeliveryStatus

type DtoIncidentDeliveryStatus string

DtoIncidentDeliveryStatus defines model for DtoIncidentDelivery.Status.

const (
	DtoIncidentDeliveryStatusDead    DtoIncidentDeliveryStatus = "dead"
	DtoIncidentDeliveryStatusPending DtoIncidentDeliveryStatus = "pending"
	DtoIncidentDeliveryStatusSent    DtoIncidentDeliveryStatus = "sent"
)

Defines values for DtoIncidentDeliveryStatus.

func (DtoIncidentDeliveryStatus) Valid

func (e DtoIncidentDeliveryStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentDeliveryStatus enum.

type DtoIncidentDetail

type DtoIncidentDetail struct {
	AcknowledgedAt *string             `json:"acknowledgedAt,omitempty"`
	AcknowledgedBy *openapi_types.UUID `json:"acknowledgedBy,omitempty"`

	// AcknowledgedByName AcknowledgedByName names who acknowledged it (their name, else
	// email); absent when nobody did or Norcube Auth couldn't say.
	AcknowledgedByName *string               `json:"acknowledgedByName,omitempty"`
	Alerts             []DtoIncidentDelivery `json:"alerts"`

	// Aspect Aspect is what the incident is about.
	Aspect DtoIncidentDetailAspect `json:"aspect"`

	// Condition Condition is what the latest check that changed the incident found;
	// summary is its message, facts its facts.
	Condition string `json:"condition"`

	// DurationSeconds DurationSeconds is how long it lasted (or has lasted so far).
	DurationSeconds int                          `json:"durationSeconds"`
	Facts           DtoConditionFacts            `json:"facts"`
	Id              openapi_types.UUID           `json:"id"`
	MonitorId       openapi_types.UUID           `json:"monitorId"`
	MonitorName     string                       `json:"monitorName"`
	MonitorTarget   string                       `json:"monitorTarget"`
	MonitorType     DtoIncidentDetailMonitorType `json:"monitorType"`

	// MonitorVariant MonitorVariant names what the monitor does, as on monitor rows
	// (keyword for an HTTP monitor with a keyword).
	MonitorVariant DtoIncidentDetailMonitorVariant `json:"monitorVariant"`
	OpenedAt       string                          `json:"openedAt"`
	PeakSeverity   DtoIncidentDetailPeakSeverity   `json:"peakSeverity"`
	ResolvedAt     *string                         `json:"resolvedAt,omitempty"`

	// Severity Severity is the current one; peakSeverity the worst it reached (a
	// de-escalated incident stays open at warning).
	Severity DtoIncidentDetailSeverity `json:"severity"`
	Status   DtoIncidentDetailStatus   `json:"status"`
	Summary  string                    `json:"summary"`
	Timeline []DtoIncidentEvent        `json:"timeline"`

	// Title Title names the problem in the monitor type's words (an expiry's
	// days counted now, or when it ended).
	Title string `json:"title"`
}

DtoIncidentDetail defines model for dto.IncidentDetail.

type DtoIncidentDetailAspect

type DtoIncidentDetailAspect string

DtoIncidentDetailAspect Aspect is what the incident is about.

const (
	DtoIncidentDetailAspectAvailability DtoIncidentDetailAspect = "availability"
	DtoIncidentDetailAspectCertificate  DtoIncidentDetailAspect = "certificate"
	DtoIncidentDetailAspectDomain       DtoIncidentDetailAspect = "domain"
)

Defines values for DtoIncidentDetailAspect.

func (DtoIncidentDetailAspect) Valid

func (e DtoIncidentDetailAspect) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentDetailAspect enum.

type DtoIncidentDetailMonitorType

type DtoIncidentDetailMonitorType string

DtoIncidentDetailMonitorType defines model for DtoIncidentDetail.MonitorType.

const (
	DtoIncidentDetailMonitorTypeDomain DtoIncidentDetailMonitorType = "domain"
	DtoIncidentDetailMonitorTypeHttp   DtoIncidentDetailMonitorType = "http"
	DtoIncidentDetailMonitorTypeSsl    DtoIncidentDetailMonitorType = "ssl"
)

Defines values for DtoIncidentDetailMonitorType.

func (DtoIncidentDetailMonitorType) Valid

Valid indicates whether the value is a known member of the DtoIncidentDetailMonitorType enum.

type DtoIncidentDetailMonitorVariant

type DtoIncidentDetailMonitorVariant string

DtoIncidentDetailMonitorVariant MonitorVariant names what the monitor does, as on monitor rows (keyword for an HTTP monitor with a keyword).

const (
	DtoIncidentDetailMonitorVariantDomain  DtoIncidentDetailMonitorVariant = "domain"
	DtoIncidentDetailMonitorVariantHttp    DtoIncidentDetailMonitorVariant = "http"
	DtoIncidentDetailMonitorVariantKeyword DtoIncidentDetailMonitorVariant = "keyword"
	DtoIncidentDetailMonitorVariantSsl     DtoIncidentDetailMonitorVariant = "ssl"
)

Defines values for DtoIncidentDetailMonitorVariant.

func (DtoIncidentDetailMonitorVariant) Valid

Valid indicates whether the value is a known member of the DtoIncidentDetailMonitorVariant enum.

type DtoIncidentDetailPeakSeverity

type DtoIncidentDetailPeakSeverity string

DtoIncidentDetailPeakSeverity defines model for DtoIncidentDetail.PeakSeverity.

const (
	DtoIncidentDetailPeakSeverityCritical DtoIncidentDetailPeakSeverity = "critical"
	DtoIncidentDetailPeakSeverityWarning  DtoIncidentDetailPeakSeverity = "warning"
)

Defines values for DtoIncidentDetailPeakSeverity.

func (DtoIncidentDetailPeakSeverity) Valid

Valid indicates whether the value is a known member of the DtoIncidentDetailPeakSeverity enum.

type DtoIncidentDetailSeverity

type DtoIncidentDetailSeverity string

DtoIncidentDetailSeverity Severity is the current one; peakSeverity the worst it reached (a de-escalated incident stays open at warning).

const (
	DtoIncidentDetailSeverityCritical DtoIncidentDetailSeverity = "critical"
	DtoIncidentDetailSeverityWarning  DtoIncidentDetailSeverity = "warning"
)

Defines values for DtoIncidentDetailSeverity.

func (DtoIncidentDetailSeverity) Valid

func (e DtoIncidentDetailSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentDetailSeverity enum.

type DtoIncidentDetailStatus

type DtoIncidentDetailStatus string

DtoIncidentDetailStatus defines model for DtoIncidentDetail.Status.

const (
	DtoIncidentDetailStatusOpen     DtoIncidentDetailStatus = "open"
	DtoIncidentDetailStatusResolved DtoIncidentDetailStatus = "resolved"
)

Defines values for DtoIncidentDetailStatus.

func (DtoIncidentDetailStatus) Valid

func (e DtoIncidentDetailStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentDetailStatus enum.

type DtoIncidentEvent

type DtoIncidentEvent struct {
	At     string                  `json:"at"`
	Detail *map[string]interface{} `json:"detail,omitempty"`
	Type   DtoIncidentEventType    `json:"type"`
}

DtoIncidentEvent defines model for dto.IncidentEvent.

type DtoIncidentEventType

type DtoIncidentEventType string

DtoIncidentEventType defines model for DtoIncidentEvent.Type.

const (
	DtoIncidentEventTypeAcknowledged   DtoIncidentEventType = "acknowledged"
	DtoIncidentEventTypeDeescalated    DtoIncidentEventType = "deescalated"
	DtoIncidentEventTypeDeliveryFailed DtoIncidentEventType = "delivery_failed"
	DtoIncidentEventTypeEscalated      DtoIncidentEventType = "escalated"
	DtoIncidentEventTypeOpened         DtoIncidentEventType = "opened"
	DtoIncidentEventTypeReminder       DtoIncidentEventType = "reminder"
	DtoIncidentEventTypeResolved       DtoIncidentEventType = "resolved"
	DtoIncidentEventTypeThreshold      DtoIncidentEventType = "threshold"
)

Defines values for DtoIncidentEventType.

func (DtoIncidentEventType) Valid

func (e DtoIncidentEventType) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentEventType enum.

type DtoIncidentMonitorType

type DtoIncidentMonitorType string

DtoIncidentMonitorType defines model for DtoIncident.MonitorType.

const (
	DtoIncidentMonitorTypeDomain DtoIncidentMonitorType = "domain"
	DtoIncidentMonitorTypeHttp   DtoIncidentMonitorType = "http"
	DtoIncidentMonitorTypeSsl    DtoIncidentMonitorType = "ssl"
)

Defines values for DtoIncidentMonitorType.

func (DtoIncidentMonitorType) Valid

func (e DtoIncidentMonitorType) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentMonitorType enum.

type DtoIncidentMonitorVariant

type DtoIncidentMonitorVariant string

DtoIncidentMonitorVariant MonitorVariant names what the monitor does, as on monitor rows (keyword for an HTTP monitor with a keyword).

const (
	DtoIncidentMonitorVariantDomain  DtoIncidentMonitorVariant = "domain"
	DtoIncidentMonitorVariantHttp    DtoIncidentMonitorVariant = "http"
	DtoIncidentMonitorVariantKeyword DtoIncidentMonitorVariant = "keyword"
	DtoIncidentMonitorVariantSsl     DtoIncidentMonitorVariant = "ssl"
)

Defines values for DtoIncidentMonitorVariant.

func (DtoIncidentMonitorVariant) Valid

func (e DtoIncidentMonitorVariant) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentMonitorVariant enum.

type DtoIncidentOpenCounts

type DtoIncidentOpenCounts struct {
	Critical       int `json:"critical"`
	Total          int `json:"total"`
	Unacknowledged int `json:"unacknowledged"`
	Warning        int `json:"warning"`
}

DtoIncidentOpenCounts defines model for dto.IncidentOpenCounts.

type DtoIncidentPeakSeverity

type DtoIncidentPeakSeverity string

DtoIncidentPeakSeverity defines model for DtoIncident.PeakSeverity.

const (
	DtoIncidentPeakSeverityCritical DtoIncidentPeakSeverity = "critical"
	DtoIncidentPeakSeverityWarning  DtoIncidentPeakSeverity = "warning"
)

Defines values for DtoIncidentPeakSeverity.

func (DtoIncidentPeakSeverity) Valid

func (e DtoIncidentPeakSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentPeakSeverity enum.

type DtoIncidentSeverity

type DtoIncidentSeverity string

DtoIncidentSeverity Severity is the current one; peakSeverity the worst it reached (a de-escalated incident stays open at warning).

const (
	DtoIncidentSeverityCritical DtoIncidentSeverity = "critical"
	DtoIncidentSeverityWarning  DtoIncidentSeverity = "warning"
)

Defines values for DtoIncidentSeverity.

func (DtoIncidentSeverity) Valid

func (e DtoIncidentSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentSeverity enum.

type DtoIncidentStatus

type DtoIncidentStatus string

DtoIncidentStatus defines model for DtoIncident.Status.

const (
	DtoIncidentStatusOpen     DtoIncidentStatus = "open"
	DtoIncidentStatusResolved DtoIncidentStatus = "resolved"
)

Defines values for DtoIncidentStatus.

func (DtoIncidentStatus) Valid

func (e DtoIncidentStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoIncidentStatus enum.

type DtoIncidentSummary

type DtoIncidentSummary struct {
	// MttrLast30dSeconds MttrLast30dSeconds is the mean time to resolve of those incidents;
	// absent when none was resolved.
	MttrLast30dSeconds *int                  `json:"mttrLast30dSeconds,omitempty"`
	Open               DtoIncidentOpenCounts `json:"open"`

	// ResolvedLast30d ResolvedLast30d counts incidents resolved in the last 30 days, the
	// ones mttrLast30dSeconds averages.
	ResolvedLast30d int `json:"resolvedLast30d"`

	// ResolvedLast7d ResolvedLast7d counts incidents resolved in the last 7 days.
	ResolvedLast7d int `json:"resolvedLast7d"`
}

DtoIncidentSummary defines model for dto.IncidentSummary.

type DtoLastCheck

type DtoLastCheck struct {
	At        string               `json:"at"`
	Condition string               `json:"condition"`
	Severity  DtoLastCheckSeverity `json:"severity"`
	TotalMs   *int                 `json:"totalMs,omitempty"`
}

DtoLastCheck defines model for dto.LastCheck.

type DtoLastCheckSeverity

type DtoLastCheckSeverity string

DtoLastCheckSeverity defines model for DtoLastCheck.Severity.

const (
	DtoLastCheckSeverityCritical     DtoLastCheckSeverity = "critical"
	DtoLastCheckSeverityInconclusive DtoLastCheckSeverity = "inconclusive"
	DtoLastCheckSeverityOk           DtoLastCheckSeverity = "ok"
	DtoLastCheckSeverityWarning      DtoLastCheckSeverity = "warning"
)

Defines values for DtoLastCheckSeverity.

func (DtoLastCheckSeverity) Valid

func (e DtoLastCheckSeverity) Valid() bool

Valid indicates whether the value is a known member of the DtoLastCheckSeverity enum.

type DtoMonitor

type DtoMonitor struct {
	// Aspects Aspects are the monitor's watched aspects (an HTTP monitor's
	// certificate and domain watches that are on), on list rows too; []
	// without watches.
	Aspects []DtoMonitorAspect `json:"aspects"`

	// Condition Condition explains status; absent while pending.
	Condition   *DtoMonitorCondition `json:"condition,omitempty"`
	CreatedAt   string               `json:"createdAt"`
	CreatedBy   openapi_types.UUID   `json:"createdBy"`
	Description string               `json:"description"`
	Domain      *DtoDomainSettings   `json:"domain,omitempty"`

	// History History is set on list rows with include=history: the newest
	// results (at most 60), newest first; [] for a monitor never checked.
	History         *[]DtoHistoryBeat  `json:"history,omitempty"`
	Http            *DtoHTTPSettings   `json:"http,omitempty"`
	Id              openapi_types.UUID `json:"id"`
	IntervalSeconds int                `json:"intervalSeconds"`

	// Last24h Last24h is set on list rows of monitors that track uptime (HTTP):
	// the last 24 full hours plus the current one. SSL and domain monitors
	// show days left (condition.facts) instead.
	Last24h     *DtoWindowSummary `json:"last24h,omitempty"`
	LastCheck   *DtoLastCheck     `json:"lastCheck,omitempty"`
	Name        string            `json:"name"`
	NextCheckAt *string           `json:"nextCheckAt,omitempty"`

	// OverallStatus OverallStatus is the worst of status and the statuses of the
	// monitor's watched aspects (critical, warning, pending, ok), paused
	// while disabled. The list status filter and sort use it.
	OverallStatus DtoMonitorOverallStatus `json:"overallStatus"`

	// ParentResource ParentResource is set when the monitor belongs to a resource of
	// another Norcube service ("domainradar:saved_domain:example.com"). It
	// can't be deleted here, and its domain can't change.
	ParentResource *string `json:"parentResource,omitempty"`

	// Regions Regions are where the monitor is checked from, on list rows too.
	// Today every monitor is checked from the one region the service runs
	// in; with probes in more regions (planned) a monitor may list
	// several. Each result says which region checked it (region).
	Regions []DtoCheckRegion `json:"regions"`
	Ssl     *DtoSSLSettings  `json:"ssl,omitempty"`

	// Status Status is the primary aspect's: the severity of the last conclusive
	// check, pending before one, paused while disabled. An inconclusive
	// check (a failed registry lookup) never changes it.
	Status      DtoMonitorStatus `json:"status"`
	StatusSince string           `json:"statusSince"`
	Target      string           `json:"target"`
	Type        DtoMonitorType   `json:"type"`
	UpdatedAt   string           `json:"updatedAt"`

	// Variant Variant is what the monitor does in one word, on list rows too
	// (which carry no settings): keyword for an HTTP monitor that looks for
	// a keyword in the body, otherwise the type.
	Variant DtoMonitorVariant `json:"variant"`
}

DtoMonitor defines model for dto.Monitor.

type DtoMonitorAlertRoute

type DtoMonitorAlertRoute struct {
	ChannelId openapi_types.UUID           `json:"channelId"`
	Events    []DtoMonitorAlertRouteEvents `json:"events"`
}

DtoMonitorAlertRoute defines model for dto.MonitorAlertRoute.

type DtoMonitorAlertRouteEvents

type DtoMonitorAlertRouteEvents string

DtoMonitorAlertRouteEvents defines model for DtoMonitorAlertRoute.Events.

const (
	DtoMonitorAlertRouteEventsDown      DtoMonitorAlertRouteEvents = "down"
	DtoMonitorAlertRouteEventsExpired   DtoMonitorAlertRouteEvents = "expired"
	DtoMonitorAlertRouteEventsExpiring  DtoMonitorAlertRouteEvents = "expiring"
	DtoMonitorAlertRouteEventsRecovered DtoMonitorAlertRouteEvents = "recovered"
	DtoMonitorAlertRouteEventsWarning   DtoMonitorAlertRouteEvents = "warning"
)

Defines values for DtoMonitorAlertRouteEvents.

func (DtoMonitorAlertRouteEvents) Valid

func (e DtoMonitorAlertRouteEvents) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorAlertRouteEvents enum.

type DtoMonitorAlerts

type DtoMonitorAlerts struct {
	// ApplicableEvents ApplicableEvents are the events monitors of this type can send
	// (offer only these in a routing form).
	ApplicableEvents []DtoMonitorAlertsApplicableEvents `json:"applicableEvents"`
	ConfirmFailures  int                                `json:"confirmFailures"`
	ConfirmSuccesses int                                `json:"confirmSuccesses"`
	ReminderMinutes  int                                `json:"reminderMinutes"`
	Routes           []DtoMonitorAlertRoute             `json:"routes"`
	UseDefaults      bool                               `json:"useDefaults"`
}

DtoMonitorAlerts defines model for dto.MonitorAlerts.

type DtoMonitorAlertsApplicableEvents

type DtoMonitorAlertsApplicableEvents string

DtoMonitorAlertsApplicableEvents defines model for DtoMonitorAlerts.ApplicableEvents.

const (
	DtoMonitorAlertsApplicableEventsDown      DtoMonitorAlertsApplicableEvents = "down"
	DtoMonitorAlertsApplicableEventsExpired   DtoMonitorAlertsApplicableEvents = "expired"
	DtoMonitorAlertsApplicableEventsExpiring  DtoMonitorAlertsApplicableEvents = "expiring"
	DtoMonitorAlertsApplicableEventsRecovered DtoMonitorAlertsApplicableEvents = "recovered"
	DtoMonitorAlertsApplicableEventsWarning   DtoMonitorAlertsApplicableEvents = "warning"
)

Defines values for DtoMonitorAlertsApplicableEvents.

func (DtoMonitorAlertsApplicableEvents) Valid

Valid indicates whether the value is a known member of the DtoMonitorAlertsApplicableEvents enum.

type DtoMonitorAlertsUpdate

type DtoMonitorAlertsUpdate struct {
	ConfirmFailures  *int                    `json:"confirmFailures,omitempty"`
	ConfirmSuccesses *int                    `json:"confirmSuccesses,omitempty"`
	ReminderMinutes  *int                    `json:"reminderMinutes,omitempty"`
	Routes           *[]DtoMonitorAlertRoute `json:"routes,omitempty"`
	UseDefaults      *bool                   `json:"useDefaults,omitempty"`
}

DtoMonitorAlertsUpdate defines model for dto.MonitorAlertsUpdate.

type DtoMonitorAspect

type DtoMonitorAspect struct {
	// AlertedThresholds AlertedThresholds are the expiry thresholds already alerted for the
	// current expiry, oldest first; [] before the first (or once renewed).
	AlertedThresholds []DtoThresholdAlert    `json:"alertedThresholds"`
	Aspect            DtoMonitorAspectAspect `json:"aspect"`

	// CheckedAt CheckedAt is the last observation, conclusive or not; absent before
	// the first.
	CheckedAt *string `json:"checkedAt,omitempty"`

	// Condition Condition explains status ("ok", "cert_expiring", "domain_expired",
	// ...); absent while pending.
	Condition *string `json:"condition,omitempty"`

	// DaysRemaining DaysRemaining is counted when read from expiresAt, negative once
	// expired.
	DaysRemaining *int                   `json:"daysRemaining,omitempty"`
	ExpiresAt     *string                `json:"expiresAt,omitempty"`
	Message       *string                `json:"message,omitempty"`
	Status        DtoMonitorAspectStatus `json:"status"`

	// Subject Subject is what the aspect is about: the URL's host for the
	// certificate, its registrable domain for the domain.
	Subject        string `json:"subject"`
	ThresholdsDays []int  `json:"thresholdsDays"`
}

DtoMonitorAspect defines model for dto.MonitorAspect.

type DtoMonitorAspectAspect

type DtoMonitorAspectAspect string

DtoMonitorAspectAspect defines model for DtoMonitorAspect.Aspect.

const (
	DtoMonitorAspectAspectCertificate DtoMonitorAspectAspect = "certificate"
	DtoMonitorAspectAspectDomain      DtoMonitorAspectAspect = "domain"
)

Defines values for DtoMonitorAspectAspect.

func (DtoMonitorAspectAspect) Valid

func (e DtoMonitorAspectAspect) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorAspectAspect enum.

type DtoMonitorAspectStatus

type DtoMonitorAspectStatus string

DtoMonitorAspectStatus defines model for DtoMonitorAspect.Status.

const (
	DtoMonitorAspectStatusCritical DtoMonitorAspectStatus = "critical"
	DtoMonitorAspectStatusOk       DtoMonitorAspectStatus = "ok"
	DtoMonitorAspectStatusPending  DtoMonitorAspectStatus = "pending"
	DtoMonitorAspectStatusWarning  DtoMonitorAspectStatus = "warning"
)

Defines values for DtoMonitorAspectStatus.

func (DtoMonitorAspectStatus) Valid

func (e DtoMonitorAspectStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorAspectStatus enum.

type DtoMonitorBulkItem

type DtoMonitorBulkItem struct {
	Code      *string            `json:"code,omitempty"`
	Detail    *string            `json:"detail,omitempty"`
	MonitorId openapi_types.UUID `json:"monitorId"`
	Ok        bool               `json:"ok"`
}

DtoMonitorBulkItem defines model for dto.MonitorBulkItem.

type DtoMonitorBulkRequest

type DtoMonitorBulkRequest struct {
	Action     DtoMonitorBulkRequestAction `json:"action"`
	MonitorIds []string                    `json:"monitorIds"`
}

DtoMonitorBulkRequest defines model for dto.MonitorBulkRequest.

type DtoMonitorBulkRequestAction

type DtoMonitorBulkRequestAction string

DtoMonitorBulkRequestAction defines model for DtoMonitorBulkRequest.Action.

const (
	DtoMonitorBulkRequestActionDelete DtoMonitorBulkRequestAction = "delete"
	DtoMonitorBulkRequestActionPause  DtoMonitorBulkRequestAction = "pause"
	DtoMonitorBulkRequestActionResume DtoMonitorBulkRequestAction = "resume"
)

Defines values for DtoMonitorBulkRequestAction.

func (DtoMonitorBulkRequestAction) Valid

Valid indicates whether the value is a known member of the DtoMonitorBulkRequestAction enum.

type DtoMonitorBulkResult

type DtoMonitorBulkResult struct {
	Action    DtoMonitorBulkResultAction `json:"action"`
	Failed    int                        `json:"failed"`
	Items     []DtoMonitorBulkItem       `json:"items"`
	Succeeded int                        `json:"succeeded"`
}

DtoMonitorBulkResult defines model for dto.MonitorBulkResult.

type DtoMonitorBulkResultAction

type DtoMonitorBulkResultAction string

DtoMonitorBulkResultAction defines model for DtoMonitorBulkResult.Action.

const (
	DtoMonitorBulkResultActionDelete DtoMonitorBulkResultAction = "delete"
	DtoMonitorBulkResultActionPause  DtoMonitorBulkResultAction = "pause"
	DtoMonitorBulkResultActionResume DtoMonitorBulkResultAction = "resume"
)

Defines values for DtoMonitorBulkResultAction.

func (DtoMonitorBulkResultAction) Valid

func (e DtoMonitorBulkResultAction) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorBulkResultAction enum.

type DtoMonitorCertificate

type DtoMonitorCertificate struct {
	// AlertWindowStart AlertWindowStart is when the largest threshold is crossed (notAfter
	// minus it): shade from here to notAfter.
	AlertWindowStart *string        `json:"alertWindowStart,omitempty"`
	Certificate      DtoCertificate `json:"certificate"`
	CheckedAt        string         `json:"checkedAt"`
	Condition        string         `json:"condition"`

	// DaysRemaining DaysRemaining counts from now (certificate.daysRemaining from the
	// check).
	DaysRemaining   int     `json:"daysRemaining"`
	ErrorMessage    *string `json:"errorMessage,omitempty"`
	NextThresholdAt *string `json:"nextThresholdAt,omitempty"`

	// NextThresholdDays NextThresholdDays / NextThresholdAt: the next threshold to cross
	// and when; absent once past the smallest.
	NextThresholdDays *int                          `json:"nextThresholdDays,omitempty"`
	ResultId          int                           `json:"resultId"`
	Severity          DtoMonitorCertificateSeverity `json:"severity"`

	// ThresholdsDays ThresholdsDays are the SSL monitor's expiry thresholds, largest
	// first; empty for an HTTP monitor (no expiry alerts).
	ThresholdsDays []int `json:"thresholdsDays"`
}

DtoMonitorCertificate defines model for dto.MonitorCertificate.

type DtoMonitorCertificateSeverity

type DtoMonitorCertificateSeverity string

DtoMonitorCertificateSeverity defines model for DtoMonitorCertificate.Severity.

const (
	DtoMonitorCertificateSeverityCritical     DtoMonitorCertificateSeverity = "critical"
	DtoMonitorCertificateSeverityInconclusive DtoMonitorCertificateSeverity = "inconclusive"
	DtoMonitorCertificateSeverityOk           DtoMonitorCertificateSeverity = "ok"
	DtoMonitorCertificateSeverityWarning      DtoMonitorCertificateSeverity = "warning"
)

Defines values for DtoMonitorCertificateSeverity.

func (DtoMonitorCertificateSeverity) Valid

Valid indicates whether the value is a known member of the DtoMonitorCertificateSeverity enum.

type DtoMonitorCondition

type DtoMonitorCondition struct {
	// AlertedThresholds AlertedThresholds are the expiry thresholds already alerted for the
	// current expiry (SSL and domain monitors), oldest first; [] otherwise.
	// An HTTP monitor's watched certificate and domain have theirs on
	// aspects.
	AlertedThresholds []DtoThresholdAlert `json:"alertedThresholds"`

	// Code Code is the condition ("ok", "slow_response", "cert_expiring", ...),
	// worded per monitor type by the dashboard.
	Code string `json:"code"`

	// ConclusiveAt ConclusiveAt is when a check last confirmed it; older than
	// lastCheck.at when the newest checks couldn't tell.
	ConclusiveAt *string           `json:"conclusiveAt,omitempty"`
	Facts        DtoConditionFacts `json:"facts"`
	Message      *string           `json:"message,omitempty"`

	// Since Since is when the status began (statusSince).
	Since string `json:"since"`
}

DtoMonitorCondition defines model for dto.MonitorCondition.

type DtoMonitorCreate

type DtoMonitorCreate struct {
	Description *string                 `json:"description,omitempty"`
	Domain      *DtoDomainSettingsInput `json:"domain,omitempty"`
	Http        *DtoHTTPSettingsInput   `json:"http,omitempty"`

	// IntervalSeconds The org's plan can require more than the 30-second floor (60 s by
	// default), and domain monitors run at most hourly (3600); the error
	// message names the minimum.
	IntervalSeconds int                  `json:"intervalSeconds"`
	Name            string               `json:"name"`
	Ssl             *DtoSSLSettingsInput `json:"ssl,omitempty"`
	Type            DtoMonitorCreateType `json:"type"`
}

DtoMonitorCreate defines model for dto.MonitorCreate.

type DtoMonitorCreateType

type DtoMonitorCreateType string

DtoMonitorCreateType defines model for DtoMonitorCreate.Type.

const (
	DtoMonitorCreateTypeDomain DtoMonitorCreateType = "domain"
	DtoMonitorCreateTypeHttp   DtoMonitorCreateType = "http"
	DtoMonitorCreateTypeSsl    DtoMonitorCreateType = "ssl"
)

Defines values for DtoMonitorCreateType.

func (DtoMonitorCreateType) Valid

func (e DtoMonitorCreateType) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorCreateType enum.

type DtoMonitorEvent

type DtoMonitorEvent struct {
	Aspect DtoMonitorEventAspect `json:"aspect"`
	At     string                `json:"at"`

	// CheckResultId CheckResultID is the check that saw it.
	CheckResultId int `json:"checkResultId"`
	Id            int `json:"id"`

	// Renewal Renewal is set on certificate_renewed.
	Renewal *DtoCertificateRenewal `json:"renewal,omitempty"`

	// Type Type: certificate_renewed, a check saw a certificate other than the
	// newest one so far, expiring later (SSL monitors and HTTP monitors
	// that watch their certificate; an older certificate, say from a node
	// behind on renewals, is not one).
	Type DtoMonitorEventType `json:"type"`
}

DtoMonitorEvent defines model for dto.MonitorEvent.

type DtoMonitorEventAspect

type DtoMonitorEventAspect string

DtoMonitorEventAspect defines model for DtoMonitorEvent.Aspect.

const (
	DtoMonitorEventAspectAvailability DtoMonitorEventAspect = "availability"
	DtoMonitorEventAspectCertificate  DtoMonitorEventAspect = "certificate"
	DtoMonitorEventAspectDomain       DtoMonitorEventAspect = "domain"
)

Defines values for DtoMonitorEventAspect.

func (DtoMonitorEventAspect) Valid

func (e DtoMonitorEventAspect) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorEventAspect enum.

type DtoMonitorEventType

type DtoMonitorEventType string

DtoMonitorEventType Type: certificate_renewed, a check saw a certificate other than the newest one so far, expiring later (SSL monitors and HTTP monitors that watch their certificate; an older certificate, say from a node behind on renewals, is not one).

const (
	CertificateRenewed DtoMonitorEventType = "certificate_renewed"
)

Defines values for DtoMonitorEventType.

func (DtoMonitorEventType) Valid

func (e DtoMonitorEventType) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorEventType enum.

type DtoMonitorOverallStatus

type DtoMonitorOverallStatus string

DtoMonitorOverallStatus OverallStatus is the worst of status and the statuses of the monitor's watched aspects (critical, warning, pending, ok), paused while disabled. The list status filter and sort use it.

const (
	DtoMonitorOverallStatusCritical DtoMonitorOverallStatus = "critical"
	DtoMonitorOverallStatusOk       DtoMonitorOverallStatus = "ok"
	DtoMonitorOverallStatusPaused   DtoMonitorOverallStatus = "paused"
	DtoMonitorOverallStatusPending  DtoMonitorOverallStatus = "pending"
	DtoMonitorOverallStatusWarning  DtoMonitorOverallStatus = "warning"
)

Defines values for DtoMonitorOverallStatus.

func (DtoMonitorOverallStatus) Valid

func (e DtoMonitorOverallStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorOverallStatus enum.

type DtoMonitorStats

type DtoMonitorStats struct {
	AvgMs        *int                       `json:"avgMs,omitempty"`
	Checks       int                        `json:"checks"`
	Critical     int                        `json:"critical"`
	From         string                     `json:"from"`
	Granularity  DtoMonitorStatsGranularity `json:"granularity"`
	Inconclusive int                        `json:"inconclusive"`
	MaxMs        *int                       `json:"maxMs,omitempty"`
	Ok           int                        `json:"ok"`
	Series       []DtoStatsBucket           `json:"series"`
	To           string                     `json:"to"`

	// UptimePercent UptimePercent is (ok + warning) / (ok + warning + critical); absent
	// without conclusive checks and for SSL and domain monitors.
	UptimePercent *float32 `json:"uptimePercent,omitempty"`
	Warning       int      `json:"warning"`
}

DtoMonitorStats defines model for dto.MonitorStats.

type DtoMonitorStatsGranularity

type DtoMonitorStatsGranularity string

DtoMonitorStatsGranularity defines model for DtoMonitorStats.Granularity.

const (
	Day  DtoMonitorStatsGranularity = "day"
	Hour DtoMonitorStatsGranularity = "hour"
)

Defines values for DtoMonitorStatsGranularity.

func (DtoMonitorStatsGranularity) Valid

func (e DtoMonitorStatsGranularity) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorStatsGranularity enum.

type DtoMonitorStatus

type DtoMonitorStatus string

DtoMonitorStatus Status is the primary aspect's: the severity of the last conclusive check, pending before one, paused while disabled. An inconclusive check (a failed registry lookup) never changes it.

const (
	DtoMonitorStatusCritical DtoMonitorStatus = "critical"
	DtoMonitorStatusOk       DtoMonitorStatus = "ok"
	DtoMonitorStatusPaused   DtoMonitorStatus = "paused"
	DtoMonitorStatusPending  DtoMonitorStatus = "pending"
	DtoMonitorStatusWarning  DtoMonitorStatus = "warning"
)

Defines values for DtoMonitorStatus.

func (DtoMonitorStatus) Valid

func (e DtoMonitorStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorStatus enum.

type DtoMonitorType

type DtoMonitorType string

DtoMonitorType defines model for DtoMonitor.Type.

const (
	DtoMonitorTypeDomain DtoMonitorType = "domain"
	DtoMonitorTypeHttp   DtoMonitorType = "http"
	DtoMonitorTypeSsl    DtoMonitorType = "ssl"
)

Defines values for DtoMonitorType.

func (DtoMonitorType) Valid

func (e DtoMonitorType) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorType enum.

type DtoMonitorUpdate

type DtoMonitorUpdate struct {
	Description     *string                 `json:"description,omitempty"`
	Domain          *DtoDomainSettingsInput `json:"domain,omitempty"`
	Http            *DtoHTTPSettingsInput   `json:"http,omitempty"`
	IntervalSeconds *int                    `json:"intervalSeconds,omitempty"`
	Name            *string                 `json:"name,omitempty"`
	Ssl             *DtoSSLSettingsInput    `json:"ssl,omitempty"`
}

DtoMonitorUpdate defines model for dto.MonitorUpdate.

type DtoMonitorVariant

type DtoMonitorVariant string

DtoMonitorVariant Variant is what the monitor does in one word, on list rows too (which carry no settings): keyword for an HTTP monitor that looks for a keyword in the body, otherwise the type.

const (
	DtoMonitorVariantDomain  DtoMonitorVariant = "domain"
	DtoMonitorVariantHttp    DtoMonitorVariant = "http"
	DtoMonitorVariantKeyword DtoMonitorVariant = "keyword"
	DtoMonitorVariantSsl     DtoMonitorVariant = "ssl"
)

Defines values for DtoMonitorVariant.

func (DtoMonitorVariant) Valid

func (e DtoMonitorVariant) Valid() bool

Valid indicates whether the value is a known member of the DtoMonitorVariant enum.

type DtoPublicStatusAffected added in v0.23.0

type DtoPublicStatusAffected struct {
	Id     openapi_types.UUID            `json:"id"`
	Name   string                        `json:"name"`
	Status DtoPublicStatusAffectedStatus `json:"status"`
}

DtoPublicStatusAffected defines model for dto.PublicStatusAffected.

type DtoPublicStatusAffectedStatus added in v0.23.0

type DtoPublicStatusAffectedStatus string

DtoPublicStatusAffectedStatus defines model for DtoPublicStatusAffected.Status.

const (
	DtoPublicStatusAffectedStatusDegradedPerformance DtoPublicStatusAffectedStatus = "degraded_performance"
	DtoPublicStatusAffectedStatusMajorOutage         DtoPublicStatusAffectedStatus = "major_outage"
	DtoPublicStatusAffectedStatusOperational         DtoPublicStatusAffectedStatus = "operational"
	DtoPublicStatusAffectedStatusPartialOutage       DtoPublicStatusAffectedStatus = "partial_outage"
)

Defines values for DtoPublicStatusAffectedStatus.

func (DtoPublicStatusAffectedStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusAffectedStatus enum.

type DtoPublicStatusComponent added in v0.23.0

type DtoPublicStatusComponent struct {
	// AvgResponseMs AvgResponseMs over the page's range, when the page shows response
	// times.
	AvgResponseMs *int `json:"avgResponseMs,omitempty"`

	// Days Days are the bar, oldest first, when the page shows bars and the
	// component counts availability.
	Days        *[]DtoPublicStatusDay          `json:"days,omitempty"`
	Description string                         `json:"description"`
	Id          openapi_types.UUID             `json:"id"`
	Name        string                         `json:"name"`
	Status      DtoPublicStatusComponentStatus `json:"status"`

	// UptimePercent UptimePercent over the page's range, when the page shows it.
	UptimePercent *float32 `json:"uptimePercent,omitempty"`
}

DtoPublicStatusComponent defines model for dto.PublicStatusComponent.

type DtoPublicStatusComponentStatus added in v0.23.0

type DtoPublicStatusComponentStatus string

DtoPublicStatusComponentStatus defines model for DtoPublicStatusComponent.Status.

const (
	DtoPublicStatusComponentStatusDegradedPerformance DtoPublicStatusComponentStatus = "degraded_performance"
	DtoPublicStatusComponentStatusMajorOutage         DtoPublicStatusComponentStatus = "major_outage"
	DtoPublicStatusComponentStatusOperational         DtoPublicStatusComponentStatus = "operational"
	DtoPublicStatusComponentStatusPartialOutage       DtoPublicStatusComponentStatus = "partial_outage"
	DtoPublicStatusComponentStatusUnknown             DtoPublicStatusComponentStatus = "unknown"
)

Defines values for DtoPublicStatusComponentStatus.

func (DtoPublicStatusComponentStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusComponentStatus enum.

type DtoPublicStatusDay added in v0.23.0

type DtoPublicStatusDay struct {
	// AvgResponseMs AvgResponseMs: when the page shows response times.
	AvgResponseMs   *int                    `json:"avgResponseMs,omitempty"`
	Day             string                  `json:"day"`
	DowntimeMinutes *int                    `json:"downtimeMinutes,omitempty"`
	Grade           DtoPublicStatusDayGrade `json:"grade"`
	UptimePercent   *float32                `json:"uptimePercent,omitempty"`
}

DtoPublicStatusDay defines model for dto.PublicStatusDay.

type DtoPublicStatusDayGrade added in v0.23.0

type DtoPublicStatusDayGrade string

DtoPublicStatusDayGrade defines model for DtoPublicStatusDay.Grade.

const (
	DtoPublicStatusDayGradeMajor   DtoPublicStatusDayGrade = "major"
	DtoPublicStatusDayGradeMinor   DtoPublicStatusDayGrade = "minor"
	DtoPublicStatusDayGradeNoData  DtoPublicStatusDayGrade = "no_data"
	DtoPublicStatusDayGradeOk      DtoPublicStatusDayGrade = "ok"
	DtoPublicStatusDayGradePartial DtoPublicStatusDayGrade = "partial"
	DtoPublicStatusDayGradeUnknown DtoPublicStatusDayGrade = "unknown"
	DtoPublicStatusDayGradeWarning DtoPublicStatusDayGrade = "warning"
)

Defines values for DtoPublicStatusDayGrade.

func (DtoPublicStatusDayGrade) Valid added in v0.23.0

func (e DtoPublicStatusDayGrade) Valid() bool

Valid indicates whether the value is a known member of the DtoPublicStatusDayGrade enum.

type DtoPublicStatusGroup added in v0.23.0

type DtoPublicStatusGroup struct {
	Collapsed   bool                       `json:"collapsed"`
	Components  []DtoPublicStatusComponent `json:"components"`
	Description string                     `json:"description"`
	Id          openapi_types.UUID         `json:"id"`
	Name        string                     `json:"name"`
	Status      DtoPublicStatusGroupStatus `json:"status"`
}

DtoPublicStatusGroup defines model for dto.PublicStatusGroup.

type DtoPublicStatusGroupStatus added in v0.23.0

type DtoPublicStatusGroupStatus string

DtoPublicStatusGroupStatus defines model for DtoPublicStatusGroup.Status.

const (
	DtoPublicStatusGroupStatusDegradedPerformance DtoPublicStatusGroupStatus = "degraded_performance"
	DtoPublicStatusGroupStatusMajorOutage         DtoPublicStatusGroupStatus = "major_outage"
	DtoPublicStatusGroupStatusOperational         DtoPublicStatusGroupStatus = "operational"
	DtoPublicStatusGroupStatusPartialOutage       DtoPublicStatusGroupStatus = "partial_outage"
	DtoPublicStatusGroupStatusUnknown             DtoPublicStatusGroupStatus = "unknown"
)

Defines values for DtoPublicStatusGroupStatus.

func (DtoPublicStatusGroupStatus) Valid added in v0.23.0

func (e DtoPublicStatusGroupStatus) Valid() bool

Valid indicates whether the value is a known member of the DtoPublicStatusGroupStatus enum.

type DtoPublicStatusHistory added in v0.23.0

type DtoPublicStatusHistory struct {
	Incidents     []DtoPublicStatusIncident `json:"incidents"`
	SchemaVersion int                       `json:"schemaVersion"`
}

DtoPublicStatusHistory defines model for dto.PublicStatusHistory.

type DtoPublicStatusIncident added in v0.23.0

type DtoPublicStatusIncident struct {
	Components []DtoPublicStatusAffected     `json:"components"`
	Id         openapi_types.UUID            `json:"id"`
	Impact     DtoPublicStatusIncidentImpact `json:"impact"`
	ResolvedAt *string                       `json:"resolvedAt,omitempty"`
	StartedAt  string                        `json:"startedAt"`
	Status     DtoPublicStatusIncidentStatus `json:"status"`
	Title      string                        `json:"title"`
	Updates    []DtoPublicStatusUpdate       `json:"updates"`
}

DtoPublicStatusIncident defines model for dto.PublicStatusIncident.

type DtoPublicStatusIncidentImpact added in v0.23.0

type DtoPublicStatusIncidentImpact string

DtoPublicStatusIncidentImpact defines model for DtoPublicStatusIncident.Impact.

const (
	DtoPublicStatusIncidentImpactCritical DtoPublicStatusIncidentImpact = "critical"
	DtoPublicStatusIncidentImpactMajor    DtoPublicStatusIncidentImpact = "major"
	DtoPublicStatusIncidentImpactMinor    DtoPublicStatusIncidentImpact = "minor"
	DtoPublicStatusIncidentImpactNone     DtoPublicStatusIncidentImpact = "none"
)

Defines values for DtoPublicStatusIncidentImpact.

func (DtoPublicStatusIncidentImpact) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusIncidentImpact enum.

type DtoPublicStatusIncidentStatus added in v0.23.0

type DtoPublicStatusIncidentStatus string

DtoPublicStatusIncidentStatus defines model for DtoPublicStatusIncident.Status.

const (
	DtoPublicStatusIncidentStatusIdentified    DtoPublicStatusIncidentStatus = "identified"
	DtoPublicStatusIncidentStatusInvestigating DtoPublicStatusIncidentStatus = "investigating"
	DtoPublicStatusIncidentStatusMonitoring    DtoPublicStatusIncidentStatus = "monitoring"
	DtoPublicStatusIncidentStatusResolved      DtoPublicStatusIncidentStatus = "resolved"
)

Defines values for DtoPublicStatusIncidentStatus.

func (DtoPublicStatusIncidentStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusIncidentStatus enum.

type DtoPublicStatusPage added in v0.23.0

type DtoPublicStatusPage struct {
	// Active Active are the open posts, newest first.
	Active []DtoPublicStatusIncident `json:"active"`

	// AsOf AsOf is when the content last changed.
	AsOf        *string                    `json:"asOf,omitempty"`
	Components  []DtoPublicStatusComponent `json:"components"`
	Description string                     `json:"description"`
	Groups      []DtoPublicStatusGroup     `json:"groups"`
	Id          openapi_types.UUID         `json:"id"`

	// Indicator Indicator is the page's one-word verdict.
	Indicator DtoPublicStatusPageIndicator `json:"indicator"`
	Name      string                       `json:"name"`

	// Published Published false: only preview links show it.
	Published      bool   `json:"published"`
	SchemaVersion  int    `json:"schemaVersion"`
	SearchIndexing bool   `json:"searchIndexing"`
	Slug           string `json:"slug"`
	TimeZone       string `json:"timeZone"`

	// UptimeDays UptimeDays is how many days the bars cover.
	UptimeDays int `json:"uptimeDays"`
}

DtoPublicStatusPage defines model for dto.PublicStatusPage.

type DtoPublicStatusPageIndicator added in v0.23.0

type DtoPublicStatusPageIndicator string

DtoPublicStatusPageIndicator Indicator is the page's one-word verdict.

const (
	DtoPublicStatusPageIndicatorCritical DtoPublicStatusPageIndicator = "critical"
	DtoPublicStatusPageIndicatorMajor    DtoPublicStatusPageIndicator = "major"
	DtoPublicStatusPageIndicatorMinor    DtoPublicStatusPageIndicator = "minor"
	DtoPublicStatusPageIndicatorNone     DtoPublicStatusPageIndicator = "none"
)

Defines values for DtoPublicStatusPageIndicator.

func (DtoPublicStatusPageIndicator) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusPageIndicator enum.

type DtoPublicStatusPreview added in v0.23.0

type DtoPublicStatusPreview struct {
	History DtoPublicStatusHistory `json:"history"`
	Page    DtoPublicStatusPage    `json:"page"`
}

DtoPublicStatusPreview defines model for dto.PublicStatusPreview.

type DtoPublicStatusUpdate added in v0.23.0

type DtoPublicStatusUpdate struct {
	Body      string                      `json:"body"`
	CreatedAt string                      `json:"createdAt"`
	Id        openapi_types.UUID          `json:"id"`
	Status    DtoPublicStatusUpdateStatus `json:"status"`
}

DtoPublicStatusUpdate defines model for dto.PublicStatusUpdate.

type DtoPublicStatusUpdateStatus added in v0.23.0

type DtoPublicStatusUpdateStatus string

DtoPublicStatusUpdateStatus defines model for DtoPublicStatusUpdate.Status.

const (
	DtoPublicStatusUpdateStatusIdentified    DtoPublicStatusUpdateStatus = "identified"
	DtoPublicStatusUpdateStatusInvestigating DtoPublicStatusUpdateStatus = "investigating"
	DtoPublicStatusUpdateStatusMonitoring    DtoPublicStatusUpdateStatus = "monitoring"
	DtoPublicStatusUpdateStatusResolved      DtoPublicStatusUpdateStatus = "resolved"
)

Defines values for DtoPublicStatusUpdateStatus.

func (DtoPublicStatusUpdateStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoPublicStatusUpdateStatus enum.

type DtoRenewedCertificate

type DtoRenewedCertificate struct {
	FingerprintSha256 *string `json:"fingerprintSha256,omitempty"`
	Issuer            string  `json:"issuer"`
	NotAfter          string  `json:"notAfter"`
	NotBefore         string  `json:"notBefore"`
	SerialNumber      string  `json:"serialNumber"`
	Subject           string  `json:"subject"`
}

DtoRenewedCertificate defines model for dto.RenewedCertificate.

type DtoSSLSettings

type DtoSSLSettings struct {
	ExpiryThresholdsDays []int   `json:"expiryThresholdsDays"`
	Host                 string  `json:"host"`
	Port                 int     `json:"port"`
	ServerName           *string `json:"serverName,omitempty"`
}

DtoSSLSettings defines model for dto.SSLSettings.

type DtoSSLSettingsInput

type DtoSSLSettingsInput struct {
	ExpiryThresholdsDays []int   `json:"expiryThresholdsDays"`
	Host                 string  `json:"host"`
	Port                 int     `json:"port"`
	ServerName           *string `json:"serverName,omitempty"`
}

DtoSSLSettingsInput defines model for dto.SSLSettingsInput.

type DtoStatsBucket

type DtoStatsBucket struct {
	AvgMs        int    `json:"avgMs"`
	Checks       int    `json:"checks"`
	Critical     int    `json:"critical"`
	Inconclusive int    `json:"inconclusive"`
	MaxMs        int    `json:"maxMs"`
	Ok           int    `json:"ok"`
	P50Ms        int    `json:"p50Ms"`
	P95Ms        int    `json:"p95Ms"`
	Region       string `json:"region"`
	Start        string `json:"start"`
	Warning      int    `json:"warning"`
}

DtoStatsBucket defines model for dto.StatsBucket.

type DtoStatusChange

type DtoStatusChange struct {
	ChangedAt string `json:"changedAt"`

	// CheckResultId CheckResultID is the result that made the change (raw results are
	// kept about 30 days, changes a year).
	CheckResultId int `json:"checkResultId"`

	// Condition Condition is what the check that made the change found.
	Condition string `json:"condition"`

	// DurationSeconds DurationSeconds is how long the status lasted (until now for the
	// newest change).
	DurationSeconds int `json:"durationSeconds"`

	// EndedAt EndedAt is when the next change happened; absent for the newest
	// change (the current status, unless the monitor is paused).
	EndedAt *string `json:"endedAt,omitempty"`

	// Events Events are what else happened while this status lasted (from
	// changedAt to endedAt), newest first: certificate renewals. [] when
	// nothing did.
	Events     []DtoMonitorEvent   `json:"events"`
	From       DtoStatusChangeFrom `json:"from"`
	Id         int                 `json:"id"`
	Message    *string             `json:"message,omitempty"`
	StatusCode *int                `json:"statusCode,omitempty"`
	To         DtoStatusChangeTo   `json:"to"`
}

DtoStatusChange defines model for dto.StatusChange.

type DtoStatusChangeFrom

type DtoStatusChangeFrom string

DtoStatusChangeFrom defines model for DtoStatusChange.From.

const (
	DtoStatusChangeFromCritical DtoStatusChangeFrom = "critical"
	DtoStatusChangeFromOk       DtoStatusChangeFrom = "ok"
	DtoStatusChangeFromPending  DtoStatusChangeFrom = "pending"
	DtoStatusChangeFromWarning  DtoStatusChangeFrom = "warning"
)

Defines values for DtoStatusChangeFrom.

func (DtoStatusChangeFrom) Valid

func (e DtoStatusChangeFrom) Valid() bool

Valid indicates whether the value is a known member of the DtoStatusChangeFrom enum.

type DtoStatusChangeTo

type DtoStatusChangeTo string

DtoStatusChangeTo defines model for DtoStatusChange.To.

const (
	DtoStatusChangeToCritical DtoStatusChangeTo = "critical"
	DtoStatusChangeToOk       DtoStatusChangeTo = "ok"
	DtoStatusChangeToWarning  DtoStatusChangeTo = "warning"
)

Defines values for DtoStatusChangeTo.

func (DtoStatusChangeTo) Valid

func (e DtoStatusChangeTo) Valid() bool

Valid indicates whether the value is a known member of the DtoStatusChangeTo enum.

type DtoStatusPage added in v0.23.0

type DtoStatusPage struct {
	CreatedAt   string             `json:"createdAt"`
	Description string             `json:"description"`
	Id          openapi_types.UUID `json:"id"`
	Name        string             `json:"name"`

	// Published Published pages are public; others answer 404.
	Published   bool                  `json:"published"`
	PublishedAt *string               `json:"publishedAt,omitempty"`
	Settings    DtoStatusPageSettings `json:"settings"`
	Slug        string                `json:"slug"`
	UpdatedAt   string                `json:"updatedAt"`

	// Url URL is the page's public address.
	Url string `json:"url"`
}

DtoStatusPage defines model for dto.StatusPage.

type DtoStatusPageAffected added in v0.23.0

type DtoStatusPageAffected struct {
	ComponentId openapi_types.UUID          `json:"componentId"`
	Status      DtoStatusPageAffectedStatus `json:"status"`
}

DtoStatusPageAffected defines model for dto.StatusPageAffected.

type DtoStatusPageAffectedStatus added in v0.23.0

type DtoStatusPageAffectedStatus string

DtoStatusPageAffectedStatus defines model for DtoStatusPageAffected.Status.

const (
	DtoStatusPageAffectedStatusDegradedPerformance DtoStatusPageAffectedStatus = "degraded_performance"
	DtoStatusPageAffectedStatusMajorOutage         DtoStatusPageAffectedStatus = "major_outage"
	DtoStatusPageAffectedStatusOperational         DtoStatusPageAffectedStatus = "operational"
	DtoStatusPageAffectedStatusPartialOutage       DtoStatusPageAffectedStatus = "partial_outage"
)

Defines values for DtoStatusPageAffectedStatus.

func (DtoStatusPageAffectedStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageAffectedStatus enum.

type DtoStatusPageComponent added in v0.23.0

type DtoStatusPageComponent struct {
	// Aspects Aspects: what counts towards a monitor component's status.
	Aspects     *[]DtoStatusPageComponentAspects `json:"aspects,omitempty"`
	Description *string                          `json:"description,omitempty"`
	Id          *openapi_types.UUID              `json:"id,omitempty"`
	Kind        DtoStatusPageComponentKind       `json:"kind"`

	// ManualStatus ManualStatus: a manual component's status.
	ManualStatus *DtoStatusPageComponentManualStatus `json:"manualStatus,omitempty"`

	// MonitorId MonitorID: a monitor component's monitor. The public never sees it.
	MonitorId *openapi_types.UUID `json:"monitorId,omitempty"`

	// Name Name is what the public sees; the monitor's name and target never are.
	Name string `json:"name"`
}

DtoStatusPageComponent defines model for dto.StatusPageComponent.

type DtoStatusPageComponentAspects added in v0.23.0

type DtoStatusPageComponentAspects string

DtoStatusPageComponentAspects defines model for DtoStatusPageComponent.Aspects.

const (
	DtoStatusPageComponentAspectsAvailability DtoStatusPageComponentAspects = "availability"
	DtoStatusPageComponentAspectsCertificate  DtoStatusPageComponentAspects = "certificate"
	DtoStatusPageComponentAspectsDomain       DtoStatusPageComponentAspects = "domain"
)

Defines values for DtoStatusPageComponentAspects.

func (DtoStatusPageComponentAspects) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageComponentAspects enum.

type DtoStatusPageComponentKind added in v0.23.0

type DtoStatusPageComponentKind string

DtoStatusPageComponentKind defines model for DtoStatusPageComponent.Kind.

const (
	Manual  DtoStatusPageComponentKind = "manual"
	Monitor DtoStatusPageComponentKind = "monitor"
)

Defines values for DtoStatusPageComponentKind.

func (DtoStatusPageComponentKind) Valid added in v0.23.0

func (e DtoStatusPageComponentKind) Valid() bool

Valid indicates whether the value is a known member of the DtoStatusPageComponentKind enum.

type DtoStatusPageComponentManualStatus added in v0.23.0

type DtoStatusPageComponentManualStatus string

DtoStatusPageComponentManualStatus ManualStatus: a manual component's status.

const (
	DegradedPerformance DtoStatusPageComponentManualStatus = "degraded_performance"
	MajorOutage         DtoStatusPageComponentManualStatus = "major_outage"
	Operational         DtoStatusPageComponentManualStatus = "operational"
	PartialOutage       DtoStatusPageComponentManualStatus = "partial_outage"
)

Defines values for DtoStatusPageComponentManualStatus.

func (DtoStatusPageComponentManualStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageComponentManualStatus enum.

type DtoStatusPageCreate added in v0.23.0

type DtoStatusPageCreate struct {
	Description *string               `json:"description,omitempty"`
	Name        string                `json:"name"`
	Settings    DtoStatusPageSettings `json:"settings"`

	// Slug Slug is the page's address: lowercase letters, digits and hyphens.
	Slug string `json:"slug"`
}

DtoStatusPageCreate defines model for dto.StatusPageCreate.

type DtoStatusPageGroup added in v0.23.0

type DtoStatusPageGroup struct {
	Collapsed   *bool                    `json:"collapsed,omitempty"`
	Components  []DtoStatusPageComponent `json:"components"`
	Description *string                  `json:"description,omitempty"`
	Id          *openapi_types.UUID      `json:"id,omitempty"`
	Name        string                   `json:"name"`
}

DtoStatusPageGroup defines model for dto.StatusPageGroup.

type DtoStatusPageIncident added in v0.23.0

type DtoStatusPageIncident struct {
	Components         []DtoStatusPageAffected      `json:"components"`
	CreatedAt          string                       `json:"createdAt"`
	Id                 openapi_types.UUID           `json:"id"`
	Impact             DtoStatusPageIncidentImpact  `json:"impact"`
	MonitorIncidentIds []string                     `json:"monitorIncidentIds"`
	ResolvedAt         *string                      `json:"resolvedAt,omitempty"`
	StartedAt          string                       `json:"startedAt"`
	Status             DtoStatusPageIncidentStatus  `json:"status"`
	StatusPageId       openapi_types.UUID           `json:"statusPageId"`
	Title              string                       `json:"title"`
	UpdatedAt          string                       `json:"updatedAt"`
	Updates            []DtoStatusPageIncidentEntry `json:"updates"`
}

DtoStatusPageIncident defines model for dto.StatusPageIncident.

type DtoStatusPageIncidentCreate added in v0.23.0

type DtoStatusPageIncidentCreate struct {
	// Body Body is the first update's text.
	Body       string                            `json:"body"`
	Components *[]DtoStatusPageAffected          `json:"components,omitempty"`
	Impact     DtoStatusPageIncidentCreateImpact `json:"impact"`

	// MonitorIncidentIds MonitorIncidentIDs are the monitor incidents the post is about (for
	// your navigation, never published).
	MonitorIncidentIds *[]openapi_types.UUID `json:"monitorIncidentIds,omitempty"`

	// StartedAt StartedAt defaults to now.
	StartedAt *string                           `json:"startedAt,omitempty"`
	Status    DtoStatusPageIncidentCreateStatus `json:"status"`
	Title     string                            `json:"title"`
}

DtoStatusPageIncidentCreate defines model for dto.StatusPageIncidentCreate.

type DtoStatusPageIncidentCreateImpact added in v0.23.0

type DtoStatusPageIncidentCreateImpact string

DtoStatusPageIncidentCreateImpact defines model for DtoStatusPageIncidentCreate.Impact.

const (
	DtoStatusPageIncidentCreateImpactCritical DtoStatusPageIncidentCreateImpact = "critical"
	DtoStatusPageIncidentCreateImpactMajor    DtoStatusPageIncidentCreateImpact = "major"
	DtoStatusPageIncidentCreateImpactMinor    DtoStatusPageIncidentCreateImpact = "minor"
	DtoStatusPageIncidentCreateImpactNone     DtoStatusPageIncidentCreateImpact = "none"
)

Defines values for DtoStatusPageIncidentCreateImpact.

func (DtoStatusPageIncidentCreateImpact) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentCreateImpact enum.

type DtoStatusPageIncidentCreateStatus added in v0.23.0

type DtoStatusPageIncidentCreateStatus string

DtoStatusPageIncidentCreateStatus defines model for DtoStatusPageIncidentCreate.Status.

const (
	DtoStatusPageIncidentCreateStatusIdentified    DtoStatusPageIncidentCreateStatus = "identified"
	DtoStatusPageIncidentCreateStatusInvestigating DtoStatusPageIncidentCreateStatus = "investigating"
	DtoStatusPageIncidentCreateStatusMonitoring    DtoStatusPageIncidentCreateStatus = "monitoring"
	DtoStatusPageIncidentCreateStatusResolved      DtoStatusPageIncidentCreateStatus = "resolved"
)

Defines values for DtoStatusPageIncidentCreateStatus.

func (DtoStatusPageIncidentCreateStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentCreateStatus enum.

type DtoStatusPageIncidentEntry added in v0.23.0

type DtoStatusPageIncidentEntry struct {
	Body      string                           `json:"body"`
	CreatedAt string                           `json:"createdAt"`
	Id        openapi_types.UUID               `json:"id"`
	Status    DtoStatusPageIncidentEntryStatus `json:"status"`
}

DtoStatusPageIncidentEntry defines model for dto.StatusPageIncidentEntry.

type DtoStatusPageIncidentEntryStatus added in v0.23.0

type DtoStatusPageIncidentEntryStatus string

DtoStatusPageIncidentEntryStatus defines model for DtoStatusPageIncidentEntry.Status.

const (
	DtoStatusPageIncidentEntryStatusIdentified    DtoStatusPageIncidentEntryStatus = "identified"
	DtoStatusPageIncidentEntryStatusInvestigating DtoStatusPageIncidentEntryStatus = "investigating"
	DtoStatusPageIncidentEntryStatusMonitoring    DtoStatusPageIncidentEntryStatus = "monitoring"
	DtoStatusPageIncidentEntryStatusResolved      DtoStatusPageIncidentEntryStatus = "resolved"
)

Defines values for DtoStatusPageIncidentEntryStatus.

func (DtoStatusPageIncidentEntryStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentEntryStatus enum.

type DtoStatusPageIncidentImpact added in v0.23.0

type DtoStatusPageIncidentImpact string

DtoStatusPageIncidentImpact defines model for DtoStatusPageIncident.Impact.

const (
	DtoStatusPageIncidentImpactCritical DtoStatusPageIncidentImpact = "critical"
	DtoStatusPageIncidentImpactMajor    DtoStatusPageIncidentImpact = "major"
	DtoStatusPageIncidentImpactMinor    DtoStatusPageIncidentImpact = "minor"
	DtoStatusPageIncidentImpactNone     DtoStatusPageIncidentImpact = "none"
)

Defines values for DtoStatusPageIncidentImpact.

func (DtoStatusPageIncidentImpact) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentImpact enum.

type DtoStatusPageIncidentPost added in v0.23.0

type DtoStatusPageIncidentPost struct {
	Body string `json:"body"`

	// Components Components, when given, replaces the affected components.
	Components *[]DtoStatusPageAffected        `json:"components,omitempty"`
	Status     DtoStatusPageIncidentPostStatus `json:"status"`
}

DtoStatusPageIncidentPost defines model for dto.StatusPageIncidentPost.

type DtoStatusPageIncidentPostStatus added in v0.23.0

type DtoStatusPageIncidentPostStatus string

DtoStatusPageIncidentPostStatus defines model for DtoStatusPageIncidentPost.Status.

const (
	DtoStatusPageIncidentPostStatusIdentified    DtoStatusPageIncidentPostStatus = "identified"
	DtoStatusPageIncidentPostStatusInvestigating DtoStatusPageIncidentPostStatus = "investigating"
	DtoStatusPageIncidentPostStatusMonitoring    DtoStatusPageIncidentPostStatus = "monitoring"
	DtoStatusPageIncidentPostStatusResolved      DtoStatusPageIncidentPostStatus = "resolved"
)

Defines values for DtoStatusPageIncidentPostStatus.

func (DtoStatusPageIncidentPostStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentPostStatus enum.

type DtoStatusPageIncidentStatus added in v0.23.0

type DtoStatusPageIncidentStatus string

DtoStatusPageIncidentStatus defines model for DtoStatusPageIncident.Status.

const (
	DtoStatusPageIncidentStatusIdentified    DtoStatusPageIncidentStatus = "identified"
	DtoStatusPageIncidentStatusInvestigating DtoStatusPageIncidentStatus = "investigating"
	DtoStatusPageIncidentStatusMonitoring    DtoStatusPageIncidentStatus = "monitoring"
	DtoStatusPageIncidentStatusResolved      DtoStatusPageIncidentStatus = "resolved"
)

Defines values for DtoStatusPageIncidentStatus.

func (DtoStatusPageIncidentStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentStatus enum.

type DtoStatusPageIncidentUpdate added in v0.23.0

type DtoStatusPageIncidentUpdate struct {
	Components         *[]DtoStatusPageAffected           `json:"components,omitempty"`
	Impact             *DtoStatusPageIncidentUpdateImpact `json:"impact,omitempty"`
	MonitorIncidentIds *[]openapi_types.UUID              `json:"monitorIncidentIds,omitempty"`
	StartedAt          *string                            `json:"startedAt,omitempty"`
	Title              *string                            `json:"title,omitempty"`
}

DtoStatusPageIncidentUpdate defines model for dto.StatusPageIncidentUpdate.

type DtoStatusPageIncidentUpdateImpact added in v0.23.0

type DtoStatusPageIncidentUpdateImpact string

DtoStatusPageIncidentUpdateImpact defines model for DtoStatusPageIncidentUpdate.Impact.

const (
	DtoStatusPageIncidentUpdateImpactCritical DtoStatusPageIncidentUpdateImpact = "critical"
	DtoStatusPageIncidentUpdateImpactMajor    DtoStatusPageIncidentUpdateImpact = "major"
	DtoStatusPageIncidentUpdateImpactMinor    DtoStatusPageIncidentUpdateImpact = "minor"
	DtoStatusPageIncidentUpdateImpactNone     DtoStatusPageIncidentUpdateImpact = "none"
)

Defines values for DtoStatusPageIncidentUpdateImpact.

func (DtoStatusPageIncidentUpdateImpact) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageIncidentUpdateImpact enum.

type DtoStatusPageLayout added in v0.23.0

type DtoStatusPageLayout struct {
	Components []DtoStatusPageComponent `json:"components"`
	Groups     []DtoStatusPageGroup     `json:"groups"`
}

DtoStatusPageLayout defines model for dto.StatusPageLayout.

type DtoStatusPagePreviewLink struct {
	ExpiresAt string `json:"expiresAt"`
	Url       string `json:"url"`
}

DtoStatusPagePreviewLink defines model for dto.StatusPagePreviewLink.

type DtoStatusPageSettings added in v0.23.0

type DtoStatusPageSettings struct {
	// HistoryDays HistoryDays is how far back resolved incidents stay on the page.
	HistoryDays int `json:"historyDays"`

	// SearchIndexing SearchIndexing false asks search engines to leave the page out.
	SearchIndexing    bool `json:"searchIndexing"`
	ShowResponseTime  bool `json:"showResponseTime"`
	ShowUptimeBars    bool `json:"showUptimeBars"`
	ShowUptimePercent bool `json:"showUptimePercent"`

	// TimeZone TimeZone is the IANA zone times are shown in.
	TimeZone string `json:"timeZone"`

	// UptimeDays UptimeDays is how many days the bars cover.
	UptimeDays DtoStatusPageSettingsUptimeDays `json:"uptimeDays"`
}

DtoStatusPageSettings defines model for dto.StatusPageSettings.

type DtoStatusPageSettingsUpdate added in v0.23.0

type DtoStatusPageSettingsUpdate struct {
	HistoryDays       *int                                   `json:"historyDays,omitempty"`
	SearchIndexing    *bool                                  `json:"searchIndexing,omitempty"`
	ShowResponseTime  *bool                                  `json:"showResponseTime,omitempty"`
	ShowUptimeBars    *bool                                  `json:"showUptimeBars,omitempty"`
	ShowUptimePercent *bool                                  `json:"showUptimePercent,omitempty"`
	TimeZone          *string                                `json:"timeZone,omitempty"`
	UptimeDays        *DtoStatusPageSettingsUpdateUptimeDays `json:"uptimeDays,omitempty"`
}

DtoStatusPageSettingsUpdate defines model for dto.StatusPageSettingsUpdate.

type DtoStatusPageSettingsUpdateUptimeDays added in v0.23.0

type DtoStatusPageSettingsUpdateUptimeDays int

DtoStatusPageSettingsUpdateUptimeDays defines model for DtoStatusPageSettingsUpdate.UptimeDays.

const (
	DtoStatusPageSettingsUpdateUptimeDaysN30 DtoStatusPageSettingsUpdateUptimeDays = 30
	DtoStatusPageSettingsUpdateUptimeDaysN60 DtoStatusPageSettingsUpdateUptimeDays = 60
	DtoStatusPageSettingsUpdateUptimeDaysN90 DtoStatusPageSettingsUpdateUptimeDays = 90
)

Defines values for DtoStatusPageSettingsUpdateUptimeDays.

func (DtoStatusPageSettingsUpdateUptimeDays) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageSettingsUpdateUptimeDays enum.

type DtoStatusPageSettingsUptimeDays added in v0.23.0

type DtoStatusPageSettingsUptimeDays int

DtoStatusPageSettingsUptimeDays UptimeDays is how many days the bars cover.

const (
	DtoStatusPageSettingsUptimeDaysN30 DtoStatusPageSettingsUptimeDays = 30
	DtoStatusPageSettingsUptimeDaysN60 DtoStatusPageSettingsUptimeDays = 60
	DtoStatusPageSettingsUptimeDaysN90 DtoStatusPageSettingsUptimeDays = 90
)

Defines values for DtoStatusPageSettingsUptimeDays.

func (DtoStatusPageSettingsUptimeDays) Valid added in v0.23.0

Valid indicates whether the value is a known member of the DtoStatusPageSettingsUptimeDays enum.

type DtoStatusPageUpdate added in v0.23.0

type DtoStatusPageUpdate struct {
	Description *string                      `json:"description,omitempty"`
	Name        *string                      `json:"name,omitempty"`
	Settings    *DtoStatusPageSettingsUpdate `json:"settings,omitempty"`
	Slug        *string                      `json:"slug,omitempty"`
}

DtoStatusPageUpdate defines model for dto.StatusPageUpdate.

type DtoThresholdAlert

type DtoThresholdAlert struct {
	AlertedAt string `json:"alertedAt"`
	Days      int    `json:"days"`
}

DtoThresholdAlert defines model for dto.ThresholdAlert.

type DtoWindowSummary

type DtoWindowSummary struct {
	AvgMs        *int   `json:"avgMs,omitempty"`
	Checks       int    `json:"checks"`
	Critical     int    `json:"critical"`
	From         string `json:"from"`
	Inconclusive int    `json:"inconclusive"`
	Ok           int    `json:"ok"`

	// P50Ms P50Ms and P95Ms approximate the window's median and 95th percentile
	// response time (the checks-weighted mean of the hourly percentiles).
	P50Ms *int `json:"p50Ms,omitempty"`
	P95Ms *int `json:"p95Ms,omitempty"`

	// UptimePercent UptimePercent is (ok + warning) / (ok + warning + critical): a
	// warning still answered, an inconclusive check counts neither way.
	// WarningPercent is the warnings' share of the conclusive checks.
	UptimePercent  *float32 `json:"uptimePercent,omitempty"`
	Warning        int      `json:"warning"`
	WarningPercent *float32 `json:"warningPercent,omitempty"`
}

DtoWindowSummary defines model for dto.WindowSummary.

type GetAlertChannelResponse

type GetAlertChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoAlertChannel
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetAlertChannelResponse

func ParseGetAlertChannelResponse(rsp *http.Response) (*GetAlertChannelResponse, error)

ParseGetAlertChannelResponse parses an HTTP response from a GetAlertChannelWithResponse call

func (GetAlertChannelResponse) ContentType

func (r GetAlertChannelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertChannelResponse) Status

func (r GetAlertChannelResponse) Status() string

Status returns HTTPResponse.Status

func (GetAlertChannelResponse) StatusCode

func (r GetAlertChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIncidentResponse

type GetIncidentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoIncidentDetail
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetIncidentResponse

func ParseGetIncidentResponse(rsp *http.Response) (*GetIncidentResponse, error)

ParseGetIncidentResponse parses an HTTP response from a GetIncidentWithResponse call

func (GetIncidentResponse) ContentType

func (r GetIncidentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIncidentResponse) Status

func (r GetIncidentResponse) Status() string

Status returns HTTPResponse.Status

func (GetIncidentResponse) StatusCode

func (r GetIncidentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIncidentSummaryResponse

type GetIncidentSummaryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoIncidentSummary
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
}

func ParseGetIncidentSummaryResponse

func ParseGetIncidentSummaryResponse(rsp *http.Response) (*GetIncidentSummaryResponse, error)

ParseGetIncidentSummaryResponse parses an HTTP response from a GetIncidentSummaryWithResponse call

func (GetIncidentSummaryResponse) ContentType

func (r GetIncidentSummaryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIncidentSummaryResponse) Status

Status returns HTTPResponse.Status

func (GetIncidentSummaryResponse) StatusCode

func (r GetIncidentSummaryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorAlertsResponse

type GetMonitorAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitorAlerts
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetMonitorAlertsResponse

func ParseGetMonitorAlertsResponse(rsp *http.Response) (*GetMonitorAlertsResponse, error)

ParseGetMonitorAlertsResponse parses an HTTP response from a GetMonitorAlertsWithResponse call

func (GetMonitorAlertsResponse) ContentType

func (r GetMonitorAlertsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonitorAlertsResponse) Status

func (r GetMonitorAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (GetMonitorAlertsResponse) StatusCode

func (r GetMonitorAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorAvailabilityParams

type GetMonitorAvailabilityParams struct {
	// Days Days is how many UTC days, ending today, the bar covers (default 90).
	Days *int `form:"days,omitempty" json:"days,omitempty"`
}

GetMonitorAvailabilityParams defines parameters for GetMonitorAvailability.

type GetMonitorAvailabilityResponse

type GetMonitorAvailabilityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoAvailability
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetMonitorAvailabilityResponse

func ParseGetMonitorAvailabilityResponse(rsp *http.Response) (*GetMonitorAvailabilityResponse, error)

ParseGetMonitorAvailabilityResponse parses an HTTP response from a GetMonitorAvailabilityWithResponse call

func (GetMonitorAvailabilityResponse) ContentType

func (r GetMonitorAvailabilityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonitorAvailabilityResponse) Status

Status returns HTTPResponse.Status

func (GetMonitorAvailabilityResponse) StatusCode

func (r GetMonitorAvailabilityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorCertificateResponse

type GetMonitorCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitorCertificate
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetMonitorCertificateResponse

func ParseGetMonitorCertificateResponse(rsp *http.Response) (*GetMonitorCertificateResponse, error)

ParseGetMonitorCertificateResponse parses an HTTP response from a GetMonitorCertificateWithResponse call

func (GetMonitorCertificateResponse) ContentType

func (r GetMonitorCertificateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonitorCertificateResponse) Status

Status returns HTTPResponse.Status

func (GetMonitorCertificateResponse) StatusCode

func (r GetMonitorCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorResponse

type GetMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitor
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetMonitorResponse

func ParseGetMonitorResponse(rsp *http.Response) (*GetMonitorResponse, error)

ParseGetMonitorResponse parses an HTTP response from a GetMonitorWithResponse call

func (GetMonitorResponse) ContentType

func (r GetMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonitorResponse) Status

func (r GetMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (GetMonitorResponse) StatusCode

func (r GetMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorStatsParams

type GetMonitorStatsParams struct {
	Range GetMonitorStatsParamsRange `form:"range" json:"range"`
}

GetMonitorStatsParams defines parameters for GetMonitorStats.

type GetMonitorStatsParamsRange

type GetMonitorStatsParamsRange string

GetMonitorStatsParamsRange defines parameters for GetMonitorStats.

Defines values for GetMonitorStatsParamsRange.

func (GetMonitorStatsParamsRange) Valid

func (e GetMonitorStatsParamsRange) Valid() bool

Valid indicates whether the value is a known member of the GetMonitorStatsParamsRange enum.

type GetMonitorStatsResponse

type GetMonitorStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitorStats
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetMonitorStatsResponse

func ParseGetMonitorStatsResponse(rsp *http.Response) (*GetMonitorStatsResponse, error)

ParseGetMonitorStatsResponse parses an HTTP response from a GetMonitorStatsWithResponse call

func (GetMonitorStatsResponse) ContentType

func (r GetMonitorStatsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonitorStatsResponse) Status

func (r GetMonitorStatsResponse) Status() string

Status returns HTTPResponse.Status

func (GetMonitorStatsResponse) StatusCode

func (r GetMonitorStatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusPageIncidentResponse added in v0.23.0

type GetStatusPageIncidentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPageIncident
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetStatusPageIncidentResponse added in v0.23.0

func ParseGetStatusPageIncidentResponse(rsp *http.Response) (*GetStatusPageIncidentResponse, error)

ParseGetStatusPageIncidentResponse parses an HTTP response from a GetStatusPageIncidentWithResponse call

func (GetStatusPageIncidentResponse) ContentType added in v0.23.0

func (r GetStatusPageIncidentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStatusPageIncidentResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (GetStatusPageIncidentResponse) StatusCode added in v0.23.0

func (r GetStatusPageIncidentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusPageLayoutResponse added in v0.23.0

type GetStatusPageLayoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPageLayout
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetStatusPageLayoutResponse added in v0.23.0

func ParseGetStatusPageLayoutResponse(rsp *http.Response) (*GetStatusPageLayoutResponse, error)

ParseGetStatusPageLayoutResponse parses an HTTP response from a GetStatusPageLayoutWithResponse call

func (GetStatusPageLayoutResponse) ContentType added in v0.23.0

func (r GetStatusPageLayoutResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStatusPageLayoutResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (GetStatusPageLayoutResponse) StatusCode added in v0.23.0

func (r GetStatusPageLayoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusPageResponse added in v0.23.0

type GetStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPage
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseGetStatusPageResponse added in v0.23.0

func ParseGetStatusPageResponse(rsp *http.Response) (*GetStatusPageResponse, error)

ParseGetStatusPageResponse parses an HTTP response from a GetStatusPageWithResponse call

func (GetStatusPageResponse) ContentType added in v0.23.0

func (r GetStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStatusPageResponse) Status added in v0.23.0

func (r GetStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (GetStatusPageResponse) StatusCode added in v0.23.0

func (r GetStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListAlertChannelDeliveriesParams

type ListAlertChannelDeliveriesParams struct {
	Cursor *string                                 `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int                                    `form:"limit,omitempty" json:"limit,omitempty"`
	Status *ListAlertChannelDeliveriesParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}

ListAlertChannelDeliveriesParams defines parameters for ListAlertChannelDeliveries.

type ListAlertChannelDeliveriesParamsStatus

type ListAlertChannelDeliveriesParamsStatus string

ListAlertChannelDeliveriesParamsStatus defines parameters for ListAlertChannelDeliveries.

const (
	ListAlertChannelDeliveriesParamsStatusDead    ListAlertChannelDeliveriesParamsStatus = "dead"
	ListAlertChannelDeliveriesParamsStatusPending ListAlertChannelDeliveriesParamsStatus = "pending"
	ListAlertChannelDeliveriesParamsStatusSent    ListAlertChannelDeliveriesParamsStatus = "sent"
)

Defines values for ListAlertChannelDeliveriesParamsStatus.

func (ListAlertChannelDeliveriesParamsStatus) Valid

Valid indicates whether the value is a known member of the ListAlertChannelDeliveriesParamsStatus enum.

type ListAlertChannelDeliveriesResponse

type ListAlertChannelDeliveriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoChannelDelivery                 `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
	JSON404 *ResponseProblem
}

func ParseListAlertChannelDeliveriesResponse

func ParseListAlertChannelDeliveriesResponse(rsp *http.Response) (*ListAlertChannelDeliveriesResponse, error)

ParseListAlertChannelDeliveriesResponse parses an HTTP response from a ListAlertChannelDeliveriesWithResponse call

func (ListAlertChannelDeliveriesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertChannelDeliveriesResponse) Status

Status returns HTTPResponse.Status

func (ListAlertChannelDeliveriesResponse) StatusCode

func (r ListAlertChannelDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertChannelsParams

type ListAlertChannelsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

ListAlertChannelsParams defines parameters for ListAlertChannels.

type ListAlertChannelsResponse

type ListAlertChannelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoAlertChannel                    `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
}

func ParseListAlertChannelsResponse

func ParseListAlertChannelsResponse(rsp *http.Response) (*ListAlertChannelsResponse, error)

ParseListAlertChannelsResponse parses an HTTP response from a ListAlertChannelsWithResponse call

func (ListAlertChannelsResponse) ContentType

func (r ListAlertChannelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertChannelsResponse) Status

func (r ListAlertChannelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAlertChannelsResponse) StatusCode

func (r ListAlertChannelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIncidentsParams

type ListIncidentsParams struct {
	// Acknowledged Acknowledged: true for incidents someone acknowledged, false for
	// the others.
	Acknowledged *ListIncidentsParamsAcknowledged `form:"acknowledged,omitempty" json:"acknowledged,omitempty"`

	// Aspect Aspect is what the incident is about.
	Aspect *ListIncidentsParamsAspect `form:"aspect,omitempty" json:"aspect,omitempty"`
	Cursor *string                    `form:"cursor,omitempty" json:"cursor,omitempty"`

	// From From and To bound when the incident started: from inclusive, to
	// exclusive (RFC 3339).
	From      *time.Time          `form:"from,omitempty" json:"from,omitempty"`
	Limit     *int                `form:"limit,omitempty" json:"limit,omitempty"`
	MonitorId *openapi_types.UUID `form:"monitorId,omitempty" json:"monitorId,omitempty"`

	// Q Q is part of the monitor's name or target, any case.
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Severity Severity matches an open incident's current severity and a resolved
	// one's peak severity (how bad it got).
	Severity *ListIncidentsParamsSeverity `form:"severity,omitempty" json:"severity,omitempty"`
	Status   *ListIncidentsParamsStatus   `form:"status,omitempty" json:"status,omitempty"`
	To       *time.Time                   `form:"to,omitempty" json:"to,omitempty"`
}

ListIncidentsParams defines parameters for ListIncidents.

type ListIncidentsParamsAcknowledged

type ListIncidentsParamsAcknowledged string

ListIncidentsParamsAcknowledged defines parameters for ListIncidents.

const (
	False ListIncidentsParamsAcknowledged = "false"
	True  ListIncidentsParamsAcknowledged = "true"
)

Defines values for ListIncidentsParamsAcknowledged.

func (ListIncidentsParamsAcknowledged) Valid

Valid indicates whether the value is a known member of the ListIncidentsParamsAcknowledged enum.

type ListIncidentsParamsAspect

type ListIncidentsParamsAspect string

ListIncidentsParamsAspect defines parameters for ListIncidents.

const (
	ListIncidentsParamsAspectAvailability ListIncidentsParamsAspect = "availability"
	ListIncidentsParamsAspectCertificate  ListIncidentsParamsAspect = "certificate"
	ListIncidentsParamsAspectDomain       ListIncidentsParamsAspect = "domain"
)

Defines values for ListIncidentsParamsAspect.

func (ListIncidentsParamsAspect) Valid

func (e ListIncidentsParamsAspect) Valid() bool

Valid indicates whether the value is a known member of the ListIncidentsParamsAspect enum.

type ListIncidentsParamsSeverity

type ListIncidentsParamsSeverity string

ListIncidentsParamsSeverity defines parameters for ListIncidents.

const (
	ListIncidentsParamsSeverityCritical ListIncidentsParamsSeverity = "critical"
	ListIncidentsParamsSeverityWarning  ListIncidentsParamsSeverity = "warning"
)

Defines values for ListIncidentsParamsSeverity.

func (ListIncidentsParamsSeverity) Valid

Valid indicates whether the value is a known member of the ListIncidentsParamsSeverity enum.

type ListIncidentsParamsStatus

type ListIncidentsParamsStatus string

ListIncidentsParamsStatus defines parameters for ListIncidents.

const (
	ListIncidentsParamsStatusOpen     ListIncidentsParamsStatus = "open"
	ListIncidentsParamsStatusResolved ListIncidentsParamsStatus = "resolved"
)

Defines values for ListIncidentsParamsStatus.

func (ListIncidentsParamsStatus) Valid

func (e ListIncidentsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListIncidentsParamsStatus enum.

type ListIncidentsResponse

type ListIncidentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoIncident                        `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
}

func ParseListIncidentsResponse

func ParseListIncidentsResponse(rsp *http.Response) (*ListIncidentsResponse, error)

ParseListIncidentsResponse parses an HTTP response from a ListIncidentsWithResponse call

func (ListIncidentsResponse) ContentType

func (r ListIncidentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIncidentsResponse) Status

func (r ListIncidentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIncidentsResponse) StatusCode

func (r ListIncidentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMonitorResultsParams

type ListMonitorResultsParams struct {
	Cursor *string    `form:"cursor,omitempty" json:"cursor,omitempty"`
	From   *time.Time `form:"from,omitempty" json:"from,omitempty"`
	Limit  *int       `form:"limit,omitempty" json:"limit,omitempty"`
	To     *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

ListMonitorResultsParams defines parameters for ListMonitorResults.

type ListMonitorResultsResponse

type ListMonitorResultsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoCheckResult                     `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
	JSON404 *ResponseProblem
}

func ParseListMonitorResultsResponse

func ParseListMonitorResultsResponse(rsp *http.Response) (*ListMonitorResultsResponse, error)

ParseListMonitorResultsResponse parses an HTTP response from a ListMonitorResultsWithResponse call

func (ListMonitorResultsResponse) ContentType

func (r ListMonitorResultsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMonitorResultsResponse) Status

Status returns HTTPResponse.Status

func (ListMonitorResultsResponse) StatusCode

func (r ListMonitorResultsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMonitorStatusChangesParams

type ListMonitorStatusChangesParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

ListMonitorStatusChangesParams defines parameters for ListMonitorStatusChanges.

type ListMonitorStatusChangesResponse

type ListMonitorStatusChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoStatusChange                    `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
	JSON404 *ResponseProblem
}

func ParseListMonitorStatusChangesResponse

func ParseListMonitorStatusChangesResponse(rsp *http.Response) (*ListMonitorStatusChangesResponse, error)

ParseListMonitorStatusChangesResponse parses an HTTP response from a ListMonitorStatusChangesWithResponse call

func (ListMonitorStatusChangesResponse) ContentType

func (r ListMonitorStatusChangesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMonitorStatusChangesResponse) Status

Status returns HTTPResponse.Status

func (ListMonitorStatusChangesResponse) StatusCode

func (r ListMonitorStatusChangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMonitorsParams

type ListMonitorsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Include Include is a comma-separated list of optional row parts: history
	// adds each row's last 60 check results.
	Include *ListMonitorsParamsInclude `form:"include,omitempty" json:"include,omitempty"`
	Limit   *int                       `form:"limit,omitempty" json:"limit,omitempty"`
	Q       *string                    `form:"q,omitempty" json:"q,omitempty"`

	// Sort Sort: status (default, by overall status: critical, warning,
	// pending, ok, paused, then name), name (A to Z), lastChecked (most recent first), uptime
	// (lowest over last24h first; no data, and SSL and domain monitors,
	// last), created (newest first).
	// A cursor only continues the sort it came from.
	Sort *ListMonitorsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Status Status matches the overall status (the worst of the monitor's status
	// and its watched aspects').
	Status *ListMonitorsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	Type   *ListMonitorsParamsType   `form:"type,omitempty" json:"type,omitempty"`
}

ListMonitorsParams defines parameters for ListMonitors.

type ListMonitorsParamsInclude

type ListMonitorsParamsInclude string

ListMonitorsParamsInclude defines parameters for ListMonitors.

const (
	History ListMonitorsParamsInclude = "history"
)

Defines values for ListMonitorsParamsInclude.

func (ListMonitorsParamsInclude) Valid

func (e ListMonitorsParamsInclude) Valid() bool

Valid indicates whether the value is a known member of the ListMonitorsParamsInclude enum.

type ListMonitorsParamsSort

type ListMonitorsParamsSort string

ListMonitorsParamsSort defines parameters for ListMonitors.

const (
	Created     ListMonitorsParamsSort = "created"
	LastChecked ListMonitorsParamsSort = "lastChecked"
	Name        ListMonitorsParamsSort = "name"
	Status      ListMonitorsParamsSort = "status"
	Uptime      ListMonitorsParamsSort = "uptime"
)

Defines values for ListMonitorsParamsSort.

func (ListMonitorsParamsSort) Valid

func (e ListMonitorsParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListMonitorsParamsSort enum.

type ListMonitorsParamsStatus

type ListMonitorsParamsStatus string

ListMonitorsParamsStatus defines parameters for ListMonitors.

const (
	ListMonitorsParamsStatusCritical ListMonitorsParamsStatus = "critical"
	ListMonitorsParamsStatusOk       ListMonitorsParamsStatus = "ok"
	ListMonitorsParamsStatusPaused   ListMonitorsParamsStatus = "paused"
	ListMonitorsParamsStatusPending  ListMonitorsParamsStatus = "pending"
	ListMonitorsParamsStatusWarning  ListMonitorsParamsStatus = "warning"
)

Defines values for ListMonitorsParamsStatus.

func (ListMonitorsParamsStatus) Valid

func (e ListMonitorsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListMonitorsParamsStatus enum.

type ListMonitorsParamsType

type ListMonitorsParamsType string

ListMonitorsParamsType defines parameters for ListMonitors.

const (
	ListMonitorsParamsTypeDomain ListMonitorsParamsType = "domain"
	ListMonitorsParamsTypeHttp   ListMonitorsParamsType = "http"
	ListMonitorsParamsTypeSsl    ListMonitorsParamsType = "ssl"
)

Defines values for ListMonitorsParamsType.

func (ListMonitorsParamsType) Valid

func (e ListMonitorsParamsType) Valid() bool

Valid indicates whether the value is a known member of the ListMonitorsParamsType enum.

type ListMonitorsResponse

type ListMonitorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoMonitor                         `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
}

func ParseListMonitorsResponse

func ParseListMonitorsResponse(rsp *http.Response) (*ListMonitorsResponse, error)

ParseListMonitorsResponse parses an HTTP response from a ListMonitorsWithResponse call

func (ListMonitorsResponse) ContentType

func (r ListMonitorsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMonitorsResponse) Status

func (r ListMonitorsResponse) Status() string

Status returns HTTPResponse.Status

func (ListMonitorsResponse) StatusCode

func (r ListMonitorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListStatusPageIncidentsParams added in v0.23.0

type ListStatusPageIncidentsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`

	// Status Status filters on open or resolved.
	Status *ListStatusPageIncidentsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}

ListStatusPageIncidentsParams defines parameters for ListStatusPageIncidents.

type ListStatusPageIncidentsParamsStatus added in v0.23.0

type ListStatusPageIncidentsParamsStatus string

ListStatusPageIncidentsParamsStatus defines parameters for ListStatusPageIncidents.

const (
	Open     ListStatusPageIncidentsParamsStatus = "open"
	Resolved ListStatusPageIncidentsParamsStatus = "resolved"
)

Defines values for ListStatusPageIncidentsParamsStatus.

func (ListStatusPageIncidentsParamsStatus) Valid added in v0.23.0

Valid indicates whether the value is a known member of the ListStatusPageIncidentsParamsStatus enum.

type ListStatusPageIncidentsResponse added in v0.23.0

type ListStatusPageIncidentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoStatusPageIncident              `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
	JSON404 *ResponseProblem
}

func ParseListStatusPageIncidentsResponse added in v0.23.0

func ParseListStatusPageIncidentsResponse(rsp *http.Response) (*ListStatusPageIncidentsResponse, error)

ParseListStatusPageIncidentsResponse parses an HTTP response from a ListStatusPageIncidentsWithResponse call

func (ListStatusPageIncidentsResponse) ContentType added in v0.23.0

func (r ListStatusPageIncidentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListStatusPageIncidentsResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (ListStatusPageIncidentsResponse) StatusCode added in v0.23.0

func (r ListStatusPageIncidentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListStatusPagesParams added in v0.23.0

type ListStatusPagesParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`

	// MonitorId MonitorID lists the pages that show this monitor instead (at most 50,
	// not paginated).
	MonitorId *openapi_types.UUID `form:"monitorId,omitempty" json:"monitorId,omitempty"`
}

ListStatusPagesParams defines parameters for ListStatusPages.

type ListStatusPagesResponse added in v0.23.0

type ListStatusPagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
		List    []DtoStatusPage                      `json:"list"`
		Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
	}
	JSON400 *ResponseProblem
	JSON401 *ResponseProblem
	JSON403 *ResponseProblem
}

func ParseListStatusPagesResponse added in v0.23.0

func ParseListStatusPagesResponse(rsp *http.Response) (*ListStatusPagesResponse, error)

ParseListStatusPagesResponse parses an HTTP response from a ListStatusPagesWithResponse call

func (ListStatusPagesResponse) ContentType added in v0.23.0

func (r ListStatusPagesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListStatusPagesResponse) Status added in v0.23.0

func (r ListStatusPagesResponse) Status() string

Status returns HTTPResponse.Status

func (ListStatusPagesResponse) StatusCode added in v0.23.0

func (r ListStatusPagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PauseMonitorResponse

type PauseMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitor
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParsePauseMonitorResponse

func ParsePauseMonitorResponse(rsp *http.Response) (*PauseMonitorResponse, error)

ParsePauseMonitorResponse parses an HTTP response from a PauseMonitorWithResponse call

func (PauseMonitorResponse) ContentType

func (r PauseMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PauseMonitorResponse) Status

func (r PauseMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (PauseMonitorResponse) StatusCode

func (r PauseMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PreviewStatusPageResponse added in v0.23.0

type PreviewStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoPublicStatusPreview
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParsePreviewStatusPageResponse added in v0.23.0

func ParsePreviewStatusPageResponse(rsp *http.Response) (*PreviewStatusPageResponse, error)

ParsePreviewStatusPageResponse parses an HTTP response from a PreviewStatusPageWithResponse call

func (PreviewStatusPageResponse) ContentType added in v0.23.0

func (r PreviewStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PreviewStatusPageResponse) Status added in v0.23.0

func (r PreviewStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (PreviewStatusPageResponse) StatusCode added in v0.23.0

func (r PreviewStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PublishStatusPageResponse added in v0.23.0

type PublishStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPage
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParsePublishStatusPageResponse added in v0.23.0

func ParsePublishStatusPageResponse(rsp *http.Response) (*PublishStatusPageResponse, error)

ParsePublishStatusPageResponse parses an HTTP response from a PublishStatusPageWithResponse call

func (PublishStatusPageResponse) ContentType added in v0.23.0

func (r PublishStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PublishStatusPageResponse) Status added in v0.23.0

func (r PublishStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (PublishStatusPageResponse) StatusCode added in v0.23.0

func (r PublishStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseAPIResponsePaginationCursors

type ResponseAPIResponsePaginationCursors struct {
	Next *string `json:"next,omitempty"`
	Prev *string `json:"prev,omitempty"`
}

ResponseAPIResponsePaginationCursors defines model for response.APIResponsePaginationCursors.

type ResponseAPIResponsePaginationMeta

type ResponseAPIResponsePaginationMeta struct {
	Timestamp *string `json:"timestamp,omitempty"`
}

ResponseAPIResponsePaginationMeta defines model for response.APIResponsePaginationMeta.

type ResponseAPIResponseWithPagination

type ResponseAPIResponseWithPagination struct {
	Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
	List    interface{}                          `json:"list"`
	Meta    ResponseAPIResponsePaginationMeta    `json:"meta"`
}

ResponseAPIResponseWithPagination defines model for response.APIResponseWithPagination.

type ResponseProblem

type ResponseProblem struct {
	Code ConstantsErrorCode `json:"code"`

	// Data Data holds stable facts about the error ("limit"), the same ones gRPC
	// sends as ErrorInfo metadata.
	Data *map[string]string `json:"data,omitempty"`

	// Detail Detail is an English sentence for people.
	Detail string `json:"detail"`

	// Errors Errors lists the field problems of a VALIDATION_FAILED problem.
	Errors *[]ValidationViolation `json:"errors,omitempty"`

	// Instance Instance identifies this occurrence: the request id the server
	// generated, also sent as X-Request-ID and logged as request_id.
	Instance string `json:"instance"`

	// Reason Reason is a finer stable cause within Code, when there is one.
	Reason    *ConstantsErrorReason `json:"reason,omitempty"`
	Status    int                   `json:"status"`
	Timestamp string                `json:"timestamp"`
	Title     string                `json:"title"`

	// Type Type identifies the problem type (one per code); it may be
	// dereferenced for documentation.
	Type string `json:"type"`
}

ResponseProblem defines model for response.Problem.

type ResumeMonitorResponse

type ResumeMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitor
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseResumeMonitorResponse

func ParseResumeMonitorResponse(rsp *http.Response) (*ResumeMonitorResponse, error)

ParseResumeMonitorResponse parses an HTTP response from a ResumeMonitorWithResponse call

func (ResumeMonitorResponse) ContentType

func (r ResumeMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResumeMonitorResponse) Status

func (r ResumeMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (ResumeMonitorResponse) StatusCode

func (r ResumeMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RunMonitorCheckResponse

type RunMonitorCheckResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoCheckResult
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON429      *ResponseProblem
}

func ParseRunMonitorCheckResponse

func ParseRunMonitorCheckResponse(rsp *http.Response) (*RunMonitorCheckResponse, error)

ParseRunMonitorCheckResponse parses an HTTP response from a RunMonitorCheckWithResponse call

func (RunMonitorCheckResponse) ContentType

func (r RunMonitorCheckResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RunMonitorCheckResponse) Status

func (r RunMonitorCheckResponse) Status() string

Status returns HTTPResponse.Status

func (RunMonitorCheckResponse) StatusCode

func (r RunMonitorCheckResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendAlertChannelVerificationResponse

type SendAlertChannelVerificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseSendAlertChannelVerificationResponse

func ParseSendAlertChannelVerificationResponse(rsp *http.Response) (*SendAlertChannelVerificationResponse, error)

ParseSendAlertChannelVerificationResponse parses an HTTP response from a SendAlertChannelVerificationWithResponse call

func (SendAlertChannelVerificationResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendAlertChannelVerificationResponse) Status

Status returns HTTPResponse.Status

func (SendAlertChannelVerificationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SetMonitorAlertsJSONRequestBody

type SetMonitorAlertsJSONRequestBody = DtoMonitorAlertsUpdate

SetMonitorAlertsJSONRequestBody defines body for SetMonitorAlerts for application/json ContentType.

type SetMonitorAlertsResponse

type SetMonitorAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitorAlerts
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseSetMonitorAlertsResponse

func ParseSetMonitorAlertsResponse(rsp *http.Response) (*SetMonitorAlertsResponse, error)

ParseSetMonitorAlertsResponse parses an HTTP response from a SetMonitorAlertsWithResponse call

func (SetMonitorAlertsResponse) ContentType

func (r SetMonitorAlertsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetMonitorAlertsResponse) Status

func (r SetMonitorAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (SetMonitorAlertsResponse) StatusCode

func (r SetMonitorAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetStatusPageLayoutJSONRequestBody added in v0.23.0

type SetStatusPageLayoutJSONRequestBody = DtoStatusPageLayout

SetStatusPageLayoutJSONRequestBody defines body for SetStatusPageLayout for application/json ContentType.

type SetStatusPageLayoutResponse added in v0.23.0

type SetStatusPageLayoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPageLayout
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseSetStatusPageLayoutResponse added in v0.23.0

func ParseSetStatusPageLayoutResponse(rsp *http.Response) (*SetStatusPageLayoutResponse, error)

ParseSetStatusPageLayoutResponse parses an HTTP response from a SetStatusPageLayoutWithResponse call

func (SetStatusPageLayoutResponse) ContentType added in v0.23.0

func (r SetStatusPageLayoutResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetStatusPageLayoutResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (SetStatusPageLayoutResponse) StatusCode added in v0.23.0

func (r SetStatusPageLayoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TestAlertChannelResponse

type TestAlertChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoAlertChannelTestResult
	JSON401      *ResponseProblem
	JSON402      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
	JSON429      *ResponseProblem
	JSON503      *ResponseProblem
}

func ParseTestAlertChannelResponse

func ParseTestAlertChannelResponse(rsp *http.Response) (*TestAlertChannelResponse, error)

ParseTestAlertChannelResponse parses an HTTP response from a TestAlertChannelWithResponse call

func (TestAlertChannelResponse) ContentType

func (r TestAlertChannelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TestAlertChannelResponse) Status

func (r TestAlertChannelResponse) Status() string

Status returns HTTPResponse.Status

func (TestAlertChannelResponse) StatusCode

func (r TestAlertChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnpublishStatusPageResponse added in v0.23.0

type UnpublishStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPage
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseUnpublishStatusPageResponse added in v0.23.0

func ParseUnpublishStatusPageResponse(rsp *http.Response) (*UnpublishStatusPageResponse, error)

ParseUnpublishStatusPageResponse parses an HTTP response from a UnpublishStatusPageWithResponse call

func (UnpublishStatusPageResponse) ContentType added in v0.23.0

func (r UnpublishStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnpublishStatusPageResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (UnpublishStatusPageResponse) StatusCode added in v0.23.0

func (r UnpublishStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateAlertChannelJSONRequestBody

type UpdateAlertChannelJSONRequestBody = DtoAlertChannelUpdate

UpdateAlertChannelJSONRequestBody defines body for UpdateAlertChannel for application/json ContentType.

type UpdateAlertChannelResponse

type UpdateAlertChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoAlertChannelWithSecret
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseUpdateAlertChannelResponse

func ParseUpdateAlertChannelResponse(rsp *http.Response) (*UpdateAlertChannelResponse, error)

ParseUpdateAlertChannelResponse parses an HTTP response from a UpdateAlertChannelWithResponse call

func (UpdateAlertChannelResponse) ContentType

func (r UpdateAlertChannelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateAlertChannelResponse) Status

Status returns HTTPResponse.Status

func (UpdateAlertChannelResponse) StatusCode

func (r UpdateAlertChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMonitorJSONRequestBody

type UpdateMonitorJSONRequestBody = DtoMonitorUpdate

UpdateMonitorJSONRequestBody defines body for UpdateMonitor for application/json ContentType.

type UpdateMonitorResponse

type UpdateMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoMonitor
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON503      *ResponseProblem
}

func ParseUpdateMonitorResponse

func ParseUpdateMonitorResponse(rsp *http.Response) (*UpdateMonitorResponse, error)

ParseUpdateMonitorResponse parses an HTTP response from a UpdateMonitorWithResponse call

func (UpdateMonitorResponse) ContentType

func (r UpdateMonitorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateMonitorResponse) Status

func (r UpdateMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMonitorResponse) StatusCode

func (r UpdateMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateStatusPageIncidentJSONRequestBody added in v0.23.0

type UpdateStatusPageIncidentJSONRequestBody = DtoStatusPageIncidentUpdate

UpdateStatusPageIncidentJSONRequestBody defines body for UpdateStatusPageIncident for application/json ContentType.

type UpdateStatusPageIncidentResponse added in v0.23.0

type UpdateStatusPageIncidentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPageIncident
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
}

func ParseUpdateStatusPageIncidentResponse added in v0.23.0

func ParseUpdateStatusPageIncidentResponse(rsp *http.Response) (*UpdateStatusPageIncidentResponse, error)

ParseUpdateStatusPageIncidentResponse parses an HTTP response from a UpdateStatusPageIncidentWithResponse call

func (UpdateStatusPageIncidentResponse) ContentType added in v0.23.0

func (r UpdateStatusPageIncidentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateStatusPageIncidentResponse) Status added in v0.23.0

Status returns HTTPResponse.Status

func (UpdateStatusPageIncidentResponse) StatusCode added in v0.23.0

func (r UpdateStatusPageIncidentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateStatusPageJSONRequestBody added in v0.23.0

type UpdateStatusPageJSONRequestBody = DtoStatusPageUpdate

UpdateStatusPageJSONRequestBody defines body for UpdateStatusPage for application/json ContentType.

type UpdateStatusPageResponse added in v0.23.0

type UpdateStatusPageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DtoStatusPage
	JSON400      *ResponseProblem
	JSON401      *ResponseProblem
	JSON403      *ResponseProblem
	JSON404      *ResponseProblem
	JSON409      *ResponseProblem
}

func ParseUpdateStatusPageResponse added in v0.23.0

func ParseUpdateStatusPageResponse(rsp *http.Response) (*UpdateStatusPageResponse, error)

ParseUpdateStatusPageResponse parses an HTTP response from a UpdateStatusPageWithResponse call

func (UpdateStatusPageResponse) ContentType added in v0.23.0

func (r UpdateStatusPageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateStatusPageResponse) Status added in v0.23.0

func (r UpdateStatusPageResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateStatusPageResponse) StatusCode added in v0.23.0

func (r UpdateStatusPageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidationParams

type ValidationParams struct {
	// Allowed Allowed: oneOf.
	Allowed *[]string `json:"allowed,omitempty"`

	// Expected Expected: type, mismatch.
	Expected *string `json:"expected,omitempty"`

	// Field Field is the pointer of the other field: min and max compared with a
	// field, exclusive, dependsOn.
	Field *string `json:"field,omitempty"`

	// Max Max: range, max, maxLength, maxItems.
	Max *int `json:"max,omitempty"`

	// Min Min: range, min.
	Min *int `json:"min,omitempty"`

	// Unit Unit: maxLength.
	Unit *ValidationUnit `json:"unit,omitempty"`

	// Value Value: unsupported.
	Value *string `json:"value,omitempty"`
}

ValidationParams defines model for validation.Params.

type ValidationRule

type ValidationRule string

ValidationRule defines model for validation.Rule.

const (
	RuleDependsOn   ValidationRule = "dependsOn"
	RuleDuplicate   ValidationRule = "duplicate"
	RuleExclusive   ValidationRule = "exclusive"
	RuleFormat      ValidationRule = "format"
	RuleImmutable   ValidationRule = "immutable"
	RuleMax         ValidationRule = "max"
	RuleMaxItems    ValidationRule = "maxItems"
	RuleMaxLength   ValidationRule = "maxLength"
	RuleMin         ValidationRule = "min"
	RuleMismatch    ValidationRule = "mismatch"
	RuleNotAllowed  ValidationRule = "notAllowed"
	RuleOneOf       ValidationRule = "oneOf"
	RulePublic      ValidationRule = "public"
	RuleRange       ValidationRule = "range"
	RuleReference   ValidationRule = "reference"
	RuleRequired    ValidationRule = "required"
	RuleType        ValidationRule = "type"
	RuleUnique      ValidationRule = "unique"
	RuleUnknown     ValidationRule = "unknown"
	RuleUnsupported ValidationRule = "unsupported"
	RuleUnverified  ValidationRule = "unverified"
)

Defines values for ValidationRule.

func (ValidationRule) Valid

func (e ValidationRule) Valid() bool

Valid indicates whether the value is a known member of the ValidationRule enum.

type ValidationUnit

type ValidationUnit string

ValidationUnit defines model for validation.Unit.

const (
	UnitBytes      ValidationUnit = "bytes"
	UnitCharacters ValidationUnit = "characters"
)

Defines values for ValidationUnit.

func (ValidationUnit) Valid

func (e ValidationUnit) Valid() bool

Valid indicates whether the value is a known member of the ValidationUnit enum.

type ValidationViolation

type ValidationViolation struct {
	Detail  string            `json:"detail"`
	Params  *ValidationParams `json:"params,omitempty"`
	Pointer string            `json:"pointer"`
	Rule    ValidationRule    `json:"rule"`
}

ValidationViolation defines model for validation.Violation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL