alerts

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT 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 alerts API

func (*Client) GetV1Alerts

func (a *Client) GetV1Alerts(params *GetV1AlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsOK, error)

GetV1Alerts retrieves all alerts

Retrieve all alerts from third parties

func (*Client) GetV1AlertsAlertID

func (a *Client) GetV1AlertsAlertID(params *GetV1AlertsAlertIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsAlertIDOK, error)

GetV1AlertsAlertID retrieves a single alert

Retrieve a single alert

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 {
	GetV1Alerts(params *GetV1AlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsOK, error)

	GetV1AlertsAlertID(params *GetV1AlertsAlertIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsAlertIDOK, 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 alerts API client.

type GetV1AlertsAlertIDOK

type GetV1AlertsAlertIDOK struct {
	Payload *models.AlertsAlertEntity
}

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

Retrieve a single alert

func NewGetV1AlertsAlertIDOK

func NewGetV1AlertsAlertIDOK() *GetV1AlertsAlertIDOK

NewGetV1AlertsAlertIDOK creates a GetV1AlertsAlertIDOK with default headers values

func (*GetV1AlertsAlertIDOK) Error

func (o *GetV1AlertsAlertIDOK) Error() string

func (*GetV1AlertsAlertIDOK) GetPayload

func (*GetV1AlertsAlertIDOK) IsClientError

func (o *GetV1AlertsAlertIDOK) IsClientError() bool

IsClientError returns true when this get v1 alerts alert Id o k response has a 4xx status code

func (*GetV1AlertsAlertIDOK) IsCode

func (o *GetV1AlertsAlertIDOK) IsCode(code int) bool

IsCode returns true when this get v1 alerts alert Id o k response a status code equal to that given

func (*GetV1AlertsAlertIDOK) IsRedirect

func (o *GetV1AlertsAlertIDOK) IsRedirect() bool

IsRedirect returns true when this get v1 alerts alert Id o k response has a 3xx status code

func (*GetV1AlertsAlertIDOK) IsServerError

func (o *GetV1AlertsAlertIDOK) IsServerError() bool

IsServerError returns true when this get v1 alerts alert Id o k response has a 5xx status code

func (*GetV1AlertsAlertIDOK) IsSuccess

func (o *GetV1AlertsAlertIDOK) IsSuccess() bool

IsSuccess returns true when this get v1 alerts alert Id o k response has a 2xx status code

func (*GetV1AlertsAlertIDOK) String

func (o *GetV1AlertsAlertIDOK) String() string

type GetV1AlertsAlertIDParams

type GetV1AlertsAlertIDParams struct {

	// AlertID.
	AlertID string

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

GetV1AlertsAlertIDParams contains all the parameters to send to the API endpoint

for the get v1 alerts alert Id operation.

Typically these are written to a http.Request.

func NewGetV1AlertsAlertIDParams

func NewGetV1AlertsAlertIDParams() *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParams creates a new GetV1AlertsAlertIDParams 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 NewGetV1AlertsAlertIDParamsWithContext

func NewGetV1AlertsAlertIDParamsWithContext(ctx context.Context) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithContext creates a new GetV1AlertsAlertIDParams object with the ability to set a context for a request.

func NewGetV1AlertsAlertIDParamsWithHTTPClient

func NewGetV1AlertsAlertIDParamsWithHTTPClient(client *http.Client) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithHTTPClient creates a new GetV1AlertsAlertIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1AlertsAlertIDParamsWithTimeout

func NewGetV1AlertsAlertIDParamsWithTimeout(timeout time.Duration) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithTimeout creates a new GetV1AlertsAlertIDParams object with the ability to set a timeout on a request.

func (*GetV1AlertsAlertIDParams) SetAlertID

func (o *GetV1AlertsAlertIDParams) SetAlertID(alertID string)

SetAlertID adds the alertId to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetContext

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

SetContext adds the context to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetDefaults

func (o *GetV1AlertsAlertIDParams) SetDefaults()

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

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

func (*GetV1AlertsAlertIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithAlertID

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

WithAlertID adds the alertID to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithContext

WithContext adds the context to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithDefaults

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

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

func (*GetV1AlertsAlertIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1AlertsAlertIDReader

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

GetV1AlertsAlertIDReader is a Reader for the GetV1AlertsAlertID structure.

func (*GetV1AlertsAlertIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1AlertsOK

type GetV1AlertsOK struct {
	Payload *models.AlertsAlertEntityPaginated
}

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

Retrieve all alerts from third parties

func NewGetV1AlertsOK

func NewGetV1AlertsOK() *GetV1AlertsOK

NewGetV1AlertsOK creates a GetV1AlertsOK with default headers values

func (*GetV1AlertsOK) Error

func (o *GetV1AlertsOK) Error() string

func (*GetV1AlertsOK) GetPayload

func (*GetV1AlertsOK) IsClientError

func (o *GetV1AlertsOK) IsClientError() bool

IsClientError returns true when this get v1 alerts o k response has a 4xx status code

func (*GetV1AlertsOK) IsCode

func (o *GetV1AlertsOK) IsCode(code int) bool

IsCode returns true when this get v1 alerts o k response a status code equal to that given

func (*GetV1AlertsOK) IsRedirect

func (o *GetV1AlertsOK) IsRedirect() bool

IsRedirect returns true when this get v1 alerts o k response has a 3xx status code

func (*GetV1AlertsOK) IsServerError

func (o *GetV1AlertsOK) IsServerError() bool

IsServerError returns true when this get v1 alerts o k response has a 5xx status code

func (*GetV1AlertsOK) IsSuccess

func (o *GetV1AlertsOK) IsSuccess() bool

IsSuccess returns true when this get v1 alerts o k response has a 2xx status code

func (*GetV1AlertsOK) String

func (o *GetV1AlertsOK) String() string

type GetV1AlertsParams

type GetV1AlertsParams struct {

	/* Environments.

	   A comma separated list of environment IDs. This currently only works for Signals alerts.
	*/
	Environments *string

	/* Functionalities.

	   A comma separated list of functionality IDs. This currently only works for Signals alerts.
	*/
	Functionalities *string

	// Page.
	//
	// Format: int32
	Page *int32

	// PerPage.
	//
	// Format: int32
	PerPage *int32

	/* Query.

	   A text query for alerts
	*/
	Query *string

	/* Services.

	   A comma separated list of service IDs. This currently only works for Signals alerts.
	*/
	Services *string

	/* SignalRules.

	   A comma separated list of signals rule IDs. This currently only works for Signals alerts.
	*/
	SignalRules *string

	/* TagMatchStrategy.

	   The strategy to match tags. `any` will return alerts that have at least one of the supplied tags, `match_all` will return only alerts that have all of the supplied tags, and `exclude` will only return alerts that have none of the supplied tags. This currently only works for Signals alerts.
	*/
	TagMatchStrategy *string

	/* Tags.

	   A comma separated list of tags. This currently only works for Signals alerts.
	*/
	Tags *string

	/* Teams.

	   A comma separated list of team IDs. This currently only works for Signals alerts.
	*/
	Teams *string

	/* Users.

	   A comma separated list of user IDs. This currently only works for Signals alerts.
	*/
	Users *string

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

GetV1AlertsParams contains all the parameters to send to the API endpoint

for the get v1 alerts operation.

Typically these are written to a http.Request.

func NewGetV1AlertsParams

func NewGetV1AlertsParams() *GetV1AlertsParams

NewGetV1AlertsParams creates a new GetV1AlertsParams 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 NewGetV1AlertsParamsWithContext

func NewGetV1AlertsParamsWithContext(ctx context.Context) *GetV1AlertsParams

NewGetV1AlertsParamsWithContext creates a new GetV1AlertsParams object with the ability to set a context for a request.

func NewGetV1AlertsParamsWithHTTPClient

func NewGetV1AlertsParamsWithHTTPClient(client *http.Client) *GetV1AlertsParams

NewGetV1AlertsParamsWithHTTPClient creates a new GetV1AlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1AlertsParamsWithTimeout

func NewGetV1AlertsParamsWithTimeout(timeout time.Duration) *GetV1AlertsParams

NewGetV1AlertsParamsWithTimeout creates a new GetV1AlertsParams object with the ability to set a timeout on a request.

func (*GetV1AlertsParams) SetContext

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

SetContext adds the context to the get v1 alerts params

func (*GetV1AlertsParams) SetDefaults

func (o *GetV1AlertsParams) SetDefaults()

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

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

func (*GetV1AlertsParams) SetEnvironments

func (o *GetV1AlertsParams) SetEnvironments(environments *string)

SetEnvironments adds the environments to the get v1 alerts params

func (*GetV1AlertsParams) SetFunctionalities

func (o *GetV1AlertsParams) SetFunctionalities(functionalities *string)

SetFunctionalities adds the functionalities to the get v1 alerts params

func (*GetV1AlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 alerts params

func (*GetV1AlertsParams) SetPage

func (o *GetV1AlertsParams) SetPage(page *int32)

SetPage adds the page to the get v1 alerts params

func (*GetV1AlertsParams) SetPerPage

func (o *GetV1AlertsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v1 alerts params

func (*GetV1AlertsParams) SetQuery

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

SetQuery adds the query to the get v1 alerts params

func (*GetV1AlertsParams) SetServices

func (o *GetV1AlertsParams) SetServices(services *string)

SetServices adds the services to the get v1 alerts params

func (*GetV1AlertsParams) SetSignalRules

func (o *GetV1AlertsParams) SetSignalRules(signalRules *string)

SetSignalRules adds the signalRules to the get v1 alerts params

func (*GetV1AlertsParams) SetTagMatchStrategy

func (o *GetV1AlertsParams) SetTagMatchStrategy(tagMatchStrategy *string)

SetTagMatchStrategy adds the tagMatchStrategy to the get v1 alerts params

func (*GetV1AlertsParams) SetTags

func (o *GetV1AlertsParams) SetTags(tags *string)

SetTags adds the tags to the get v1 alerts params

func (*GetV1AlertsParams) SetTeams

func (o *GetV1AlertsParams) SetTeams(teams *string)

SetTeams adds the teams to the get v1 alerts params

func (*GetV1AlertsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 alerts params

func (*GetV1AlertsParams) SetUsers

func (o *GetV1AlertsParams) SetUsers(users *string)

SetUsers adds the users to the get v1 alerts params

func (*GetV1AlertsParams) WithContext

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

WithContext adds the context to the get v1 alerts params

func (*GetV1AlertsParams) WithDefaults

func (o *GetV1AlertsParams) WithDefaults() *GetV1AlertsParams

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

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

func (*GetV1AlertsParams) WithEnvironments

func (o *GetV1AlertsParams) WithEnvironments(environments *string) *GetV1AlertsParams

WithEnvironments adds the environments to the get v1 alerts params

func (*GetV1AlertsParams) WithFunctionalities

func (o *GetV1AlertsParams) WithFunctionalities(functionalities *string) *GetV1AlertsParams

WithFunctionalities adds the functionalities to the get v1 alerts params

func (*GetV1AlertsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 alerts params

func (*GetV1AlertsParams) WithPage

func (o *GetV1AlertsParams) WithPage(page *int32) *GetV1AlertsParams

WithPage adds the page to the get v1 alerts params

func (*GetV1AlertsParams) WithPerPage

func (o *GetV1AlertsParams) WithPerPage(perPage *int32) *GetV1AlertsParams

WithPerPage adds the perPage to the get v1 alerts params

func (*GetV1AlertsParams) WithQuery

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

WithQuery adds the query to the get v1 alerts params

func (*GetV1AlertsParams) WithServices

func (o *GetV1AlertsParams) WithServices(services *string) *GetV1AlertsParams

WithServices adds the services to the get v1 alerts params

func (*GetV1AlertsParams) WithSignalRules

func (o *GetV1AlertsParams) WithSignalRules(signalRules *string) *GetV1AlertsParams

WithSignalRules adds the signalRules to the get v1 alerts params

func (*GetV1AlertsParams) WithTagMatchStrategy

func (o *GetV1AlertsParams) WithTagMatchStrategy(tagMatchStrategy *string) *GetV1AlertsParams

WithTagMatchStrategy adds the tagMatchStrategy to the get v1 alerts params

func (*GetV1AlertsParams) WithTags

func (o *GetV1AlertsParams) WithTags(tags *string) *GetV1AlertsParams

WithTags adds the tags to the get v1 alerts params

func (*GetV1AlertsParams) WithTeams

func (o *GetV1AlertsParams) WithTeams(teams *string) *GetV1AlertsParams

WithTeams adds the teams to the get v1 alerts params

func (*GetV1AlertsParams) WithTimeout

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

WithTimeout adds the timeout to the get v1 alerts params

func (*GetV1AlertsParams) WithUsers

func (o *GetV1AlertsParams) WithUsers(users *string) *GetV1AlertsParams

WithUsers adds the users to the get v1 alerts params

func (*GetV1AlertsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetV1AlertsReader

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

GetV1AlertsReader is a Reader for the GetV1Alerts structure.

func (*GetV1AlertsReader) ReadResponse

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