Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAlertRules(params *GetAlertRulesParams, opts ...ClientOption) (*GetAlertRulesOK, error)
- func (a *Client) GetAlertRulesConnection(params *GetAlertRulesConnectionParams, opts ...ClientOption) (*GetAlertRulesConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAlertRulesBadRequest
- type GetAlertRulesConnectionBadRequest
- type GetAlertRulesConnectionInternalServerError
- type GetAlertRulesConnectionNotFound
- type GetAlertRulesConnectionOK
- type GetAlertRulesConnectionParams
- func NewGetAlertRulesConnectionParams() *GetAlertRulesConnectionParams
- func NewGetAlertRulesConnectionParamsWithContext(ctx context.Context) *GetAlertRulesConnectionParams
- func NewGetAlertRulesConnectionParamsWithHTTPClient(client *http.Client) *GetAlertRulesConnectionParams
- func NewGetAlertRulesConnectionParamsWithTimeout(timeout time.Duration) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertRulesConnectionParams) SetContext(ctx context.Context)
- func (o *GetAlertRulesConnectionParams) SetDefaults()
- func (o *GetAlertRulesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertRulesConnectionParams) SetRequestBody(requestBody *models.GetAlertRulesConnectionRequestBody)
- func (o *GetAlertRulesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertRulesConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WithContext(ctx context.Context) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WithDefaults() *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WithHTTPClient(client *http.Client) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WithRequestBody(requestBody *models.GetAlertRulesConnectionRequestBody) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WithTimeout(timeout time.Duration) *GetAlertRulesConnectionParams
- func (o *GetAlertRulesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertRulesConnectionReader
- type GetAlertRulesInternalServerError
- type GetAlertRulesNotFound
- type GetAlertRulesOK
- type GetAlertRulesParams
- func (o *GetAlertRulesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertRulesParams) SetContext(ctx context.Context)
- func (o *GetAlertRulesParams) SetDefaults()
- func (o *GetAlertRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertRulesParams) SetRequestBody(requestBody *models.GetAlertRulesRequestBody)
- func (o *GetAlertRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertRulesParams) WithContentLanguage(contentLanguage *string) *GetAlertRulesParams
- func (o *GetAlertRulesParams) WithContext(ctx context.Context) *GetAlertRulesParams
- func (o *GetAlertRulesParams) WithDefaults() *GetAlertRulesParams
- func (o *GetAlertRulesParams) WithHTTPClient(client *http.Client) *GetAlertRulesParams
- func (o *GetAlertRulesParams) WithRequestBody(requestBody *models.GetAlertRulesRequestBody) *GetAlertRulesParams
- func (o *GetAlertRulesParams) WithTimeout(timeout time.Duration) *GetAlertRulesParams
- func (o *GetAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertRulesReader
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 rule API
func (*Client) GetAlertRules ¶
func (a *Client) GetAlertRules(params *GetAlertRulesParams, opts ...ClientOption) (*GetAlertRulesOK, error)
GetAlertRules get alert rules API
func (*Client) GetAlertRulesConnection ¶
func (a *Client) GetAlertRulesConnection(params *GetAlertRulesConnectionParams, opts ...ClientOption) (*GetAlertRulesConnectionOK, error)
GetAlertRulesConnection get alert rules connection API
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 { GetAlertRules(params *GetAlertRulesParams, opts ...ClientOption) (*GetAlertRulesOK, error) GetAlertRulesConnection(params *GetAlertRulesConnectionParams, opts ...ClientOption) (*GetAlertRulesConnectionOK, 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 rule API client.
type GetAlertRulesBadRequest ¶
GetAlertRulesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertRulesBadRequest ¶
func NewGetAlertRulesBadRequest() *GetAlertRulesBadRequest
NewGetAlertRulesBadRequest creates a GetAlertRulesBadRequest with default headers values
func (*GetAlertRulesBadRequest) Error ¶
func (o *GetAlertRulesBadRequest) Error() string
func (*GetAlertRulesBadRequest) GetPayload ¶
func (o *GetAlertRulesBadRequest) GetPayload() *models.ErrorBody
type GetAlertRulesConnectionBadRequest ¶
GetAlertRulesConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertRulesConnectionBadRequest ¶
func NewGetAlertRulesConnectionBadRequest() *GetAlertRulesConnectionBadRequest
NewGetAlertRulesConnectionBadRequest creates a GetAlertRulesConnectionBadRequest with default headers values
func (*GetAlertRulesConnectionBadRequest) Error ¶
func (o *GetAlertRulesConnectionBadRequest) Error() string
func (*GetAlertRulesConnectionBadRequest) GetPayload ¶
func (o *GetAlertRulesConnectionBadRequest) GetPayload() *models.ErrorBody
type GetAlertRulesConnectionInternalServerError ¶
type GetAlertRulesConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetAlertRulesConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertRulesConnectionInternalServerError ¶
func NewGetAlertRulesConnectionInternalServerError() *GetAlertRulesConnectionInternalServerError
NewGetAlertRulesConnectionInternalServerError creates a GetAlertRulesConnectionInternalServerError with default headers values
func (*GetAlertRulesConnectionInternalServerError) Error ¶
func (o *GetAlertRulesConnectionInternalServerError) Error() string
func (*GetAlertRulesConnectionInternalServerError) GetPayload ¶
func (o *GetAlertRulesConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetAlertRulesConnectionNotFound ¶
GetAlertRulesConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertRulesConnectionNotFound ¶
func NewGetAlertRulesConnectionNotFound() *GetAlertRulesConnectionNotFound
NewGetAlertRulesConnectionNotFound creates a GetAlertRulesConnectionNotFound with default headers values
func (*GetAlertRulesConnectionNotFound) Error ¶
func (o *GetAlertRulesConnectionNotFound) Error() string
func (*GetAlertRulesConnectionNotFound) GetPayload ¶
func (o *GetAlertRulesConnectionNotFound) GetPayload() *models.ErrorBody
type GetAlertRulesConnectionOK ¶
type GetAlertRulesConnectionOK struct { XTowerRequestID string Payload *models.AlertRuleConnection }
GetAlertRulesConnectionOK describes a response with status code 200, with default header values.
GetAlertRulesConnectionOK get alert rules connection o k
func NewGetAlertRulesConnectionOK ¶
func NewGetAlertRulesConnectionOK() *GetAlertRulesConnectionOK
NewGetAlertRulesConnectionOK creates a GetAlertRulesConnectionOK with default headers values
func (*GetAlertRulesConnectionOK) Error ¶
func (o *GetAlertRulesConnectionOK) Error() string
func (*GetAlertRulesConnectionOK) GetPayload ¶
func (o *GetAlertRulesConnectionOK) GetPayload() *models.AlertRuleConnection
type GetAlertRulesConnectionParams ¶
type GetAlertRulesConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetAlertRulesConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAlertRulesConnectionParams contains all the parameters to send to the API endpoint
for the get alert rules connection operation. Typically these are written to a http.Request.
func NewGetAlertRulesConnectionParams ¶
func NewGetAlertRulesConnectionParams() *GetAlertRulesConnectionParams
NewGetAlertRulesConnectionParams creates a new GetAlertRulesConnectionParams 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 NewGetAlertRulesConnectionParamsWithContext ¶
func NewGetAlertRulesConnectionParamsWithContext(ctx context.Context) *GetAlertRulesConnectionParams
NewGetAlertRulesConnectionParamsWithContext creates a new GetAlertRulesConnectionParams object with the ability to set a context for a request.
func NewGetAlertRulesConnectionParamsWithHTTPClient ¶
func NewGetAlertRulesConnectionParamsWithHTTPClient(client *http.Client) *GetAlertRulesConnectionParams
NewGetAlertRulesConnectionParamsWithHTTPClient creates a new GetAlertRulesConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertRulesConnectionParamsWithTimeout ¶
func NewGetAlertRulesConnectionParamsWithTimeout(timeout time.Duration) *GetAlertRulesConnectionParams
NewGetAlertRulesConnectionParamsWithTimeout creates a new GetAlertRulesConnectionParams object with the ability to set a timeout on a request.
func (*GetAlertRulesConnectionParams) SetContentLanguage ¶
func (o *GetAlertRulesConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alert rules connection params
func (*GetAlertRulesConnectionParams) SetContext ¶
func (o *GetAlertRulesConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get alert rules connection params
func (*GetAlertRulesConnectionParams) SetDefaults ¶
func (o *GetAlertRulesConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get alert rules connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertRulesConnectionParams) SetHTTPClient ¶
func (o *GetAlertRulesConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alert rules connection params
func (*GetAlertRulesConnectionParams) SetRequestBody ¶
func (o *GetAlertRulesConnectionParams) SetRequestBody(requestBody *models.GetAlertRulesConnectionRequestBody)
SetRequestBody adds the requestBody to the get alert rules connection params
func (*GetAlertRulesConnectionParams) SetTimeout ¶
func (o *GetAlertRulesConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WithContentLanguage ¶
func (o *GetAlertRulesConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertRulesConnectionParams
WithContentLanguage adds the contentLanguage to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WithContext ¶
func (o *GetAlertRulesConnectionParams) WithContext(ctx context.Context) *GetAlertRulesConnectionParams
WithContext adds the context to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WithDefaults ¶
func (o *GetAlertRulesConnectionParams) WithDefaults() *GetAlertRulesConnectionParams
WithDefaults hydrates default values in the get alert rules connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertRulesConnectionParams) WithHTTPClient ¶
func (o *GetAlertRulesConnectionParams) WithHTTPClient(client *http.Client) *GetAlertRulesConnectionParams
WithHTTPClient adds the HTTPClient to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WithRequestBody ¶
func (o *GetAlertRulesConnectionParams) WithRequestBody(requestBody *models.GetAlertRulesConnectionRequestBody) *GetAlertRulesConnectionParams
WithRequestBody adds the requestBody to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WithTimeout ¶
func (o *GetAlertRulesConnectionParams) WithTimeout(timeout time.Duration) *GetAlertRulesConnectionParams
WithTimeout adds the timeout to the get alert rules connection params
func (*GetAlertRulesConnectionParams) WriteToRequest ¶
func (o *GetAlertRulesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertRulesConnectionReader ¶
type GetAlertRulesConnectionReader struct {
// contains filtered or unexported fields
}
GetAlertRulesConnectionReader is a Reader for the GetAlertRulesConnection structure.
func (*GetAlertRulesConnectionReader) ReadResponse ¶
func (o *GetAlertRulesConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAlertRulesInternalServerError ¶
GetAlertRulesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertRulesInternalServerError ¶
func NewGetAlertRulesInternalServerError() *GetAlertRulesInternalServerError
NewGetAlertRulesInternalServerError creates a GetAlertRulesInternalServerError with default headers values
func (*GetAlertRulesInternalServerError) Error ¶
func (o *GetAlertRulesInternalServerError) Error() string
func (*GetAlertRulesInternalServerError) GetPayload ¶
func (o *GetAlertRulesInternalServerError) GetPayload() *models.ErrorBody
type GetAlertRulesNotFound ¶
GetAlertRulesNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertRulesNotFound ¶
func NewGetAlertRulesNotFound() *GetAlertRulesNotFound
NewGetAlertRulesNotFound creates a GetAlertRulesNotFound with default headers values
func (*GetAlertRulesNotFound) Error ¶
func (o *GetAlertRulesNotFound) Error() string
func (*GetAlertRulesNotFound) GetPayload ¶
func (o *GetAlertRulesNotFound) GetPayload() *models.ErrorBody
type GetAlertRulesOK ¶
GetAlertRulesOK describes a response with status code 200, with default header values.
GetAlertRulesOK get alert rules o k
func NewGetAlertRulesOK ¶
func NewGetAlertRulesOK() *GetAlertRulesOK
NewGetAlertRulesOK creates a GetAlertRulesOK with default headers values
func (*GetAlertRulesOK) Error ¶
func (o *GetAlertRulesOK) Error() string
func (*GetAlertRulesOK) GetPayload ¶
func (o *GetAlertRulesOK) GetPayload() []*models.AlertRule
type GetAlertRulesParams ¶
type GetAlertRulesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetAlertRulesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAlertRulesParams contains all the parameters to send to the API endpoint
for the get alert rules operation. Typically these are written to a http.Request.
func NewGetAlertRulesParams ¶
func NewGetAlertRulesParams() *GetAlertRulesParams
NewGetAlertRulesParams creates a new GetAlertRulesParams 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 NewGetAlertRulesParamsWithContext ¶
func NewGetAlertRulesParamsWithContext(ctx context.Context) *GetAlertRulesParams
NewGetAlertRulesParamsWithContext creates a new GetAlertRulesParams object with the ability to set a context for a request.
func NewGetAlertRulesParamsWithHTTPClient ¶
func NewGetAlertRulesParamsWithHTTPClient(client *http.Client) *GetAlertRulesParams
NewGetAlertRulesParamsWithHTTPClient creates a new GetAlertRulesParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertRulesParamsWithTimeout ¶
func NewGetAlertRulesParamsWithTimeout(timeout time.Duration) *GetAlertRulesParams
NewGetAlertRulesParamsWithTimeout creates a new GetAlertRulesParams object with the ability to set a timeout on a request.
func (*GetAlertRulesParams) SetContentLanguage ¶
func (o *GetAlertRulesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alert rules params
func (*GetAlertRulesParams) SetContext ¶
func (o *GetAlertRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get alert rules params
func (*GetAlertRulesParams) SetDefaults ¶
func (o *GetAlertRulesParams) SetDefaults()
SetDefaults hydrates default values in the get alert rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertRulesParams) SetHTTPClient ¶
func (o *GetAlertRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alert rules params
func (*GetAlertRulesParams) SetRequestBody ¶
func (o *GetAlertRulesParams) SetRequestBody(requestBody *models.GetAlertRulesRequestBody)
SetRequestBody adds the requestBody to the get alert rules params
func (*GetAlertRulesParams) SetTimeout ¶
func (o *GetAlertRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alert rules params
func (*GetAlertRulesParams) WithContentLanguage ¶
func (o *GetAlertRulesParams) WithContentLanguage(contentLanguage *string) *GetAlertRulesParams
WithContentLanguage adds the contentLanguage to the get alert rules params
func (*GetAlertRulesParams) WithContext ¶
func (o *GetAlertRulesParams) WithContext(ctx context.Context) *GetAlertRulesParams
WithContext adds the context to the get alert rules params
func (*GetAlertRulesParams) WithDefaults ¶
func (o *GetAlertRulesParams) WithDefaults() *GetAlertRulesParams
WithDefaults hydrates default values in the get alert rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertRulesParams) WithHTTPClient ¶
func (o *GetAlertRulesParams) WithHTTPClient(client *http.Client) *GetAlertRulesParams
WithHTTPClient adds the HTTPClient to the get alert rules params
func (*GetAlertRulesParams) WithRequestBody ¶
func (o *GetAlertRulesParams) WithRequestBody(requestBody *models.GetAlertRulesRequestBody) *GetAlertRulesParams
WithRequestBody adds the requestBody to the get alert rules params
func (*GetAlertRulesParams) WithTimeout ¶
func (o *GetAlertRulesParams) WithTimeout(timeout time.Duration) *GetAlertRulesParams
WithTimeout adds the timeout to the get alert rules params
func (*GetAlertRulesParams) WriteToRequest ¶
func (o *GetAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertRulesReader ¶
type GetAlertRulesReader struct {
// contains filtered or unexported fields
}
GetAlertRulesReader is a Reader for the GetAlertRules structure.
func (*GetAlertRulesReader) ReadResponse ¶
func (o *GetAlertRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.