alertgroup

package
v0.22.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 6

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 alertgroup API

func (*Client) GetAlertGroups

func (a *Client) GetAlertGroups(params *GetAlertGroupsParams) (*GetAlertGroupsOK, error)

GetAlertGroups Get a list of alert groups

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.22.0

type ClientService interface {
	GetAlertGroups(params *GetAlertGroupsParams) (*GetAlertGroupsOK, 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 alertgroup API client.

type GetAlertGroupsBadRequest

type GetAlertGroupsBadRequest struct {
	Payload string
}

GetAlertGroupsBadRequest handles this case with default header values.

Bad request

func NewGetAlertGroupsBadRequest

func NewGetAlertGroupsBadRequest() *GetAlertGroupsBadRequest

NewGetAlertGroupsBadRequest creates a GetAlertGroupsBadRequest with default headers values

func (*GetAlertGroupsBadRequest) Error

func (o *GetAlertGroupsBadRequest) Error() string

func (*GetAlertGroupsBadRequest) GetPayload added in v0.20.0

func (o *GetAlertGroupsBadRequest) GetPayload() string

type GetAlertGroupsInternalServerError

type GetAlertGroupsInternalServerError struct {
	Payload string
}

GetAlertGroupsInternalServerError handles this case with default header values.

Internal server error

func NewGetAlertGroupsInternalServerError

func NewGetAlertGroupsInternalServerError() *GetAlertGroupsInternalServerError

NewGetAlertGroupsInternalServerError creates a GetAlertGroupsInternalServerError with default headers values

func (*GetAlertGroupsInternalServerError) Error

func (*GetAlertGroupsInternalServerError) GetPayload added in v0.20.0

func (o *GetAlertGroupsInternalServerError) GetPayload() string

type GetAlertGroupsOK

type GetAlertGroupsOK struct {
	Payload models.AlertGroups
}

GetAlertGroupsOK handles this case with default header values.

Get alert groups response

func NewGetAlertGroupsOK

func NewGetAlertGroupsOK() *GetAlertGroupsOK

NewGetAlertGroupsOK creates a GetAlertGroupsOK with default headers values

func (*GetAlertGroupsOK) Error

func (o *GetAlertGroupsOK) Error() string

func (*GetAlertGroupsOK) GetPayload added in v0.20.0

func (o *GetAlertGroupsOK) GetPayload() models.AlertGroups

type GetAlertGroupsParams

type GetAlertGroupsParams struct {

	/*Active
	  Show active alerts

	*/
	Active *bool
	/*Filter
	  A list of matchers to filter alerts by

	*/
	Filter []string
	/*Inhibited
	  Show inhibited alerts

	*/
	Inhibited *bool
	/*Receiver
	  A regex matching receivers to filter alerts by

	*/
	Receiver *string
	/*Silenced
	  Show silenced alerts

	*/
	Silenced *bool

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

GetAlertGroupsParams contains all the parameters to send to the API endpoint for the get alert groups operation typically these are written to a http.Request

func NewGetAlertGroupsParams

func NewGetAlertGroupsParams() *GetAlertGroupsParams

NewGetAlertGroupsParams creates a new GetAlertGroupsParams object with the default values initialized.

func NewGetAlertGroupsParamsWithContext

func NewGetAlertGroupsParamsWithContext(ctx context.Context) *GetAlertGroupsParams

NewGetAlertGroupsParamsWithContext creates a new GetAlertGroupsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAlertGroupsParamsWithHTTPClient

func NewGetAlertGroupsParamsWithHTTPClient(client *http.Client) *GetAlertGroupsParams

NewGetAlertGroupsParamsWithHTTPClient creates a new GetAlertGroupsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAlertGroupsParamsWithTimeout

func NewGetAlertGroupsParamsWithTimeout(timeout time.Duration) *GetAlertGroupsParams

NewGetAlertGroupsParamsWithTimeout creates a new GetAlertGroupsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAlertGroupsParams) SetActive

func (o *GetAlertGroupsParams) SetActive(active *bool)

SetActive adds the active to the get alert groups params

func (*GetAlertGroupsParams) SetContext

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

SetContext adds the context to the get alert groups params

func (*GetAlertGroupsParams) SetFilter

func (o *GetAlertGroupsParams) SetFilter(filter []string)

SetFilter adds the filter to the get alert groups params

func (*GetAlertGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alert groups params

func (*GetAlertGroupsParams) SetInhibited

func (o *GetAlertGroupsParams) SetInhibited(inhibited *bool)

SetInhibited adds the inhibited to the get alert groups params

func (*GetAlertGroupsParams) SetReceiver

func (o *GetAlertGroupsParams) SetReceiver(receiver *string)

SetReceiver adds the receiver to the get alert groups params

func (*GetAlertGroupsParams) SetSilenced

func (o *GetAlertGroupsParams) SetSilenced(silenced *bool)

SetSilenced adds the silenced to the get alert groups params

func (*GetAlertGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the get alert groups params

func (*GetAlertGroupsParams) WithActive

func (o *GetAlertGroupsParams) WithActive(active *bool) *GetAlertGroupsParams

WithActive adds the active to the get alert groups params

func (*GetAlertGroupsParams) WithContext

WithContext adds the context to the get alert groups params

func (*GetAlertGroupsParams) WithFilter

func (o *GetAlertGroupsParams) WithFilter(filter []string) *GetAlertGroupsParams

WithFilter adds the filter to the get alert groups params

func (*GetAlertGroupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get alert groups params

func (*GetAlertGroupsParams) WithInhibited

func (o *GetAlertGroupsParams) WithInhibited(inhibited *bool) *GetAlertGroupsParams

WithInhibited adds the inhibited to the get alert groups params

func (*GetAlertGroupsParams) WithReceiver

func (o *GetAlertGroupsParams) WithReceiver(receiver *string) *GetAlertGroupsParams

WithReceiver adds the receiver to the get alert groups params

func (*GetAlertGroupsParams) WithSilenced

func (o *GetAlertGroupsParams) WithSilenced(silenced *bool) *GetAlertGroupsParams

WithSilenced adds the silenced to the get alert groups params

func (*GetAlertGroupsParams) WithTimeout

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

WithTimeout adds the timeout to the get alert groups params

func (*GetAlertGroupsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAlertGroupsReader

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

GetAlertGroupsReader is a Reader for the GetAlertGroups structure.

func (*GetAlertGroupsReader) ReadResponse

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