...

Package alertgroup

import "github.com/prometheus/alertmanager/api/v2/restapi/operations/alertgroup"
Overview
Index

Overview ▾

Index ▾

Constants
type GetAlertGroups
    func NewGetAlertGroups(ctx *middleware.Context, handler GetAlertGroupsHandler) *GetAlertGroups
    func (o *GetAlertGroups) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAlertGroupsBadRequest
    func NewGetAlertGroupsBadRequest() *GetAlertGroupsBadRequest
    func (o *GetAlertGroupsBadRequest) SetPayload(payload string)
    func (o *GetAlertGroupsBadRequest) WithPayload(payload string) *GetAlertGroupsBadRequest
    func (o *GetAlertGroupsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
type GetAlertGroupsHandler
type GetAlertGroupsHandlerFunc
    func (fn GetAlertGroupsHandlerFunc) Handle(params GetAlertGroupsParams) middleware.Responder
type GetAlertGroupsInternalServerError
    func NewGetAlertGroupsInternalServerError() *GetAlertGroupsInternalServerError
    func (o *GetAlertGroupsInternalServerError) SetPayload(payload string)
    func (o *GetAlertGroupsInternalServerError) WithPayload(payload string) *GetAlertGroupsInternalServerError
    func (o *GetAlertGroupsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
type GetAlertGroupsOK
    func NewGetAlertGroupsOK() *GetAlertGroupsOK
    func (o *GetAlertGroupsOK) SetPayload(payload models.AlertGroups)
    func (o *GetAlertGroupsOK) WithPayload(payload models.AlertGroups) *GetAlertGroupsOK
    func (o *GetAlertGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
type GetAlertGroupsParams
    func NewGetAlertGroupsParams() GetAlertGroupsParams
    func (o *GetAlertGroupsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
type GetAlertGroupsURL
    func (o *GetAlertGroupsURL) Build() (*url.URL, error)
    func (o *GetAlertGroupsURL) BuildFull(scheme, host string) (*url.URL, error)
    func (o *GetAlertGroupsURL) Must(u *url.URL, err error) *url.URL
    func (o *GetAlertGroupsURL) SetBasePath(bp string)
    func (o *GetAlertGroupsURL) String() string
    func (o *GetAlertGroupsURL) StringFull(scheme, host string) string
    func (o *GetAlertGroupsURL) WithBasePath(bp string) *GetAlertGroupsURL

Package files

get_alert_groups.go get_alert_groups_parameters.go get_alert_groups_responses.go get_alert_groups_urlbuilder.go

Constants

GetAlertGroupsBadRequestCode is the HTTP code returned for type GetAlertGroupsBadRequest

const GetAlertGroupsBadRequestCode int = 400

GetAlertGroupsInternalServerErrorCode is the HTTP code returned for type GetAlertGroupsInternalServerError

const GetAlertGroupsInternalServerErrorCode int = 500

GetAlertGroupsOKCode is the HTTP code returned for type GetAlertGroupsOK

const GetAlertGroupsOKCode int = 200

type GetAlertGroups

GetAlertGroups swagger:route GET /alerts/groups alertgroup getAlertGroups

Get a list of alert groups

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

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

GetAlertGroupsBadRequest Bad request

swagger:response getAlertGroupsBadRequest

type GetAlertGroupsBadRequest struct {

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

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

GetAlertGroupsHandler interface for that can handle valid get alert groups params

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

type GetAlertGroupsHandlerFunc

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

type GetAlertGroupsHandlerFunc func(GetAlertGroupsParams) middleware.Responder

func (GetAlertGroupsHandlerFunc) Handle

func (fn GetAlertGroupsHandlerFunc) Handle(params GetAlertGroupsParams) middleware.Responder

Handle executing the request and returning a response

type GetAlertGroupsInternalServerError

GetAlertGroupsInternalServerError Internal server error

swagger:response getAlertGroupsInternalServerError

type GetAlertGroupsInternalServerError struct {

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

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

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

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

GetAlertGroupsOK Get alert groups response

swagger:response getAlertGroupsOK

type GetAlertGroupsOK struct {

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

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

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

swagger:parameters getAlertGroups

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
}

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

GetAlertGroupsURL generates an URL for the get alert groups operation

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

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