legacy_alerts

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for legacy alerts API

func (*Client) GetAlertByID

func (a *Client) GetAlertByID(params *GetAlertByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAlertByIDOK, error)
GetAlertByID gets alert by ID

“evalMatches” data in the response is cached in the db when and only when the state of the alert changes (e.g. transitioning from “ok” to “alerting” state).

If data from one server triggers the alert first and, before that server is seen leaving alerting state, a second server also enters a state that would trigger the alert, the second server will not be visible in “evalMatches” data.

func (*Client) GetAlerts

func (a *Client) GetAlerts(params *GetAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAlertsOK, error)

GetAlerts gets legacy alerts

func (*Client) GetDashboardStates

func (a *Client) GetDashboardStates(params *GetDashboardStatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDashboardStatesOK, error)

GetDashboardStates gets alert states for a dashboard

func (*Client) PauseAlert

func (a *Client) PauseAlert(params *PauseAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PauseAlertOK, error)

PauseAlert pauses unpause alert by id

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TestAlert

func (a *Client) TestAlert(params *TestAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestAlertOK, error)

TestAlert tests alert

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAlertByID(params *GetAlertByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAlertByIDOK, error)

	GetAlerts(params *GetAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAlertsOK, error)

	GetDashboardStates(params *GetDashboardStatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDashboardStatesOK, error)

	PauseAlert(params *PauseAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PauseAlertOK, error)

	TestAlert(params *TestAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestAlertOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new legacy alerts API client.

type GetAlertByIDInternalServerError

type GetAlertByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetAlertByIDInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetAlertByIDInternalServerError

func NewGetAlertByIDInternalServerError() *GetAlertByIDInternalServerError

NewGetAlertByIDInternalServerError creates a GetAlertByIDInternalServerError with default headers values

func (*GetAlertByIDInternalServerError) Error

func (*GetAlertByIDInternalServerError) GetPayload

type GetAlertByIDOK

type GetAlertByIDOK struct {
	Payload *models.LegacyAlert
}

GetAlertByIDOK describes a response with status code 200, with default header values.

(empty)

func NewGetAlertByIDOK

func NewGetAlertByIDOK() *GetAlertByIDOK

NewGetAlertByIDOK creates a GetAlertByIDOK with default headers values

func (*GetAlertByIDOK) Error

func (o *GetAlertByIDOK) Error() string

func (*GetAlertByIDOK) GetPayload

func (o *GetAlertByIDOK) GetPayload() *models.LegacyAlert

type GetAlertByIDParams

type GetAlertByIDParams struct {

	// AlertID.
	AlertID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAlertByIDParams contains all the parameters to send to the API endpoint

for the get alert by ID operation.

Typically these are written to a http.Request.

func NewGetAlertByIDParams

func NewGetAlertByIDParams() *GetAlertByIDParams

NewGetAlertByIDParams creates a new GetAlertByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAlertByIDParamsWithContext

func NewGetAlertByIDParamsWithContext(ctx context.Context) *GetAlertByIDParams

NewGetAlertByIDParamsWithContext creates a new GetAlertByIDParams object with the ability to set a context for a request.

func NewGetAlertByIDParamsWithHTTPClient

func NewGetAlertByIDParamsWithHTTPClient(client *http.Client) *GetAlertByIDParams

NewGetAlertByIDParamsWithHTTPClient creates a new GetAlertByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertByIDParamsWithTimeout

func NewGetAlertByIDParamsWithTimeout(timeout time.Duration) *GetAlertByIDParams

NewGetAlertByIDParamsWithTimeout creates a new GetAlertByIDParams object with the ability to set a timeout on a request.

func (*GetAlertByIDParams) SetAlertID

func (o *GetAlertByIDParams) SetAlertID(alertID string)

SetAlertID adds the alertId to the get alert by ID params

func (*GetAlertByIDParams) SetContext

func (o *GetAlertByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get alert by ID params

func (*GetAlertByIDParams) SetDefaults

func (o *GetAlertByIDParams) SetDefaults()

SetDefaults hydrates default values in the get alert by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAlertByIDParams) SetHTTPClient

func (o *GetAlertByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get alert by ID params

func (*GetAlertByIDParams) SetTimeout

func (o *GetAlertByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get alert by ID params

func (*GetAlertByIDParams) WithAlertID

func (o *GetAlertByIDParams) WithAlertID(alertID string) *GetAlertByIDParams

WithAlertID adds the alertID to the get alert by ID params

func (*GetAlertByIDParams) WithContext

WithContext adds the context to the get alert by ID params

func (*GetAlertByIDParams) WithDefaults

func (o *GetAlertByIDParams) WithDefaults() *GetAlertByIDParams

WithDefaults hydrates default values in the get alert by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAlertByIDParams) WithHTTPClient

func (o *GetAlertByIDParams) WithHTTPClient(client *http.Client) *GetAlertByIDParams

WithHTTPClient adds the HTTPClient to the get alert by ID params

func (*GetAlertByIDParams) WithTimeout

func (o *GetAlertByIDParams) WithTimeout(timeout time.Duration) *GetAlertByIDParams

WithTimeout adds the timeout to the get alert by ID params

func (*GetAlertByIDParams) WriteToRequest

func (o *GetAlertByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAlertByIDReader

type GetAlertByIDReader struct {
	// contains filtered or unexported fields
}

GetAlertByIDReader is a Reader for the GetAlertByID structure.

func (*GetAlertByIDReader) ReadResponse

func (o *GetAlertByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAlertByIDUnauthorized

type GetAlertByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetAlertByIDUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetAlertByIDUnauthorized

func NewGetAlertByIDUnauthorized() *GetAlertByIDUnauthorized

NewGetAlertByIDUnauthorized creates a GetAlertByIDUnauthorized with default headers values

func (*GetAlertByIDUnauthorized) Error

func (o *GetAlertByIDUnauthorized) Error() string

func (*GetAlertByIDUnauthorized) GetPayload

type GetAlertsInternalServerError

type GetAlertsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetAlertsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetAlertsInternalServerError

func NewGetAlertsInternalServerError() *GetAlertsInternalServerError

NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values

func (*GetAlertsInternalServerError) Error

func (*GetAlertsInternalServerError) GetPayload

type GetAlertsOK

type GetAlertsOK struct {
	Payload []*models.AlertListItemDTO
}

GetAlertsOK describes a response with status code 200, with default header values.

(empty)

func NewGetAlertsOK

func NewGetAlertsOK() *GetAlertsOK

NewGetAlertsOK creates a GetAlertsOK with default headers values

func (*GetAlertsOK) Error

func (o *GetAlertsOK) Error() string

func (*GetAlertsOK) GetPayload

func (o *GetAlertsOK) GetPayload() []*models.AlertListItemDTO

type GetAlertsParams

type GetAlertsParams struct {

	/* DashboardID.

	   Limit response to alerts in specified dashboard(s). You can specify multiple dashboards.
	*/
	DashboardID []string

	/* DashboardQuery.

	   Limit response to alerts having a dashboard name like this value./ Limit response to alerts having a dashboard name like this value.
	*/
	DashboardQuery *string

	/* DashboardTag.

	   Limit response to alerts of dashboards with specified tags. To do an “AND” filtering with multiple tags, specify the tags parameter multiple times
	*/
	DashboardTag []string

	/* FolderID.

	   Limit response to alerts of dashboards in specified folder(s). You can specify multiple folders
	*/
	FolderID []string

	/* Limit.

	   Limit response to X number of alerts.

	   Format: int64
	*/
	Limit *int64

	/* PanelID.

	   Limit response to alert for a specified panel on a dashboard.

	   Format: int64
	*/
	PanelID *int64

	/* Query.

	   Limit response to alerts having a name like this value.
	*/
	Query *string

	/* State.

	   Return alerts with one or more of the following alert states
	*/
	State *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAlertsParams contains all the parameters to send to the API endpoint

for the get alerts operation.

Typically these are written to a http.Request.

func NewGetAlertsParams

func NewGetAlertsParams() *GetAlertsParams

NewGetAlertsParams creates a new GetAlertsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAlertsParamsWithContext

func NewGetAlertsParamsWithContext(ctx context.Context) *GetAlertsParams

NewGetAlertsParamsWithContext creates a new GetAlertsParams object with the ability to set a context for a request.

func NewGetAlertsParamsWithHTTPClient

func NewGetAlertsParamsWithHTTPClient(client *http.Client) *GetAlertsParams

NewGetAlertsParamsWithHTTPClient creates a new GetAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertsParamsWithTimeout

func NewGetAlertsParamsWithTimeout(timeout time.Duration) *GetAlertsParams

NewGetAlertsParamsWithTimeout creates a new GetAlertsParams object with the ability to set a timeout on a request.

func (*GetAlertsParams) SetContext

func (o *GetAlertsParams) SetContext(ctx context.Context)

SetContext adds the context to the get alerts params

func (*GetAlertsParams) SetDashboardID

func (o *GetAlertsParams) SetDashboardID(dashboardID []string)

SetDashboardID adds the dashboardId to the get alerts params

func (*GetAlertsParams) SetDashboardQuery

func (o *GetAlertsParams) SetDashboardQuery(dashboardQuery *string)

SetDashboardQuery adds the dashboardQuery to the get alerts params

func (*GetAlertsParams) SetDashboardTag

func (o *GetAlertsParams) SetDashboardTag(dashboardTag []string)

SetDashboardTag adds the dashboardTag to the get alerts params

func (*GetAlertsParams) SetDefaults

func (o *GetAlertsParams) SetDefaults()

SetDefaults hydrates default values in the get alerts params (not the query body).

All values with no default are reset to their zero value.

func (*GetAlertsParams) SetFolderID

func (o *GetAlertsParams) SetFolderID(folderID []string)

SetFolderID adds the folderId to the get alerts params

func (*GetAlertsParams) SetHTTPClient

func (o *GetAlertsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get alerts params

func (*GetAlertsParams) SetLimit

func (o *GetAlertsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get alerts params

func (*GetAlertsParams) SetPanelID

func (o *GetAlertsParams) SetPanelID(panelID *int64)

SetPanelID adds the panelId to the get alerts params

func (*GetAlertsParams) SetQuery

func (o *GetAlertsParams) SetQuery(query *string)

SetQuery adds the query to the get alerts params

func (*GetAlertsParams) SetState

func (o *GetAlertsParams) SetState(state *string)

SetState adds the state to the get alerts params

func (*GetAlertsParams) SetTimeout

func (o *GetAlertsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get alerts params

func (*GetAlertsParams) WithContext

func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams

WithContext adds the context to the get alerts params

func (*GetAlertsParams) WithDashboardID

func (o *GetAlertsParams) WithDashboardID(dashboardID []string) *GetAlertsParams

WithDashboardID adds the dashboardID to the get alerts params

func (*GetAlertsParams) WithDashboardQuery

func (o *GetAlertsParams) WithDashboardQuery(dashboardQuery *string) *GetAlertsParams

WithDashboardQuery adds the dashboardQuery to the get alerts params

func (*GetAlertsParams) WithDashboardTag

func (o *GetAlertsParams) WithDashboardTag(dashboardTag []string) *GetAlertsParams

WithDashboardTag adds the dashboardTag to the get alerts params

func (*GetAlertsParams) WithDefaults

func (o *GetAlertsParams) WithDefaults() *GetAlertsParams

WithDefaults hydrates default values in the get alerts params (not the query body).

All values with no default are reset to their zero value.

func (*GetAlertsParams) WithFolderID

func (o *GetAlertsParams) WithFolderID(folderID []string) *GetAlertsParams

WithFolderID adds the folderID to the get alerts params

func (*GetAlertsParams) WithHTTPClient

func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams

WithHTTPClient adds the HTTPClient to the get alerts params

func (*GetAlertsParams) WithLimit

func (o *GetAlertsParams) WithLimit(limit *int64) *GetAlertsParams

WithLimit adds the limit to the get alerts params

func (*GetAlertsParams) WithPanelID

func (o *GetAlertsParams) WithPanelID(panelID *int64) *GetAlertsParams

WithPanelID adds the panelID to the get alerts params

func (*GetAlertsParams) WithQuery

func (o *GetAlertsParams) WithQuery(query *string) *GetAlertsParams

WithQuery adds the query to the get alerts params

func (*GetAlertsParams) WithState

func (o *GetAlertsParams) WithState(state *string) *GetAlertsParams

WithState adds the state to the get alerts params

func (*GetAlertsParams) WithTimeout

func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams

WithTimeout adds the timeout to the get alerts params

func (*GetAlertsParams) WriteToRequest

func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAlertsReader

type GetAlertsReader struct {
	// contains filtered or unexported fields
}

GetAlertsReader is a Reader for the GetAlerts structure.

func (*GetAlertsReader) ReadResponse

func (o *GetAlertsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAlertsUnauthorized

type GetAlertsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetAlertsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetAlertsUnauthorized

func NewGetAlertsUnauthorized() *GetAlertsUnauthorized

NewGetAlertsUnauthorized creates a GetAlertsUnauthorized with default headers values

func (*GetAlertsUnauthorized) Error

func (o *GetAlertsUnauthorized) Error() string

func (*GetAlertsUnauthorized) GetPayload

type GetDashboardStatesBadRequest

type GetDashboardStatesBadRequest struct {
	Payload *models.ErrorResponseBody
}

GetDashboardStatesBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewGetDashboardStatesBadRequest

func NewGetDashboardStatesBadRequest() *GetDashboardStatesBadRequest

NewGetDashboardStatesBadRequest creates a GetDashboardStatesBadRequest with default headers values

func (*GetDashboardStatesBadRequest) Error

func (*GetDashboardStatesBadRequest) GetPayload

type GetDashboardStatesInternalServerError

type GetDashboardStatesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetDashboardStatesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetDashboardStatesInternalServerError

func NewGetDashboardStatesInternalServerError() *GetDashboardStatesInternalServerError

NewGetDashboardStatesInternalServerError creates a GetDashboardStatesInternalServerError with default headers values

func (*GetDashboardStatesInternalServerError) Error

func (*GetDashboardStatesInternalServerError) GetPayload

type GetDashboardStatesOK

type GetDashboardStatesOK struct {
	Payload []*models.AlertStateInfoDTO
}

GetDashboardStatesOK describes a response with status code 200, with default header values.

(empty)

func NewGetDashboardStatesOK

func NewGetDashboardStatesOK() *GetDashboardStatesOK

NewGetDashboardStatesOK creates a GetDashboardStatesOK with default headers values

func (*GetDashboardStatesOK) Error

func (o *GetDashboardStatesOK) Error() string

func (*GetDashboardStatesOK) GetPayload

func (o *GetDashboardStatesOK) GetPayload() []*models.AlertStateInfoDTO

type GetDashboardStatesParams

type GetDashboardStatesParams struct {

	// DashboardID.
	//
	// Format: int64
	DashboardID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDashboardStatesParams contains all the parameters to send to the API endpoint

for the get dashboard states operation.

Typically these are written to a http.Request.

func NewGetDashboardStatesParams

func NewGetDashboardStatesParams() *GetDashboardStatesParams

NewGetDashboardStatesParams creates a new GetDashboardStatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDashboardStatesParamsWithContext

func NewGetDashboardStatesParamsWithContext(ctx context.Context) *GetDashboardStatesParams

NewGetDashboardStatesParamsWithContext creates a new GetDashboardStatesParams object with the ability to set a context for a request.

func NewGetDashboardStatesParamsWithHTTPClient

func NewGetDashboardStatesParamsWithHTTPClient(client *http.Client) *GetDashboardStatesParams

NewGetDashboardStatesParamsWithHTTPClient creates a new GetDashboardStatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetDashboardStatesParamsWithTimeout

func NewGetDashboardStatesParamsWithTimeout(timeout time.Duration) *GetDashboardStatesParams

NewGetDashboardStatesParamsWithTimeout creates a new GetDashboardStatesParams object with the ability to set a timeout on a request.

func (*GetDashboardStatesParams) SetContext

func (o *GetDashboardStatesParams) SetContext(ctx context.Context)

SetContext adds the context to the get dashboard states params

func (*GetDashboardStatesParams) SetDashboardID

func (o *GetDashboardStatesParams) SetDashboardID(dashboardID int64)

SetDashboardID adds the dashboardId to the get dashboard states params

func (*GetDashboardStatesParams) SetDefaults

func (o *GetDashboardStatesParams) SetDefaults()

SetDefaults hydrates default values in the get dashboard states params (not the query body).

All values with no default are reset to their zero value.

func (*GetDashboardStatesParams) SetHTTPClient

func (o *GetDashboardStatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get dashboard states params

func (*GetDashboardStatesParams) SetTimeout

func (o *GetDashboardStatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get dashboard states params

func (*GetDashboardStatesParams) WithContext

WithContext adds the context to the get dashboard states params

func (*GetDashboardStatesParams) WithDashboardID

func (o *GetDashboardStatesParams) WithDashboardID(dashboardID int64) *GetDashboardStatesParams

WithDashboardID adds the dashboardID to the get dashboard states params

func (*GetDashboardStatesParams) WithDefaults

WithDefaults hydrates default values in the get dashboard states params (not the query body).

All values with no default are reset to their zero value.

func (*GetDashboardStatesParams) WithHTTPClient

func (o *GetDashboardStatesParams) WithHTTPClient(client *http.Client) *GetDashboardStatesParams

WithHTTPClient adds the HTTPClient to the get dashboard states params

func (*GetDashboardStatesParams) WithTimeout

WithTimeout adds the timeout to the get dashboard states params

func (*GetDashboardStatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDashboardStatesReader

type GetDashboardStatesReader struct {
	// contains filtered or unexported fields
}

GetDashboardStatesReader is a Reader for the GetDashboardStates structure.

func (*GetDashboardStatesReader) ReadResponse

func (o *GetDashboardStatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PauseAlertForbidden

type PauseAlertForbidden struct {
	Payload *models.ErrorResponseBody
}

PauseAlertForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPauseAlertForbidden

func NewPauseAlertForbidden() *PauseAlertForbidden

NewPauseAlertForbidden creates a PauseAlertForbidden with default headers values

func (*PauseAlertForbidden) Error

func (o *PauseAlertForbidden) Error() string

func (*PauseAlertForbidden) GetPayload

func (o *PauseAlertForbidden) GetPayload() *models.ErrorResponseBody

type PauseAlertInternalServerError

type PauseAlertInternalServerError struct {
	Payload *models.ErrorResponseBody
}

PauseAlertInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewPauseAlertInternalServerError

func NewPauseAlertInternalServerError() *PauseAlertInternalServerError

NewPauseAlertInternalServerError creates a PauseAlertInternalServerError with default headers values

func (*PauseAlertInternalServerError) Error

func (*PauseAlertInternalServerError) GetPayload

type PauseAlertNotFound

type PauseAlertNotFound struct {
	Payload *models.ErrorResponseBody
}

PauseAlertNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewPauseAlertNotFound

func NewPauseAlertNotFound() *PauseAlertNotFound

NewPauseAlertNotFound creates a PauseAlertNotFound with default headers values

func (*PauseAlertNotFound) Error

func (o *PauseAlertNotFound) Error() string

func (*PauseAlertNotFound) GetPayload

func (o *PauseAlertNotFound) GetPayload() *models.ErrorResponseBody

type PauseAlertOK

type PauseAlertOK struct {
	Payload *models.PauseAlertOKBody
}

PauseAlertOK describes a response with status code 200, with default header values.

(empty)

func NewPauseAlertOK

func NewPauseAlertOK() *PauseAlertOK

NewPauseAlertOK creates a PauseAlertOK with default headers values

func (*PauseAlertOK) Error

func (o *PauseAlertOK) Error() string

func (*PauseAlertOK) GetPayload

func (o *PauseAlertOK) GetPayload() *models.PauseAlertOKBody

type PauseAlertParams

type PauseAlertParams struct {

	// AlertID.
	AlertID string

	// Body.
	Body *models.PauseAlertCommand

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PauseAlertParams contains all the parameters to send to the API endpoint

for the pause alert operation.

Typically these are written to a http.Request.

func NewPauseAlertParams

func NewPauseAlertParams() *PauseAlertParams

NewPauseAlertParams creates a new PauseAlertParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPauseAlertParamsWithContext

func NewPauseAlertParamsWithContext(ctx context.Context) *PauseAlertParams

NewPauseAlertParamsWithContext creates a new PauseAlertParams object with the ability to set a context for a request.

func NewPauseAlertParamsWithHTTPClient

func NewPauseAlertParamsWithHTTPClient(client *http.Client) *PauseAlertParams

NewPauseAlertParamsWithHTTPClient creates a new PauseAlertParams object with the ability to set a custom HTTPClient for a request.

func NewPauseAlertParamsWithTimeout

func NewPauseAlertParamsWithTimeout(timeout time.Duration) *PauseAlertParams

NewPauseAlertParamsWithTimeout creates a new PauseAlertParams object with the ability to set a timeout on a request.

func (*PauseAlertParams) SetAlertID

func (o *PauseAlertParams) SetAlertID(alertID string)

SetAlertID adds the alertId to the pause alert params

func (*PauseAlertParams) SetBody

func (o *PauseAlertParams) SetBody(body *models.PauseAlertCommand)

SetBody adds the body to the pause alert params

func (*PauseAlertParams) SetContext

func (o *PauseAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the pause alert params

func (*PauseAlertParams) SetDefaults

func (o *PauseAlertParams) SetDefaults()

SetDefaults hydrates default values in the pause alert params (not the query body).

All values with no default are reset to their zero value.

func (*PauseAlertParams) SetHTTPClient

func (o *PauseAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the pause alert params

func (*PauseAlertParams) SetTimeout

func (o *PauseAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the pause alert params

func (*PauseAlertParams) WithAlertID

func (o *PauseAlertParams) WithAlertID(alertID string) *PauseAlertParams

WithAlertID adds the alertID to the pause alert params

func (*PauseAlertParams) WithBody

WithBody adds the body to the pause alert params

func (*PauseAlertParams) WithContext

func (o *PauseAlertParams) WithContext(ctx context.Context) *PauseAlertParams

WithContext adds the context to the pause alert params

func (*PauseAlertParams) WithDefaults

func (o *PauseAlertParams) WithDefaults() *PauseAlertParams

WithDefaults hydrates default values in the pause alert params (not the query body).

All values with no default are reset to their zero value.

func (*PauseAlertParams) WithHTTPClient

func (o *PauseAlertParams) WithHTTPClient(client *http.Client) *PauseAlertParams

WithHTTPClient adds the HTTPClient to the pause alert params

func (*PauseAlertParams) WithTimeout

func (o *PauseAlertParams) WithTimeout(timeout time.Duration) *PauseAlertParams

WithTimeout adds the timeout to the pause alert params

func (*PauseAlertParams) WriteToRequest

func (o *PauseAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PauseAlertReader

type PauseAlertReader struct {
	// contains filtered or unexported fields
}

PauseAlertReader is a Reader for the PauseAlert structure.

func (*PauseAlertReader) ReadResponse

func (o *PauseAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PauseAlertUnauthorized

type PauseAlertUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PauseAlertUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPauseAlertUnauthorized

func NewPauseAlertUnauthorized() *PauseAlertUnauthorized

NewPauseAlertUnauthorized creates a PauseAlertUnauthorized with default headers values

func (*PauseAlertUnauthorized) Error

func (o *PauseAlertUnauthorized) Error() string

func (*PauseAlertUnauthorized) GetPayload

type TestAlertBadRequest

type TestAlertBadRequest struct {
	Payload *models.ErrorResponseBody
}

TestAlertBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewTestAlertBadRequest

func NewTestAlertBadRequest() *TestAlertBadRequest

NewTestAlertBadRequest creates a TestAlertBadRequest with default headers values

func (*TestAlertBadRequest) Error

func (o *TestAlertBadRequest) Error() string

func (*TestAlertBadRequest) GetPayload

func (o *TestAlertBadRequest) GetPayload() *models.ErrorResponseBody

type TestAlertForbidden

type TestAlertForbidden struct {
	Payload *models.ErrorResponseBody
}

TestAlertForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewTestAlertForbidden

func NewTestAlertForbidden() *TestAlertForbidden

NewTestAlertForbidden creates a TestAlertForbidden with default headers values

func (*TestAlertForbidden) Error

func (o *TestAlertForbidden) Error() string

func (*TestAlertForbidden) GetPayload

func (o *TestAlertForbidden) GetPayload() *models.ErrorResponseBody

type TestAlertInternalServerError

type TestAlertInternalServerError struct {
	Payload *models.ErrorResponseBody
}

TestAlertInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewTestAlertInternalServerError

func NewTestAlertInternalServerError() *TestAlertInternalServerError

NewTestAlertInternalServerError creates a TestAlertInternalServerError with default headers values

func (*TestAlertInternalServerError) Error

func (*TestAlertInternalServerError) GetPayload

type TestAlertOK

type TestAlertOK struct {
	Payload *models.AlertTestResult
}

TestAlertOK describes a response with status code 200, with default header values.

(empty)

func NewTestAlertOK

func NewTestAlertOK() *TestAlertOK

NewTestAlertOK creates a TestAlertOK with default headers values

func (*TestAlertOK) Error

func (o *TestAlertOK) Error() string

func (*TestAlertOK) GetPayload

func (o *TestAlertOK) GetPayload() *models.AlertTestResult

type TestAlertParams

type TestAlertParams struct {

	// Body.
	Body *models.AlertTestCommand

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TestAlertParams contains all the parameters to send to the API endpoint

for the test alert operation.

Typically these are written to a http.Request.

func NewTestAlertParams

func NewTestAlertParams() *TestAlertParams

NewTestAlertParams creates a new TestAlertParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewTestAlertParamsWithContext

func NewTestAlertParamsWithContext(ctx context.Context) *TestAlertParams

NewTestAlertParamsWithContext creates a new TestAlertParams object with the ability to set a context for a request.

func NewTestAlertParamsWithHTTPClient

func NewTestAlertParamsWithHTTPClient(client *http.Client) *TestAlertParams

NewTestAlertParamsWithHTTPClient creates a new TestAlertParams object with the ability to set a custom HTTPClient for a request.

func NewTestAlertParamsWithTimeout

func NewTestAlertParamsWithTimeout(timeout time.Duration) *TestAlertParams

NewTestAlertParamsWithTimeout creates a new TestAlertParams object with the ability to set a timeout on a request.

func (*TestAlertParams) SetBody

func (o *TestAlertParams) SetBody(body *models.AlertTestCommand)

SetBody adds the body to the test alert params

func (*TestAlertParams) SetContext

func (o *TestAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the test alert params

func (*TestAlertParams) SetDefaults

func (o *TestAlertParams) SetDefaults()

SetDefaults hydrates default values in the test alert params (not the query body).

All values with no default are reset to their zero value.

func (*TestAlertParams) SetHTTPClient

func (o *TestAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the test alert params

func (*TestAlertParams) SetTimeout

func (o *TestAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the test alert params

func (*TestAlertParams) WithBody

WithBody adds the body to the test alert params

func (*TestAlertParams) WithContext

func (o *TestAlertParams) WithContext(ctx context.Context) *TestAlertParams

WithContext adds the context to the test alert params

func (*TestAlertParams) WithDefaults

func (o *TestAlertParams) WithDefaults() *TestAlertParams

WithDefaults hydrates default values in the test alert params (not the query body).

All values with no default are reset to their zero value.

func (*TestAlertParams) WithHTTPClient

func (o *TestAlertParams) WithHTTPClient(client *http.Client) *TestAlertParams

WithHTTPClient adds the HTTPClient to the test alert params

func (*TestAlertParams) WithTimeout

func (o *TestAlertParams) WithTimeout(timeout time.Duration) *TestAlertParams

WithTimeout adds the timeout to the test alert params

func (*TestAlertParams) WriteToRequest

func (o *TestAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type TestAlertReader

type TestAlertReader struct {
	// contains filtered or unexported fields
}

TestAlertReader is a Reader for the TestAlert structure.

func (*TestAlertReader) ReadResponse

func (o *TestAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type TestAlertUnprocessableEntity

type TestAlertUnprocessableEntity struct {
	Payload *models.ErrorResponseBody
}

TestAlertUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntityError

func NewTestAlertUnprocessableEntity

func NewTestAlertUnprocessableEntity() *TestAlertUnprocessableEntity

NewTestAlertUnprocessableEntity creates a TestAlertUnprocessableEntity with default headers values

func (*TestAlertUnprocessableEntity) Error

func (*TestAlertUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL