Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetAlertsBadRequest
- type GetAlertsInternalServerError
- type GetAlertsOK
- type GetAlertsParams
- func (o *GetAlertsParams) SetActive(active *bool)
- func (o *GetAlertsParams) SetContext(ctx context.Context)
- func (o *GetAlertsParams) SetFilter(filter []string)
- func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertsParams) SetInhibited(inhibited *bool)
- func (o *GetAlertsParams) SetReceiver(receiver *string)
- func (o *GetAlertsParams) SetSilenced(silenced *bool)
- func (o *GetAlertsParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertsParams) SetUnprocessed(unprocessed *bool)
- func (o *GetAlertsParams) WithActive(active *bool) *GetAlertsParams
- func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams
- func (o *GetAlertsParams) WithFilter(filter []string) *GetAlertsParams
- func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
- func (o *GetAlertsParams) WithInhibited(inhibited *bool) *GetAlertsParams
- func (o *GetAlertsParams) WithReceiver(receiver *string) *GetAlertsParams
- func (o *GetAlertsParams) WithSilenced(silenced *bool) *GetAlertsParams
- func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams
- func (o *GetAlertsParams) WithUnprocessed(unprocessed *bool) *GetAlertsParams
- func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertsReader
- type PostAlertsBadRequest
- type PostAlertsInternalServerError
- type PostAlertsOK
- type PostAlertsParams
- func (o *PostAlertsParams) SetAlerts(alerts ammodels.PostableAlerts)
- func (o *PostAlertsParams) SetContext(ctx context.Context)
- func (o *PostAlertsParams) SetHTTPClient(client *http.Client)
- func (o *PostAlertsParams) SetTimeout(timeout time.Duration)
- func (o *PostAlertsParams) WithAlerts(alerts ammodels.PostableAlerts) *PostAlertsParams
- func (o *PostAlertsParams) WithContext(ctx context.Context) *PostAlertsParams
- func (o *PostAlertsParams) WithHTTPClient(client *http.Client) *PostAlertsParams
- func (o *PostAlertsParams) WithTimeout(timeout time.Duration) *PostAlertsParams
- func (o *PostAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAlertsReader
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) (*GetAlertsOK, error)
GetAlerts Get a list of alerts
func (*Client) PostAlerts ¶
func (a *Client) PostAlerts(params *PostAlertsParams) (*PostAlertsOK, error)
PostAlerts Create new Alerts
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetAlerts(params *GetAlertsParams) (*GetAlertsOK, error) PostAlerts(params *PostAlertsParams) (*PostAlertsOK, 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 string
}
GetAlertsBadRequest handles this case 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() string
type GetAlertsInternalServerError ¶
type GetAlertsInternalServerError struct {
Payload string
}
GetAlertsInternalServerError handles this case with default header values.
Internal server error
func NewGetAlertsInternalServerError ¶
func NewGetAlertsInternalServerError() *GetAlertsInternalServerError
NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values
func (*GetAlertsInternalServerError) Error ¶
func (o *GetAlertsInternalServerError) Error() string
func (*GetAlertsInternalServerError) GetPayload ¶
func (o *GetAlertsInternalServerError) GetPayload() string
type GetAlertsOK ¶
type GetAlertsOK struct {
Payload ammodels.GettableAlerts
}
GetAlertsOK handles this case with default header values.
Get alerts response
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() ammodels.GettableAlerts
type GetAlertsParams ¶
type GetAlertsParams 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 /*Unprocessed Show unprocessed alerts */ Unprocessed *bool 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 values initialized.
func NewGetAlertsParamsWithContext ¶
func NewGetAlertsParamsWithContext(ctx context.Context) *GetAlertsParams
NewGetAlertsParamsWithContext creates a new GetAlertsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*GetAlertsParams) SetActive ¶
func (o *GetAlertsParams) SetActive(active *bool)
SetActive adds the active 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) SetFilter ¶
func (o *GetAlertsParams) SetFilter(filter []string)
SetFilter adds the filter to the get alerts params
func (*GetAlertsParams) SetHTTPClient ¶
func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) SetInhibited ¶
func (o *GetAlertsParams) SetInhibited(inhibited *bool)
SetInhibited adds the inhibited to the get alerts params
func (*GetAlertsParams) SetReceiver ¶
func (o *GetAlertsParams) SetReceiver(receiver *string)
SetReceiver adds the receiver to the get alerts params
func (*GetAlertsParams) SetSilenced ¶
func (o *GetAlertsParams) SetSilenced(silenced *bool)
SetSilenced adds the silenced 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) SetUnprocessed ¶
func (o *GetAlertsParams) SetUnprocessed(unprocessed *bool)
SetUnprocessed adds the unprocessed to the get alerts params
func (*GetAlertsParams) WithActive ¶
func (o *GetAlertsParams) WithActive(active *bool) *GetAlertsParams
WithActive adds the active 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) WithFilter ¶
func (o *GetAlertsParams) WithFilter(filter []string) *GetAlertsParams
WithFilter adds the filter to the get alerts params
func (*GetAlertsParams) WithHTTPClient ¶
func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
WithHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) WithInhibited ¶
func (o *GetAlertsParams) WithInhibited(inhibited *bool) *GetAlertsParams
WithInhibited adds the inhibited to the get alerts params
func (*GetAlertsParams) WithReceiver ¶
func (o *GetAlertsParams) WithReceiver(receiver *string) *GetAlertsParams
WithReceiver adds the receiver to the get alerts params
func (*GetAlertsParams) WithSilenced ¶
func (o *GetAlertsParams) WithSilenced(silenced *bool) *GetAlertsParams
WithSilenced adds the silenced 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) WithUnprocessed ¶
func (o *GetAlertsParams) WithUnprocessed(unprocessed *bool) *GetAlertsParams
WithUnprocessed adds the unprocessed 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 PostAlertsBadRequest ¶
type PostAlertsBadRequest struct {
Payload string
}
PostAlertsBadRequest handles this case with default header values.
Bad request
func NewPostAlertsBadRequest ¶
func NewPostAlertsBadRequest() *PostAlertsBadRequest
NewPostAlertsBadRequest creates a PostAlertsBadRequest with default headers values
func (*PostAlertsBadRequest) Error ¶
func (o *PostAlertsBadRequest) Error() string
func (*PostAlertsBadRequest) GetPayload ¶
func (o *PostAlertsBadRequest) GetPayload() string
type PostAlertsInternalServerError ¶
type PostAlertsInternalServerError struct {
Payload string
}
PostAlertsInternalServerError handles this case with default header values.
Internal server error
func NewPostAlertsInternalServerError ¶
func NewPostAlertsInternalServerError() *PostAlertsInternalServerError
NewPostAlertsInternalServerError creates a PostAlertsInternalServerError with default headers values
func (*PostAlertsInternalServerError) Error ¶
func (o *PostAlertsInternalServerError) Error() string
func (*PostAlertsInternalServerError) GetPayload ¶
func (o *PostAlertsInternalServerError) GetPayload() string
type PostAlertsOK ¶
type PostAlertsOK struct { }
PostAlertsOK handles this case with default header values.
Create alerts response
func NewPostAlertsOK ¶
func NewPostAlertsOK() *PostAlertsOK
NewPostAlertsOK creates a PostAlertsOK with default headers values
func (*PostAlertsOK) Error ¶
func (o *PostAlertsOK) Error() string
type PostAlertsParams ¶
type PostAlertsParams struct { /*Alerts The alerts to create */ Alerts ammodels.PostableAlerts Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAlertsParams contains all the parameters to send to the API endpoint for the post alerts operation typically these are written to a http.Request
func NewPostAlertsParams ¶
func NewPostAlertsParams() *PostAlertsParams
NewPostAlertsParams creates a new PostAlertsParams object with the default values initialized.
func NewPostAlertsParamsWithContext ¶
func NewPostAlertsParamsWithContext(ctx context.Context) *PostAlertsParams
NewPostAlertsParamsWithContext creates a new PostAlertsParams object with the default values initialized, and the ability to set a context for a request
func NewPostAlertsParamsWithHTTPClient ¶
func NewPostAlertsParamsWithHTTPClient(client *http.Client) *PostAlertsParams
NewPostAlertsParamsWithHTTPClient creates a new PostAlertsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostAlertsParamsWithTimeout ¶
func NewPostAlertsParamsWithTimeout(timeout time.Duration) *PostAlertsParams
NewPostAlertsParamsWithTimeout creates a new PostAlertsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostAlertsParams) SetAlerts ¶
func (o *PostAlertsParams) SetAlerts(alerts ammodels.PostableAlerts)
SetAlerts adds the alerts to the post alerts params
func (*PostAlertsParams) SetContext ¶
func (o *PostAlertsParams) SetContext(ctx context.Context)
SetContext adds the context to the post alerts params
func (*PostAlertsParams) SetHTTPClient ¶
func (o *PostAlertsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post alerts params
func (*PostAlertsParams) SetTimeout ¶
func (o *PostAlertsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post alerts params
func (*PostAlertsParams) WithAlerts ¶
func (o *PostAlertsParams) WithAlerts(alerts ammodels.PostableAlerts) *PostAlertsParams
WithAlerts adds the alerts to the post alerts params
func (*PostAlertsParams) WithContext ¶
func (o *PostAlertsParams) WithContext(ctx context.Context) *PostAlertsParams
WithContext adds the context to the post alerts params
func (*PostAlertsParams) WithHTTPClient ¶
func (o *PostAlertsParams) WithHTTPClient(client *http.Client) *PostAlertsParams
WithHTTPClient adds the HTTPClient to the post alerts params
func (*PostAlertsParams) WithTimeout ¶
func (o *PostAlertsParams) WithTimeout(timeout time.Duration) *PostAlertsParams
WithTimeout adds the timeout to the post alerts params
func (*PostAlertsParams) WriteToRequest ¶
func (o *PostAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAlertsReader ¶
type PostAlertsReader struct {
// contains filtered or unexported fields
}
PostAlertsReader is a Reader for the PostAlerts structure.
func (*PostAlertsReader) ReadResponse ¶
func (o *PostAlertsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.