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 ¶
- func NewAcknowledgeIncidentRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewApplyMonitorBulkActionRequest(server string, body ApplyMonitorBulkActionJSONRequestBody) (*http.Request, error)
- func NewApplyMonitorBulkActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewConfirmAlertChannelVerificationRequest(server string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewConfirmAlertChannelVerificationRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAlertChannelRequest(server string, body CreateAlertChannelJSONRequestBody) (*http.Request, error)
- func NewCreateAlertChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateMonitorRequest(server string, body CreateMonitorJSONRequestBody) (*http.Request, error)
- func NewCreateMonitorRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetIncidentRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetIncidentSummaryRequest(server string) (*http.Request, error)
- func NewGetMonitorAlertsRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetMonitorAvailabilityRequest(server string, id openapi_types.UUID, params *GetMonitorAvailabilityParams) (*http.Request, error)
- func NewGetMonitorCertificateRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetMonitorStatsRequest(server string, id openapi_types.UUID, params *GetMonitorStatsParams) (*http.Request, error)
- func NewListAlertChannelDeliveriesRequest(server string, id openapi_types.UUID, params *ListAlertChannelDeliveriesParams) (*http.Request, error)
- func NewListAlertChannelsRequest(server string, params *ListAlertChannelsParams) (*http.Request, error)
- func NewListIncidentsRequest(server string, params *ListIncidentsParams) (*http.Request, error)
- func NewListMonitorResultsRequest(server string, id openapi_types.UUID, params *ListMonitorResultsParams) (*http.Request, error)
- func NewListMonitorStatusChangesRequest(server string, id openapi_types.UUID, params *ListMonitorStatusChangesParams) (*http.Request, error)
- func NewListMonitorsRequest(server string, params *ListMonitorsParams) (*http.Request, error)
- func NewPauseMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewResumeMonitorRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewRunMonitorCheckRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewSendAlertChannelVerificationRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewSetMonitorAlertsRequest(server string, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody) (*http.Request, error)
- func NewSetMonitorAlertsRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewTestAlertChannelRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewUpdateAlertChannelRequest(server string, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody) (*http.Request, error)
- func NewUpdateAlertChannelRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateMonitorRequest(server string, id openapi_types.UUID, body UpdateMonitorJSONRequestBody) (*http.Request, error)
- func NewUpdateMonitorRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- type AcknowledgeIncidentResponse
- type ApplyMonitorBulkActionJSONRequestBody
- type ApplyMonitorBulkActionResponse
- type Client
- func (c *Client) AcknowledgeIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ApplyMonitorBulkAction(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApplyMonitorBulkActionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConfirmAlertChannelVerification(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) ConfirmAlertChannelVerificationWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAlertChannel(ctx context.Context, body CreateAlertChannelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAlertChannelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateMonitorWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIncident(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIncidentSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorAlerts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorAvailability(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetMonitorCertificate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorStats(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, ...) (*http.Response, error)
- func (c *Client) ListAlertChannelDeliveries(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) ListAlertChannels(ctx context.Context, params *ListAlertChannelsParams, ...) (*http.Response, error)
- func (c *Client) ListIncidents(ctx context.Context, params *ListIncidentsParams, ...) (*http.Response, error)
- func (c *Client) ListMonitorResults(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, ...) (*http.Response, error)
- func (c *Client) ListMonitorStatusChanges(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PauseMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResumeMonitor(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RunMonitorCheck(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SendAlertChannelVerification(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetMonitorAlerts(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) SetMonitorAlertsWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TestAlertChannel(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAlertChannel(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateAlertChannelWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateMonitor(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateMonitorWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AcknowledgeIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*AcknowledgeIncidentResponse, error)
- func (c *ClientWithResponses) ApplyMonitorBulkActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApplyMonitorBulkActionResponse, error)
- func (c *ClientWithResponses) ApplyMonitorBulkActionWithResponse(ctx context.Context, body ApplyMonitorBulkActionJSONRequestBody, ...) (*ApplyMonitorBulkActionResponse, error)
- func (c *ClientWithResponses) ConfirmAlertChannelVerificationWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*ConfirmAlertChannelVerificationResponse, error)
- func (c *ClientWithResponses) ConfirmAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*ConfirmAlertChannelVerificationResponse, error)
- func (c *ClientWithResponses) CreateAlertChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAlertChannelResponse, error)
- func (c *ClientWithResponses) CreateAlertChannelWithResponse(ctx context.Context, body CreateAlertChannelJSONRequestBody, ...) (*CreateAlertChannelResponse, error)
- func (c *ClientWithResponses) CreateMonitorWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMonitorResponse, error)
- func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, ...) (*CreateMonitorResponse, error)
- func (c *ClientWithResponses) DeleteAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAlertChannelResponse, error)
- func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error)
- func (c *ClientWithResponses) GetAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAlertChannelResponse, error)
- func (c *ClientWithResponses) GetIncidentSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIncidentSummaryResponse, error)
- func (c *ClientWithResponses) GetIncidentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error)
- func (c *ClientWithResponses) GetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorAlertsResponse, error)
- func (c *ClientWithResponses) GetMonitorAvailabilityWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*GetMonitorAvailabilityResponse, error)
- func (c *ClientWithResponses) GetMonitorCertificateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorCertificateResponse, error)
- func (c *ClientWithResponses) GetMonitorStatsWithResponse(ctx context.Context, id openapi_types.UUID, params *GetMonitorStatsParams, ...) (*GetMonitorStatsResponse, error)
- func (c *ClientWithResponses) GetMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)
- func (c *ClientWithResponses) ListAlertChannelDeliveriesWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*ListAlertChannelDeliveriesResponse, error)
- func (c *ClientWithResponses) ListAlertChannelsWithResponse(ctx context.Context, params *ListAlertChannelsParams, ...) (*ListAlertChannelsResponse, error)
- func (c *ClientWithResponses) ListIncidentsWithResponse(ctx context.Context, params *ListIncidentsParams, ...) (*ListIncidentsResponse, error)
- func (c *ClientWithResponses) ListMonitorResultsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListMonitorResultsParams, ...) (*ListMonitorResultsResponse, error)
- func (c *ClientWithResponses) ListMonitorStatusChangesWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*ListMonitorStatusChangesResponse, error)
- func (c *ClientWithResponses) ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)
- func (c *ClientWithResponses) PauseMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)
- func (c *ClientWithResponses) ResumeMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)
- func (c *ClientWithResponses) RunMonitorCheckWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RunMonitorCheckResponse, error)
- func (c *ClientWithResponses) SendAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*SendAlertChannelVerificationResponse, error)
- func (c *ClientWithResponses) SetMonitorAlertsWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*SetMonitorAlertsResponse, error)
- func (c *ClientWithResponses) SetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*SetMonitorAlertsResponse, error)
- func (c *ClientWithResponses) TestAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestAlertChannelResponse, error)
- func (c *ClientWithResponses) UpdateAlertChannelWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateAlertChannelResponse, error)
- func (c *ClientWithResponses) UpdateAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateAlertChannelResponse, error)
- func (c *ClientWithResponses) UpdateMonitorWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateMonitorResponse, error)
- func (c *ClientWithResponses) UpdateMonitorWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, ...) (*UpdateMonitorResponse, error)
- type ClientWithResponsesInterface
- type ConfirmAlertChannelVerificationJSONRequestBody
- type ConfirmAlertChannelVerificationResponse
- type ConstantsErrorCode
- type ConstantsErrorReason
- type CreateAlertChannelJSONRequestBody
- type CreateAlertChannelResponse
- type CreateMonitorJSONRequestBody
- type CreateMonitorResponse
- type DeleteAlertChannelResponse
- type DeleteMonitorResponse
- type DtoAlertChannel
- type DtoAlertChannelCreate
- type DtoAlertChannelCreateKind
- type DtoAlertChannelKind
- type DtoAlertChannelSettings
- type DtoAlertChannelSettingsInput
- type DtoAlertChannelTestResult
- type DtoAlertChannelUpdate
- type DtoAlertChannelVerifyConfirm
- type DtoAlertChannelWithSecret
- type DtoAlertChannelWithSecretKind
- type DtoAvailability
- type DtoCertificate
- type DtoCertificateRenewal
- type DtoChainCertificate
- type DtoChannelDelivery
- type DtoChannelDeliveryEvent
- type DtoChannelDeliveryStatus
- type DtoCheckRegion
- type DtoCheckResult
- type DtoCheckResultSeverity
- type DtoCheckTimings
- type DtoConditionFacts
- type DtoDayAvailability
- type DtoDomainRegistration
- type DtoDomainRegistrationDnssec
- type DtoDomainRegistrationSource
- type DtoDomainSettings
- type DtoDomainSettingsInput
- type DtoExpiryWatch
- type DtoExpiryWatchInput
- type DtoHTTPHeader
- type DtoHTTPHeaderInput
- type DtoHTTPSettings
- type DtoHTTPSettingsInput
- type DtoHTTPSettingsInputKeywordMode
- type DtoHTTPSettingsInputMethod
- type DtoHistoryBeat
- type DtoHistoryBeatSeverity
- type DtoIncident
- type DtoIncidentAspect
- type DtoIncidentDelivery
- type DtoIncidentDeliveryEvent
- type DtoIncidentDeliveryStatus
- type DtoIncidentDetail
- type DtoIncidentDetailAspect
- type DtoIncidentDetailMonitorType
- type DtoIncidentDetailMonitorVariant
- type DtoIncidentDetailPeakSeverity
- type DtoIncidentDetailSeverity
- type DtoIncidentDetailStatus
- type DtoIncidentEvent
- type DtoIncidentEventType
- type DtoIncidentMonitorType
- type DtoIncidentMonitorVariant
- type DtoIncidentOpenCounts
- type DtoIncidentPeakSeverity
- type DtoIncidentSeverity
- type DtoIncidentStatus
- type DtoIncidentSummary
- type DtoLastCheck
- type DtoLastCheckSeverity
- type DtoMonitor
- type DtoMonitorAlertRoute
- type DtoMonitorAlertRouteEvents
- type DtoMonitorAlerts
- type DtoMonitorAlertsApplicableEvents
- type DtoMonitorAlertsUpdate
- type DtoMonitorAspect
- type DtoMonitorAspectAspect
- type DtoMonitorAspectStatus
- type DtoMonitorBulkItem
- type DtoMonitorBulkRequest
- type DtoMonitorBulkRequestAction
- type DtoMonitorBulkResult
- type DtoMonitorBulkResultAction
- type DtoMonitorCertificate
- type DtoMonitorCertificateSeverity
- type DtoMonitorCondition
- type DtoMonitorCreate
- type DtoMonitorCreateType
- type DtoMonitorEvent
- type DtoMonitorEventAspect
- type DtoMonitorEventType
- type DtoMonitorOverallStatus
- type DtoMonitorStats
- type DtoMonitorStatsGranularity
- type DtoMonitorStatus
- type DtoMonitorType
- type DtoMonitorUpdate
- type DtoMonitorVariant
- type DtoRenewedCertificate
- type DtoSSLSettings
- type DtoSSLSettingsInput
- type DtoStatsBucket
- type DtoStatusChange
- type DtoStatusChangeFrom
- type DtoStatusChangeTo
- type DtoThresholdAlert
- type DtoWindowSummary
- type GetAlertChannelResponse
- type GetIncidentResponse
- type GetIncidentSummaryResponse
- type GetMonitorAlertsResponse
- type GetMonitorAvailabilityParams
- type GetMonitorAvailabilityResponse
- type GetMonitorCertificateResponse
- type GetMonitorResponse
- type GetMonitorStatsParams
- type GetMonitorStatsParamsRange
- type GetMonitorStatsResponse
- type HttpRequestDoer
- type ListAlertChannelDeliveriesParams
- type ListAlertChannelDeliveriesParamsStatus
- type ListAlertChannelDeliveriesResponse
- type ListAlertChannelsParams
- type ListAlertChannelsResponse
- type ListIncidentsParams
- type ListIncidentsParamsAcknowledged
- type ListIncidentsParamsAspect
- type ListIncidentsParamsSeverity
- type ListIncidentsParamsStatus
- type ListIncidentsResponse
- type ListMonitorResultsParams
- type ListMonitorResultsResponse
- type ListMonitorStatusChangesParams
- type ListMonitorStatusChangesResponse
- type ListMonitorsParams
- type ListMonitorsParamsInclude
- type ListMonitorsParamsSort
- type ListMonitorsParamsStatus
- type ListMonitorsParamsType
- type ListMonitorsResponse
- type PauseMonitorResponse
- type RequestEditorFn
- type ResponseAPIResponsePaginationCursors
- type ResponseAPIResponsePaginationMeta
- type ResponseAPIResponseWithPagination
- type ResponseProblem
- type ResumeMonitorResponse
- type RunMonitorCheckResponse
- type SendAlertChannelVerificationResponse
- type SetMonitorAlertsJSONRequestBody
- type SetMonitorAlertsResponse
- type TestAlertChannelResponse
- type UpdateAlertChannelJSONRequestBody
- type UpdateAlertChannelResponse
- type UpdateMonitorJSONRequestBody
- type UpdateMonitorResponse
- type ValidationParams
- type ValidationRule
- type ValidationUnit
- type ValidationViolation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAcknowledgeIncidentRequest ¶
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 NewDeleteAlertChannelRequest ¶
NewDeleteAlertChannelRequest generates requests for DeleteAlertChannel
func NewDeleteMonitorRequest ¶
NewDeleteMonitorRequest generates requests for DeleteMonitor
func NewGetAlertChannelRequest ¶
NewGetAlertChannelRequest generates requests for GetAlertChannel
func NewGetIncidentRequest ¶
NewGetIncidentRequest generates requests for GetIncident
func NewGetIncidentSummaryRequest ¶
NewGetIncidentSummaryRequest generates requests for GetIncidentSummary
func NewGetMonitorAlertsRequest ¶
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 ¶
NewGetMonitorCertificateRequest generates requests for GetMonitorCertificate
func NewGetMonitorRequest ¶
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 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 NewPauseMonitorRequest ¶
NewPauseMonitorRequest generates requests for PauseMonitor
func NewResumeMonitorRequest ¶
NewResumeMonitorRequest generates requests for ResumeMonitor
func NewRunMonitorCheckRequest ¶
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 NewTestAlertChannelRequest ¶
NewTestAlertChannelRequest generates requests for TestAlertChannel
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
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 ¶
func (r AcknowledgeIncidentResponse) Status() string
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 ¶
func (r ApplyMonitorBulkActionResponse) Status() string
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 (*Client) ConfirmAlertChannelVerification ¶
func (c *Client) ConfirmAlertChannelVerification(ctx context.Context, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ConfirmAlertChannelVerificationWithBody ¶
func (*Client) CreateAlertChannel ¶
func (c *Client) CreateAlertChannel(ctx context.Context, body CreateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAlertChannelWithBody ¶
func (*Client) CreateMonitor ¶
func (c *Client) CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMonitorWithBody ¶
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) 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 (*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) 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) PauseMonitor ¶
func (c *Client) PauseMonitor(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 (*Client) TestAlertChannel ¶
func (c *Client) TestAlertChannel(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 (*Client) UpdateMonitor ¶
func (c *Client) UpdateMonitor(ctx context.Context, id openapi_types.UUID, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMonitorWithBody ¶
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)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) ConfirmAlertChannelVerificationWithResponse ¶
func (c *ClientWithResponses) ConfirmAlertChannelVerificationWithResponse(ctx context.Context, id openapi_types.UUID, body ConfirmAlertChannelVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmAlertChannelVerificationResponse, error)
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) 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) 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) 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) PauseMonitorWithResponse ¶
func (c *ClientWithResponses) PauseMonitorWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)
PauseMonitorWithResponse request returning *PauseMonitorResponse
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 (c *ClientWithResponses) SetMonitorAlertsWithResponse(ctx context.Context, id openapi_types.UUID, body SetMonitorAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMonitorAlertsResponse, error)
func (*ClientWithResponses) TestAlertChannelWithResponse ¶
func (c *ClientWithResponses) TestAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestAlertChannelResponse, error)
TestAlertChannelWithResponse request returning *TestAlertChannelResponse
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 (c *ClientWithResponses) UpdateAlertChannelWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAlertChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertChannelResponse, error)
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)
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)
}
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 ¶
func (r ConfirmAlertChannelVerificationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmAlertChannelVerificationResponse) Status ¶
func (r ConfirmAlertChannelVerificationResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmAlertChannelVerificationResponse) StatusCode ¶
func (r ConfirmAlertChannelVerificationResponse) StatusCode() int
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" 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" ErrorReasonCodeExpired ConstantsErrorReason = "CODE_EXPIRED" ErrorReasonCodeRecentlySent ConstantsErrorReason = "CODE_RECENTLY_SENT" ErrorReasonContactUnverified ConstantsErrorReason = "CONTACT_UNVERIFIED" ErrorReasonDeliveryRejected ConstantsErrorReason = "DELIVERY_REJECTED" ErrorReasonInsufficientScope ConstantsErrorReason = "INSUFFICIENT_SCOPE" ErrorReasonMissingOrganizationID ConstantsErrorReason = "MISSING_ORGANIZATION_ID" ErrorReasonMonitorLimit ConstantsErrorReason = "MONITOR_LIMIT" ErrorReasonNothingToVerify ConstantsErrorReason = "NOTHING_TO_VERIFY" 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 ¶
func (r CreateAlertChannelResponse) Status() string
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 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 ¶
func (r DeleteAlertChannelResponse) Status() string
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 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 ¶
func (e DtoAlertChannelWithSecretKind) Valid() bool
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 ¶
func (e DtoDomainRegistrationDnssec) Valid() bool
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 ¶
func (e DtoDomainRegistrationSource) Valid() bool
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 ¶
func (e DtoHTTPSettingsInputKeywordMode) Valid() bool
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 ¶
func (e DtoIncidentDetailMonitorType) Valid() bool
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 ¶
func (e DtoIncidentDetailMonitorVariant) Valid() bool
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 ¶
func (e DtoIncidentDetailPeakSeverity) Valid() bool
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 ¶
func (e DtoMonitorAlertsApplicableEvents) Valid() bool
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 ¶
func (e DtoMonitorBulkRequestAction) Valid() bool
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 ¶
func (e DtoMonitorCertificateSeverity) Valid() bool
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 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 DtoThresholdAlert ¶
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 ¶
func (r GetIncidentSummaryResponse) Status() string
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 ¶
func (r GetMonitorAvailabilityResponse) Status() string
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 ¶
func (r GetMonitorCertificateResponse) Status() string
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.
const ( N24h GetMonitorStatsParamsRange = "24h" N30d GetMonitorStatsParamsRange = "30d" N7d GetMonitorStatsParamsRange = "7d" N90d GetMonitorStatsParamsRange = "90d" )
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 HttpRequestDoer ¶
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 ¶
func (e ListAlertChannelDeliveriesParamsStatus) Valid() bool
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 ¶
func (r ListAlertChannelDeliveriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAlertChannelDeliveriesResponse) Status ¶
func (r ListAlertChannelDeliveriesResponse) Status() string
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 ¶
func (e ListIncidentsParamsAcknowledged) Valid() bool
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 ¶
func (e ListIncidentsParamsSeverity) Valid() bool
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 ¶
func (r ListMonitorResultsResponse) Status() string
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 ¶
func (r ListMonitorStatusChangesResponse) Status() string
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 ( Domain ListMonitorsParamsType = "domain" Http ListMonitorsParamsType = "http" Ssl 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 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 RequestEditorFn ¶
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 ¶
func (r SendAlertChannelVerificationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SendAlertChannelVerificationResponse) Status ¶
func (r SendAlertChannelVerificationResponse) Status() string
Status returns HTTPResponse.Status
func (SendAlertChannelVerificationResponse) StatusCode ¶
func (r SendAlertChannelVerificationResponse) StatusCode() int
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 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 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 ¶
func (r UpdateAlertChannelResponse) Status() string
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 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.