alert_notifier

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: ISC Imports: 10 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 alert notifier API

func (*Client) GetAlertNotifiers

func (a *Client) GetAlertNotifiers(params *GetAlertNotifiersParams, opts ...ClientOption) (*GetAlertNotifiersOK, error)

GetAlertNotifiers get alert notifiers API

func (*Client) GetAlertNotifiersConnection

func (a *Client) GetAlertNotifiersConnection(params *GetAlertNotifiersConnectionParams, opts ...ClientOption) (*GetAlertNotifiersConnectionOK, error)

GetAlertNotifiersConnection get alert notifiers connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAlertNotifier

func (a *Client) UpdateAlertNotifier(params *UpdateAlertNotifierParams, opts ...ClientOption) (*UpdateAlertNotifierOK, error)

UpdateAlertNotifier update alert notifier API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAlertNotifiers(params *GetAlertNotifiersParams, opts ...ClientOption) (*GetAlertNotifiersOK, error)

	GetAlertNotifiersConnection(params *GetAlertNotifiersConnectionParams, opts ...ClientOption) (*GetAlertNotifiersConnectionOK, error)

	UpdateAlertNotifier(params *UpdateAlertNotifierParams, opts ...ClientOption) (*UpdateAlertNotifierOK, 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 alert notifier API client.

type GetAlertNotifiersBadRequest

type GetAlertNotifiersBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetAlertNotifiersBadRequest

func NewGetAlertNotifiersBadRequest() *GetAlertNotifiersBadRequest

NewGetAlertNotifiersBadRequest creates a GetAlertNotifiersBadRequest with default headers values

func (*GetAlertNotifiersBadRequest) Error

func (*GetAlertNotifiersBadRequest) GetPayload

func (o *GetAlertNotifiersBadRequest) GetPayload() *models.ErrorBody

type GetAlertNotifiersConnectionBadRequest

type GetAlertNotifiersConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetAlertNotifiersConnectionBadRequest

func NewGetAlertNotifiersConnectionBadRequest() *GetAlertNotifiersConnectionBadRequest

NewGetAlertNotifiersConnectionBadRequest creates a GetAlertNotifiersConnectionBadRequest with default headers values

func (*GetAlertNotifiersConnectionBadRequest) Error

func (*GetAlertNotifiersConnectionBadRequest) GetPayload

type GetAlertNotifiersConnectionInternalServerError

type GetAlertNotifiersConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertNotifiersConnectionInternalServerError

func NewGetAlertNotifiersConnectionInternalServerError() *GetAlertNotifiersConnectionInternalServerError

NewGetAlertNotifiersConnectionInternalServerError creates a GetAlertNotifiersConnectionInternalServerError with default headers values

func (*GetAlertNotifiersConnectionInternalServerError) Error

func (*GetAlertNotifiersConnectionInternalServerError) GetPayload

type GetAlertNotifiersConnectionNotFound

type GetAlertNotifiersConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertNotifiersConnectionNotFound

func NewGetAlertNotifiersConnectionNotFound() *GetAlertNotifiersConnectionNotFound

NewGetAlertNotifiersConnectionNotFound creates a GetAlertNotifiersConnectionNotFound with default headers values

func (*GetAlertNotifiersConnectionNotFound) Error

func (*GetAlertNotifiersConnectionNotFound) GetPayload

type GetAlertNotifiersConnectionOK

type GetAlertNotifiersConnectionOK struct {
	XTowerRequestID string

	Payload *models.AlertNotifierConnection
}
GetAlertNotifiersConnectionOK describes a response with status code 200, with default header values.

GetAlertNotifiersConnectionOK get alert notifiers connection o k

func NewGetAlertNotifiersConnectionOK

func NewGetAlertNotifiersConnectionOK() *GetAlertNotifiersConnectionOK

NewGetAlertNotifiersConnectionOK creates a GetAlertNotifiersConnectionOK with default headers values

func (*GetAlertNotifiersConnectionOK) Error

func (*GetAlertNotifiersConnectionOK) GetPayload

type GetAlertNotifiersConnectionParams

type GetAlertNotifiersConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetAlertNotifiersConnectionRequestBody

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

GetAlertNotifiersConnectionParams contains all the parameters to send to the API endpoint

for the get alert notifiers connection operation.

Typically these are written to a http.Request.

func NewGetAlertNotifiersConnectionParams

func NewGetAlertNotifiersConnectionParams() *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParams creates a new GetAlertNotifiersConnectionParams 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 NewGetAlertNotifiersConnectionParamsWithContext

func NewGetAlertNotifiersConnectionParamsWithContext(ctx context.Context) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithContext creates a new GetAlertNotifiersConnectionParams object with the ability to set a context for a request.

func NewGetAlertNotifiersConnectionParamsWithHTTPClient

func NewGetAlertNotifiersConnectionParamsWithHTTPClient(client *http.Client) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithHTTPClient creates a new GetAlertNotifiersConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertNotifiersConnectionParamsWithTimeout

func NewGetAlertNotifiersConnectionParamsWithTimeout(timeout time.Duration) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithTimeout creates a new GetAlertNotifiersConnectionParams object with the ability to set a timeout on a request.

func (*GetAlertNotifiersConnectionParams) SetContentLanguage

func (o *GetAlertNotifiersConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetContext

SetContext adds the context to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetDefaults

func (o *GetAlertNotifiersConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get alert notifiers connection params (not the query body).

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

func (*GetAlertNotifiersConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithContentLanguage

func (o *GetAlertNotifiersConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertNotifiersConnectionParams

WithContentLanguage adds the contentLanguage to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithContext

WithContext adds the context to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithDefaults

WithDefaults hydrates default values in the get alert notifiers connection params (not the query body).

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

func (*GetAlertNotifiersConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithTimeout

WithTimeout adds the timeout to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAlertNotifiersConnectionReader

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

GetAlertNotifiersConnectionReader is a Reader for the GetAlertNotifiersConnection structure.

func (*GetAlertNotifiersConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAlertNotifiersInternalServerError

type GetAlertNotifiersInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertNotifiersInternalServerError

func NewGetAlertNotifiersInternalServerError() *GetAlertNotifiersInternalServerError

NewGetAlertNotifiersInternalServerError creates a GetAlertNotifiersInternalServerError with default headers values

func (*GetAlertNotifiersInternalServerError) Error

func (*GetAlertNotifiersInternalServerError) GetPayload

type GetAlertNotifiersNotFound

type GetAlertNotifiersNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetAlertNotifiersNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertNotifiersNotFound

func NewGetAlertNotifiersNotFound() *GetAlertNotifiersNotFound

NewGetAlertNotifiersNotFound creates a GetAlertNotifiersNotFound with default headers values

func (*GetAlertNotifiersNotFound) Error

func (o *GetAlertNotifiersNotFound) Error() string

func (*GetAlertNotifiersNotFound) GetPayload

func (o *GetAlertNotifiersNotFound) GetPayload() *models.ErrorBody

type GetAlertNotifiersOK

type GetAlertNotifiersOK struct {
	XTowerRequestID string

	Payload []*models.AlertNotifier
}
GetAlertNotifiersOK describes a response with status code 200, with default header values.

GetAlertNotifiersOK get alert notifiers o k

func NewGetAlertNotifiersOK

func NewGetAlertNotifiersOK() *GetAlertNotifiersOK

NewGetAlertNotifiersOK creates a GetAlertNotifiersOK with default headers values

func (*GetAlertNotifiersOK) Error

func (o *GetAlertNotifiersOK) Error() string

func (*GetAlertNotifiersOK) GetPayload

func (o *GetAlertNotifiersOK) GetPayload() []*models.AlertNotifier

type GetAlertNotifiersParams

type GetAlertNotifiersParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetAlertNotifiersRequestBody

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

GetAlertNotifiersParams contains all the parameters to send to the API endpoint

for the get alert notifiers operation.

Typically these are written to a http.Request.

func NewGetAlertNotifiersParams

func NewGetAlertNotifiersParams() *GetAlertNotifiersParams

NewGetAlertNotifiersParams creates a new GetAlertNotifiersParams 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 NewGetAlertNotifiersParamsWithContext

func NewGetAlertNotifiersParamsWithContext(ctx context.Context) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithContext creates a new GetAlertNotifiersParams object with the ability to set a context for a request.

func NewGetAlertNotifiersParamsWithHTTPClient

func NewGetAlertNotifiersParamsWithHTTPClient(client *http.Client) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithHTTPClient creates a new GetAlertNotifiersParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertNotifiersParamsWithTimeout

func NewGetAlertNotifiersParamsWithTimeout(timeout time.Duration) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithTimeout creates a new GetAlertNotifiersParams object with the ability to set a timeout on a request.

func (*GetAlertNotifiersParams) SetContentLanguage

func (o *GetAlertNotifiersParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get alert notifiers params

func (*GetAlertNotifiersParams) SetContext

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

SetContext adds the context to the get alert notifiers params

func (*GetAlertNotifiersParams) SetDefaults

func (o *GetAlertNotifiersParams) SetDefaults()

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

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

func (*GetAlertNotifiersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alert notifiers params

func (*GetAlertNotifiersParams) SetRequestBody

func (o *GetAlertNotifiersParams) SetRequestBody(requestBody *models.GetAlertNotifiersRequestBody)

SetRequestBody adds the requestBody to the get alert notifiers params

func (*GetAlertNotifiersParams) SetTimeout

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

SetTimeout adds the timeout to the get alert notifiers params

func (*GetAlertNotifiersParams) WithContentLanguage

func (o *GetAlertNotifiersParams) WithContentLanguage(contentLanguage *string) *GetAlertNotifiersParams

WithContentLanguage adds the contentLanguage to the get alert notifiers params

func (*GetAlertNotifiersParams) WithContext

WithContext adds the context to the get alert notifiers params

func (*GetAlertNotifiersParams) WithDefaults

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

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

func (*GetAlertNotifiersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get alert notifiers params

func (*GetAlertNotifiersParams) WithRequestBody

WithRequestBody adds the requestBody to the get alert notifiers params

func (*GetAlertNotifiersParams) WithTimeout

WithTimeout adds the timeout to the get alert notifiers params

func (*GetAlertNotifiersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAlertNotifiersReader

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

GetAlertNotifiersReader is a Reader for the GetAlertNotifiers structure.

func (*GetAlertNotifiersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAlertNotifierBadRequest

type UpdateAlertNotifierBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateAlertNotifierBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateAlertNotifierBadRequest

func NewUpdateAlertNotifierBadRequest() *UpdateAlertNotifierBadRequest

NewUpdateAlertNotifierBadRequest creates a UpdateAlertNotifierBadRequest with default headers values

func (*UpdateAlertNotifierBadRequest) Error

func (*UpdateAlertNotifierBadRequest) GetPayload

type UpdateAlertNotifierInternalServerError

type UpdateAlertNotifierInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateAlertNotifierInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateAlertNotifierInternalServerError

func NewUpdateAlertNotifierInternalServerError() *UpdateAlertNotifierInternalServerError

NewUpdateAlertNotifierInternalServerError creates a UpdateAlertNotifierInternalServerError with default headers values

func (*UpdateAlertNotifierInternalServerError) Error

func (*UpdateAlertNotifierInternalServerError) GetPayload

type UpdateAlertNotifierNotFound

type UpdateAlertNotifierNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateAlertNotifierNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateAlertNotifierNotFound

func NewUpdateAlertNotifierNotFound() *UpdateAlertNotifierNotFound

NewUpdateAlertNotifierNotFound creates a UpdateAlertNotifierNotFound with default headers values

func (*UpdateAlertNotifierNotFound) Error

func (*UpdateAlertNotifierNotFound) GetPayload

func (o *UpdateAlertNotifierNotFound) GetPayload() *models.ErrorBody

type UpdateAlertNotifierOK

type UpdateAlertNotifierOK struct {
	XTowerRequestID string

	Payload *models.WithTaskAlertNotifier
}
UpdateAlertNotifierOK describes a response with status code 200, with default header values.

UpdateAlertNotifierOK update alert notifier o k

func NewUpdateAlertNotifierOK

func NewUpdateAlertNotifierOK() *UpdateAlertNotifierOK

NewUpdateAlertNotifierOK creates a UpdateAlertNotifierOK with default headers values

func (*UpdateAlertNotifierOK) Error

func (o *UpdateAlertNotifierOK) Error() string

func (*UpdateAlertNotifierOK) GetPayload

type UpdateAlertNotifierParams

type UpdateAlertNotifierParams struct {

	// RequestBody.
	RequestBody *models.AlertNotifierUpdationParams

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

UpdateAlertNotifierParams contains all the parameters to send to the API endpoint

for the update alert notifier operation.

Typically these are written to a http.Request.

func NewUpdateAlertNotifierParams

func NewUpdateAlertNotifierParams() *UpdateAlertNotifierParams

NewUpdateAlertNotifierParams creates a new UpdateAlertNotifierParams 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 NewUpdateAlertNotifierParamsWithContext

func NewUpdateAlertNotifierParamsWithContext(ctx context.Context) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithContext creates a new UpdateAlertNotifierParams object with the ability to set a context for a request.

func NewUpdateAlertNotifierParamsWithHTTPClient

func NewUpdateAlertNotifierParamsWithHTTPClient(client *http.Client) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithHTTPClient creates a new UpdateAlertNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAlertNotifierParamsWithTimeout

func NewUpdateAlertNotifierParamsWithTimeout(timeout time.Duration) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithTimeout creates a new UpdateAlertNotifierParams object with the ability to set a timeout on a request.

func (*UpdateAlertNotifierParams) SetContext

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

SetContext adds the context to the update alert notifier params

func (*UpdateAlertNotifierParams) SetDefaults

func (o *UpdateAlertNotifierParams) SetDefaults()

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

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

func (*UpdateAlertNotifierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update alert notifier params

func (*UpdateAlertNotifierParams) SetRequestBody

func (o *UpdateAlertNotifierParams) SetRequestBody(requestBody *models.AlertNotifierUpdationParams)

SetRequestBody adds the requestBody to the update alert notifier params

func (*UpdateAlertNotifierParams) SetTimeout

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

SetTimeout adds the timeout to the update alert notifier params

func (*UpdateAlertNotifierParams) WithContext

WithContext adds the context to the update alert notifier params

func (*UpdateAlertNotifierParams) WithDefaults

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

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

func (*UpdateAlertNotifierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update alert notifier params

func (*UpdateAlertNotifierParams) WithRequestBody

WithRequestBody adds the requestBody to the update alert notifier params

func (*UpdateAlertNotifierParams) WithTimeout

WithTimeout adds the timeout to the update alert notifier params

func (*UpdateAlertNotifierParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAlertNotifierReader

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

UpdateAlertNotifierReader is a Reader for the UpdateAlertNotifier structure.

func (*UpdateAlertNotifierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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