alert

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 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) ResolveAlert

func (a *Client) ResolveAlert(params *ResolveAlertParams, opts ...ClientOption) (*ResolveAlertOK, error)

ResolveAlert resolve alert 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)

	ResolveAlert(params *ResolveAlertParams, opts ...ClientOption) (*ResolveAlertOK, 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 {
	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 {
	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 added in v1.10.0

type GetAlertsConnectionInternalServerError struct {
	Payload *models.ErrorBody
}
GetAlertsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertsConnectionInternalServerError added in v1.10.0

func NewGetAlertsConnectionInternalServerError() *GetAlertsConnectionInternalServerError

NewGetAlertsConnectionInternalServerError creates a GetAlertsConnectionInternalServerError with default headers values

func (*GetAlertsConnectionInternalServerError) Error added in v1.10.0

func (*GetAlertsConnectionInternalServerError) GetPayload added in v1.10.0

type GetAlertsConnectionNotFound added in v1.10.0

type GetAlertsConnectionNotFound struct {
	Payload *models.ErrorBody
}
GetAlertsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertsConnectionNotFound added in v1.10.0

func NewGetAlertsConnectionNotFound() *GetAlertsConnectionNotFound

NewGetAlertsConnectionNotFound creates a GetAlertsConnectionNotFound with default headers values

func (*GetAlertsConnectionNotFound) Error added in v1.10.0

func (*GetAlertsConnectionNotFound) GetPayload added in v1.10.0

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

type GetAlertsConnectionOK

type GetAlertsConnectionOK struct {
	Payload *models.AlertConnection
}
GetAlertsConnectionOK describes a response with status code 200, with default header values.

Ok

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 added in v1.10.0

type GetAlertsInternalServerError struct {
	Payload *models.ErrorBody
}
GetAlertsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertsInternalServerError added in v1.10.0

func NewGetAlertsInternalServerError() *GetAlertsInternalServerError

NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values

func (*GetAlertsInternalServerError) Error added in v1.10.0

func (*GetAlertsInternalServerError) GetPayload added in v1.10.0

type GetAlertsNotFound added in v1.10.0

type GetAlertsNotFound struct {
	Payload *models.ErrorBody
}
GetAlertsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertsNotFound added in v1.10.0

func NewGetAlertsNotFound() *GetAlertsNotFound

NewGetAlertsNotFound creates a GetAlertsNotFound with default headers values

func (*GetAlertsNotFound) Error added in v1.10.0

func (o *GetAlertsNotFound) Error() string

func (*GetAlertsNotFound) GetPayload added in v1.10.0

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

type GetAlertsOK

type GetAlertsOK struct {
	Payload []*models.Alert
}
GetAlertsOK describes a response with status code 200, with default header values.

Ok

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.

type ResolveAlertBadRequest

type ResolveAlertBadRequest struct {
	Payload *models.ErrorBody
}
ResolveAlertBadRequest describes a response with status code 400, with default header values.

Bad request

func NewResolveAlertBadRequest

func NewResolveAlertBadRequest() *ResolveAlertBadRequest

NewResolveAlertBadRequest creates a ResolveAlertBadRequest with default headers values

func (*ResolveAlertBadRequest) Error

func (o *ResolveAlertBadRequest) Error() string

func (*ResolveAlertBadRequest) GetPayload

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

type ResolveAlertInternalServerError added in v1.10.0

type ResolveAlertInternalServerError struct {
	Payload *models.ErrorBody
}
ResolveAlertInternalServerError describes a response with status code 500, with default header values.

Server error

func NewResolveAlertInternalServerError added in v1.10.0

func NewResolveAlertInternalServerError() *ResolveAlertInternalServerError

NewResolveAlertInternalServerError creates a ResolveAlertInternalServerError with default headers values

func (*ResolveAlertInternalServerError) Error added in v1.10.0

func (*ResolveAlertInternalServerError) GetPayload added in v1.10.0

type ResolveAlertNotFound added in v1.10.0

type ResolveAlertNotFound struct {
	Payload *models.ErrorBody
}
ResolveAlertNotFound describes a response with status code 404, with default header values.

Not found

func NewResolveAlertNotFound added in v1.10.0

func NewResolveAlertNotFound() *ResolveAlertNotFound

NewResolveAlertNotFound creates a ResolveAlertNotFound with default headers values

func (*ResolveAlertNotFound) Error added in v1.10.0

func (o *ResolveAlertNotFound) Error() string

func (*ResolveAlertNotFound) GetPayload added in v1.10.0

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

type ResolveAlertOK

type ResolveAlertOK struct {
	Payload []*models.WithTaskAlert
}
ResolveAlertOK describes a response with status code 200, with default header values.

Ok

func NewResolveAlertOK

func NewResolveAlertOK() *ResolveAlertOK

NewResolveAlertOK creates a ResolveAlertOK with default headers values

func (*ResolveAlertOK) Error

func (o *ResolveAlertOK) Error() string

func (*ResolveAlertOK) GetPayload

func (o *ResolveAlertOK) GetPayload() []*models.WithTaskAlert

type ResolveAlertParams

type ResolveAlertParams struct {

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

	// RequestBody.
	RequestBody *models.ResolveAlertParams

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

ResolveAlertParams contains all the parameters to send to the API endpoint

for the resolve alert operation.

Typically these are written to a http.Request.

func NewResolveAlertParams

func NewResolveAlertParams() *ResolveAlertParams

NewResolveAlertParams creates a new ResolveAlertParams 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 NewResolveAlertParamsWithContext

func NewResolveAlertParamsWithContext(ctx context.Context) *ResolveAlertParams

NewResolveAlertParamsWithContext creates a new ResolveAlertParams object with the ability to set a context for a request.

func NewResolveAlertParamsWithHTTPClient

func NewResolveAlertParamsWithHTTPClient(client *http.Client) *ResolveAlertParams

NewResolveAlertParamsWithHTTPClient creates a new ResolveAlertParams object with the ability to set a custom HTTPClient for a request.

func NewResolveAlertParamsWithTimeout

func NewResolveAlertParamsWithTimeout(timeout time.Duration) *ResolveAlertParams

NewResolveAlertParamsWithTimeout creates a new ResolveAlertParams object with the ability to set a timeout on a request.

func (*ResolveAlertParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the resolve alert params

func (*ResolveAlertParams) SetContext

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

SetContext adds the context to the resolve alert params

func (*ResolveAlertParams) SetDefaults

func (o *ResolveAlertParams) SetDefaults()

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

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

func (*ResolveAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resolve alert params

func (*ResolveAlertParams) SetRequestBody

func (o *ResolveAlertParams) SetRequestBody(requestBody *models.ResolveAlertParams)

SetRequestBody adds the requestBody to the resolve alert params

func (*ResolveAlertParams) SetTimeout

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

SetTimeout adds the timeout to the resolve alert params

func (*ResolveAlertParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the resolve alert params

func (*ResolveAlertParams) WithContext

WithContext adds the context to the resolve alert params

func (*ResolveAlertParams) WithDefaults

func (o *ResolveAlertParams) WithDefaults() *ResolveAlertParams

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

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

func (*ResolveAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the resolve alert params

func (*ResolveAlertParams) WithRequestBody

func (o *ResolveAlertParams) WithRequestBody(requestBody *models.ResolveAlertParams) *ResolveAlertParams

WithRequestBody adds the requestBody to the resolve alert params

func (*ResolveAlertParams) WithTimeout

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

WithTimeout adds the timeout to the resolve alert params

func (*ResolveAlertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ResolveAlertReader

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

ResolveAlertReader is a Reader for the ResolveAlert structure.

func (*ResolveAlertReader) ReadResponse

func (o *ResolveAlertReader) 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