alert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 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 API

func (*Client) GetAlerts

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

GetAlerts get alerts API

func (*Client) GetAlertsConnection

func (a *Client) GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, error)

GetAlertsConnection get alerts connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error)

	GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, 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 API client.

type GetAlertsBadRequest

type GetAlertsBadRequest struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Bad request

func NewGetAlertsBadRequest

func NewGetAlertsBadRequest() *GetAlertsBadRequest

NewGetAlertsBadRequest creates a GetAlertsBadRequest with default headers values

func (*GetAlertsBadRequest) Error

func (o *GetAlertsBadRequest) Error() string

func (*GetAlertsBadRequest) GetPayload

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

type GetAlertsConnectionBadRequest

type GetAlertsConnectionBadRequest struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Bad request

func NewGetAlertsConnectionBadRequest

func NewGetAlertsConnectionBadRequest() *GetAlertsConnectionBadRequest

NewGetAlertsConnectionBadRequest creates a GetAlertsConnectionBadRequest with default headers values

func (*GetAlertsConnectionBadRequest) Error

func (*GetAlertsConnectionBadRequest) GetPayload

type GetAlertsConnectionInternalServerError

type GetAlertsConnectionInternalServerError struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Server error

func NewGetAlertsConnectionInternalServerError

func NewGetAlertsConnectionInternalServerError() *GetAlertsConnectionInternalServerError

NewGetAlertsConnectionInternalServerError creates a GetAlertsConnectionInternalServerError with default headers values

func (*GetAlertsConnectionInternalServerError) Error

func (*GetAlertsConnectionInternalServerError) GetPayload

type GetAlertsConnectionNotFound

type GetAlertsConnectionNotFound struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Not found

func NewGetAlertsConnectionNotFound

func NewGetAlertsConnectionNotFound() *GetAlertsConnectionNotFound

NewGetAlertsConnectionNotFound creates a GetAlertsConnectionNotFound with default headers values

func (*GetAlertsConnectionNotFound) Error

func (*GetAlertsConnectionNotFound) GetPayload

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

type GetAlertsConnectionOK

type GetAlertsConnectionOK struct {
	XAocRequestID string

	Payload *models.AlertConnection
}

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

GetAlertsConnectionOK get alerts connection o k

func NewGetAlertsConnectionOK

func NewGetAlertsConnectionOK() *GetAlertsConnectionOK

NewGetAlertsConnectionOK creates a GetAlertsConnectionOK with default headers values

func (*GetAlertsConnectionOK) Error

func (o *GetAlertsConnectionOK) Error() string

func (*GetAlertsConnectionOK) GetPayload

func (o *GetAlertsConnectionOK) GetPayload() *models.AlertConnection

type GetAlertsConnectionParams

type GetAlertsConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetAlertsConnectionRequestBody

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

GetAlertsConnectionParams contains all the parameters to send to the API endpoint

for the get alerts connection operation.

Typically these are written to a http.Request.

func NewGetAlertsConnectionParams

func NewGetAlertsConnectionParams() *GetAlertsConnectionParams

NewGetAlertsConnectionParams creates a new GetAlertsConnectionParams 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 NewGetAlertsConnectionParamsWithContext

func NewGetAlertsConnectionParamsWithContext(ctx context.Context) *GetAlertsConnectionParams

NewGetAlertsConnectionParamsWithContext creates a new GetAlertsConnectionParams object with the ability to set a context for a request.

func NewGetAlertsConnectionParamsWithHTTPClient

func NewGetAlertsConnectionParamsWithHTTPClient(client *http.Client) *GetAlertsConnectionParams

NewGetAlertsConnectionParamsWithHTTPClient creates a new GetAlertsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertsConnectionParamsWithTimeout

func NewGetAlertsConnectionParamsWithTimeout(timeout time.Duration) *GetAlertsConnectionParams

NewGetAlertsConnectionParamsWithTimeout creates a new GetAlertsConnectionParams object with the ability to set a timeout on a request.

func (*GetAlertsConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get alerts connection params

func (*GetAlertsConnectionParams) SetContext

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

SetContext adds the context to the get alerts connection params

func (*GetAlertsConnectionParams) SetDefaults

func (o *GetAlertsConnectionParams) SetDefaults()

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

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

func (*GetAlertsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alerts connection params

func (*GetAlertsConnectionParams) SetRequestBody

func (o *GetAlertsConnectionParams) SetRequestBody(requestBody *models.GetAlertsConnectionRequestBody)

SetRequestBody adds the requestBody to the get alerts connection params

func (*GetAlertsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get alerts connection params

func (*GetAlertsConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get alerts connection params

func (*GetAlertsConnectionParams) WithContext

WithContext adds the context to the get alerts connection params

func (*GetAlertsConnectionParams) WithDefaults

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

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

func (*GetAlertsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get alerts connection params

func (*GetAlertsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get alerts connection params

func (*GetAlertsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get alerts connection params

func (*GetAlertsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAlertsConnectionReader

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

GetAlertsConnectionReader is a Reader for the GetAlertsConnection structure.

func (*GetAlertsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAlertsInternalServerError

type GetAlertsInternalServerError struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Server error

func NewGetAlertsInternalServerError

func NewGetAlertsInternalServerError() *GetAlertsInternalServerError

NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values

func (*GetAlertsInternalServerError) Error

func (*GetAlertsInternalServerError) GetPayload

type GetAlertsNotFound

type GetAlertsNotFound struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

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

Not found

func NewGetAlertsNotFound

func NewGetAlertsNotFound() *GetAlertsNotFound

NewGetAlertsNotFound creates a GetAlertsNotFound with default headers values

func (*GetAlertsNotFound) Error

func (o *GetAlertsNotFound) Error() string

func (*GetAlertsNotFound) GetPayload

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

type GetAlertsOK

type GetAlertsOK struct {
	XAocRequestID string

	Payload []*models.Alert
}

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

GetAlertsOK get alerts o k

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.Alert

type GetAlertsParams

type GetAlertsParams struct {

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

	// RequestBody.
	RequestBody *models.GetAlertsRequestBody

	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) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get alerts params

func (*GetAlertsParams) SetContext

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

SetContext adds the context 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alerts params

func (*GetAlertsParams) SetRequestBody

func (o *GetAlertsParams) SetRequestBody(requestBody *models.GetAlertsRequestBody)

SetRequestBody adds the requestBody 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) WithContentLanguage

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

WithContentLanguage adds the contentLanguage 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) 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get alerts params

func (*GetAlertsParams) WithRequestBody

func (o *GetAlertsParams) WithRequestBody(requestBody *models.GetAlertsRequestBody) *GetAlertsParams

WithRequestBody adds the requestBody 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.

Jump to

Keyboard shortcuts

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