alertgroup

package
v0.22.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GetAlertGroupsBadRequestCode int = 400

GetAlertGroupsBadRequestCode is the HTTP code returned for type GetAlertGroupsBadRequest

View Source
const GetAlertGroupsInternalServerErrorCode int = 500

GetAlertGroupsInternalServerErrorCode is the HTTP code returned for type GetAlertGroupsInternalServerError

View Source
const GetAlertGroupsOKCode int = 200

GetAlertGroupsOKCode is the HTTP code returned for type GetAlertGroupsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAlertGroups

type GetAlertGroups struct {
	Context *middleware.Context
	Handler GetAlertGroupsHandler
}

GetAlertGroups swagger:route GET /alerts/groups alertgroup getAlertGroups

Get a list of alert groups

func NewGetAlertGroups

func NewGetAlertGroups(ctx *middleware.Context, handler GetAlertGroupsHandler) *GetAlertGroups

NewGetAlertGroups creates a new http.Handler for the get alert groups operation

func (*GetAlertGroups) ServeHTTP

func (o *GetAlertGroups) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAlertGroupsBadRequest

type GetAlertGroupsBadRequest struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetAlertGroupsBadRequest Bad request

swagger:response getAlertGroupsBadRequest

func NewGetAlertGroupsBadRequest

func NewGetAlertGroupsBadRequest() *GetAlertGroupsBadRequest

NewGetAlertGroupsBadRequest creates GetAlertGroupsBadRequest with default headers values

func (*GetAlertGroupsBadRequest) SetPayload

func (o *GetAlertGroupsBadRequest) SetPayload(payload string)

SetPayload sets the payload to the get alert groups bad request response

func (*GetAlertGroupsBadRequest) WithPayload

func (o *GetAlertGroupsBadRequest) WithPayload(payload string) *GetAlertGroupsBadRequest

WithPayload adds the payload to the get alert groups bad request response

func (*GetAlertGroupsBadRequest) WriteResponse

func (o *GetAlertGroupsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAlertGroupsHandler

type GetAlertGroupsHandler interface {
	Handle(GetAlertGroupsParams) middleware.Responder
}

GetAlertGroupsHandler interface for that can handle valid get alert groups params

type GetAlertGroupsHandlerFunc

type GetAlertGroupsHandlerFunc func(GetAlertGroupsParams) middleware.Responder

GetAlertGroupsHandlerFunc turns a function with the right signature into a get alert groups handler

func (GetAlertGroupsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAlertGroupsInternalServerError

type GetAlertGroupsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetAlertGroupsInternalServerError Internal server error

swagger:response getAlertGroupsInternalServerError

func NewGetAlertGroupsInternalServerError

func NewGetAlertGroupsInternalServerError() *GetAlertGroupsInternalServerError

NewGetAlertGroupsInternalServerError creates GetAlertGroupsInternalServerError with default headers values

func (*GetAlertGroupsInternalServerError) SetPayload

func (o *GetAlertGroupsInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the get alert groups internal server error response

func (*GetAlertGroupsInternalServerError) WithPayload

WithPayload adds the payload to the get alert groups internal server error response

func (*GetAlertGroupsInternalServerError) WriteResponse

func (o *GetAlertGroupsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAlertGroupsOK

type GetAlertGroupsOK struct {

	/*
	  In: Body
	*/
	Payload models.AlertGroups `json:"body,omitempty"`
}

GetAlertGroupsOK Get alert groups response

swagger:response getAlertGroupsOK

func NewGetAlertGroupsOK

func NewGetAlertGroupsOK() *GetAlertGroupsOK

NewGetAlertGroupsOK creates GetAlertGroupsOK with default headers values

func (*GetAlertGroupsOK) SetPayload

func (o *GetAlertGroupsOK) SetPayload(payload models.AlertGroups)

SetPayload sets the payload to the get alert groups o k response

func (*GetAlertGroupsOK) WithPayload

func (o *GetAlertGroupsOK) WithPayload(payload models.AlertGroups) *GetAlertGroupsOK

WithPayload adds the payload to the get alert groups o k response

func (*GetAlertGroupsOK) WriteResponse

func (o *GetAlertGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAlertGroupsParams

type GetAlertGroupsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Show active alerts
	  In: query
	  Default: true
	*/
	Active *bool
	/*A list of matchers to filter alerts by
	  In: query
	  Collection Format: multi
	*/
	Filter []string
	/*Show inhibited alerts
	  In: query
	  Default: true
	*/
	Inhibited *bool
	/*A regex matching receivers to filter alerts by
	  In: query
	*/
	Receiver *string
	/*Show silenced alerts
	  In: query
	  Default: true
	*/
	Silenced *bool
}

GetAlertGroupsParams contains all the bound params for the get alert groups operation typically these are obtained from a http.Request

swagger:parameters getAlertGroups

func NewGetAlertGroupsParams

func NewGetAlertGroupsParams() GetAlertGroupsParams

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

func (*GetAlertGroupsParams) BindRequest

func (o *GetAlertGroupsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetAlertGroupsParams() beforehand.

type GetAlertGroupsURL

type GetAlertGroupsURL struct {
	Active    *bool
	Filter    []string
	Inhibited *bool
	Receiver  *string
	Silenced  *bool
	// contains filtered or unexported fields
}

GetAlertGroupsURL generates an URL for the get alert groups operation

func (*GetAlertGroupsURL) Build

func (o *GetAlertGroupsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetAlertGroupsURL) BuildFull

func (o *GetAlertGroupsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetAlertGroupsURL) Must

func (o *GetAlertGroupsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetAlertGroupsURL) SetBasePath

func (o *GetAlertGroupsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetAlertGroupsURL) String

func (o *GetAlertGroupsURL) String() string

String returns the string representation of the path with query string

func (*GetAlertGroupsURL) StringFull

func (o *GetAlertGroupsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetAlertGroupsURL) WithBasePath

func (o *GetAlertGroupsURL) WithBasePath(bp string) *GetAlertGroupsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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