alert_rule

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

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

type GetAlertRulesBadRequest struct {
	Payload string
}
GetAlertRulesBadRequest describes a response with status code 400, with default header values.

GetAlertRulesBadRequest get alert rules 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() string

type GetAlertRulesConnectionBadRequest

type GetAlertRulesConnectionBadRequest struct {
	Payload string
}
GetAlertRulesConnectionBadRequest describes a response with status code 400, with default header values.

GetAlertRulesConnectionBadRequest get alert rules connection bad request

func NewGetAlertRulesConnectionBadRequest

func NewGetAlertRulesConnectionBadRequest() *GetAlertRulesConnectionBadRequest

NewGetAlertRulesConnectionBadRequest creates a GetAlertRulesConnectionBadRequest with default headers values

func (*GetAlertRulesConnectionBadRequest) Error

func (*GetAlertRulesConnectionBadRequest) GetPayload

func (o *GetAlertRulesConnectionBadRequest) GetPayload() string

type GetAlertRulesConnectionOK

type GetAlertRulesConnectionOK struct {
	Payload *models.AlertRuleConnection
}
GetAlertRulesConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetAlertRulesConnectionOK

func NewGetAlertRulesConnectionOK() *GetAlertRulesConnectionOK

NewGetAlertRulesConnectionOK creates a GetAlertRulesConnectionOK with default headers values

func (*GetAlertRulesConnectionOK) Error

func (o *GetAlertRulesConnectionOK) Error() string

func (*GetAlertRulesConnectionOK) GetPayload

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

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

WithContext adds the context to the get alert rules connection params

func (*GetAlertRulesConnectionParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get alert rules connection params

func (*GetAlertRulesConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get alert rules connection params

func (*GetAlertRulesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get alert rules connection params

func (*GetAlertRulesConnectionParams) WriteToRequest

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 GetAlertRulesOK

type GetAlertRulesOK struct {
	Payload []*models.AlertRule
}
GetAlertRulesOK describes a response with status code 200, with default header values.

Ok

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

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.

Jump to

Keyboard shortcuts

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