log_scale_alert

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 11 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 log scale alert API

func (*Client) CreateLogScaleAlert

func (a *Client) CreateLogScaleAlert(params *CreateLogScaleAlertParams, opts ...ClientOption) (*CreateLogScaleAlertOK, error)

CreateLogScaleAlert create log scale alert API

func (*Client) DeleteLogScaleAlert

func (a *Client) DeleteLogScaleAlert(params *DeleteLogScaleAlertParams, opts ...ClientOption) (*DeleteLogScaleAlertOK, error)

DeleteLogScaleAlert delete log scale alert API

func (*Client) ListLogScaleAlerts

func (a *Client) ListLogScaleAlerts(params *ListLogScaleAlertsParams, opts ...ClientOption) (*ListLogScaleAlertsOK, error)

ListLogScaleAlerts list log scale alerts API

func (*Client) ReadLogScaleAlert

func (a *Client) ReadLogScaleAlert(params *ReadLogScaleAlertParams, opts ...ClientOption) (*ReadLogScaleAlertOK, error)

ReadLogScaleAlert read log scale alert API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateLogScaleAlert

func (a *Client) UpdateLogScaleAlert(params *UpdateLogScaleAlertParams, opts ...ClientOption) (*UpdateLogScaleAlertOK, error)

UpdateLogScaleAlert update log scale alert API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateLogScaleAlert(params *CreateLogScaleAlertParams, opts ...ClientOption) (*CreateLogScaleAlertOK, error)

	DeleteLogScaleAlert(params *DeleteLogScaleAlertParams, opts ...ClientOption) (*DeleteLogScaleAlertOK, error)

	ListLogScaleAlerts(params *ListLogScaleAlertsParams, opts ...ClientOption) (*ListLogScaleAlertsOK, error)

	ReadLogScaleAlert(params *ReadLogScaleAlertParams, opts ...ClientOption) (*ReadLogScaleAlertOK, error)

	UpdateLogScaleAlert(params *UpdateLogScaleAlertParams, opts ...ClientOption) (*UpdateLogScaleAlertOK, 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 log scale alert API client.

type CreateLogScaleAlertBadRequest

type CreateLogScaleAlertBadRequest struct {
	Payload *models.APIError
}

CreateLogScaleAlertBadRequest describes a response with status code 400, with default header values.

Cannot create the LogScaleAlert because the request is invalid.

func NewCreateLogScaleAlertBadRequest

func NewCreateLogScaleAlertBadRequest() *CreateLogScaleAlertBadRequest

NewCreateLogScaleAlertBadRequest creates a CreateLogScaleAlertBadRequest with default headers values

func (*CreateLogScaleAlertBadRequest) Code

Code gets the status code for the create log scale alert bad request response

func (*CreateLogScaleAlertBadRequest) Error

func (*CreateLogScaleAlertBadRequest) GetPayload

func (*CreateLogScaleAlertBadRequest) IsClientError

func (o *CreateLogScaleAlertBadRequest) IsClientError() bool

IsClientError returns true when this create log scale alert bad request response has a 4xx status code

func (*CreateLogScaleAlertBadRequest) IsCode

func (o *CreateLogScaleAlertBadRequest) IsCode(code int) bool

IsCode returns true when this create log scale alert bad request response a status code equal to that given

func (*CreateLogScaleAlertBadRequest) IsRedirect

func (o *CreateLogScaleAlertBadRequest) IsRedirect() bool

IsRedirect returns true when this create log scale alert bad request response has a 3xx status code

func (*CreateLogScaleAlertBadRequest) IsServerError

func (o *CreateLogScaleAlertBadRequest) IsServerError() bool

IsServerError returns true when this create log scale alert bad request response has a 5xx status code

func (*CreateLogScaleAlertBadRequest) IsSuccess

func (o *CreateLogScaleAlertBadRequest) IsSuccess() bool

IsSuccess returns true when this create log scale alert bad request response has a 2xx status code

func (*CreateLogScaleAlertBadRequest) String

type CreateLogScaleAlertConflict

type CreateLogScaleAlertConflict struct {
	Payload *models.APIError
}

CreateLogScaleAlertConflict describes a response with status code 409, with default header values.

Cannot create the LogScaleAlert because there is a conflict with an existing LogScaleAlert.

func NewCreateLogScaleAlertConflict

func NewCreateLogScaleAlertConflict() *CreateLogScaleAlertConflict

NewCreateLogScaleAlertConflict creates a CreateLogScaleAlertConflict with default headers values

func (*CreateLogScaleAlertConflict) Code

func (o *CreateLogScaleAlertConflict) Code() int

Code gets the status code for the create log scale alert conflict response

func (*CreateLogScaleAlertConflict) Error

func (*CreateLogScaleAlertConflict) GetPayload

func (o *CreateLogScaleAlertConflict) GetPayload() *models.APIError

func (*CreateLogScaleAlertConflict) IsClientError

func (o *CreateLogScaleAlertConflict) IsClientError() bool

IsClientError returns true when this create log scale alert conflict response has a 4xx status code

func (*CreateLogScaleAlertConflict) IsCode

func (o *CreateLogScaleAlertConflict) IsCode(code int) bool

IsCode returns true when this create log scale alert conflict response a status code equal to that given

func (*CreateLogScaleAlertConflict) IsRedirect

func (o *CreateLogScaleAlertConflict) IsRedirect() bool

IsRedirect returns true when this create log scale alert conflict response has a 3xx status code

func (*CreateLogScaleAlertConflict) IsServerError

func (o *CreateLogScaleAlertConflict) IsServerError() bool

IsServerError returns true when this create log scale alert conflict response has a 5xx status code

func (*CreateLogScaleAlertConflict) IsSuccess

func (o *CreateLogScaleAlertConflict) IsSuccess() bool

IsSuccess returns true when this create log scale alert conflict response has a 2xx status code

func (*CreateLogScaleAlertConflict) String

func (o *CreateLogScaleAlertConflict) String() string

type CreateLogScaleAlertDefault

type CreateLogScaleAlertDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateLogScaleAlertDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateLogScaleAlertDefault

func NewCreateLogScaleAlertDefault(code int) *CreateLogScaleAlertDefault

NewCreateLogScaleAlertDefault creates a CreateLogScaleAlertDefault with default headers values

func (*CreateLogScaleAlertDefault) Code

func (o *CreateLogScaleAlertDefault) Code() int

Code gets the status code for the create log scale alert default response

func (*CreateLogScaleAlertDefault) Error

func (*CreateLogScaleAlertDefault) GetPayload

func (*CreateLogScaleAlertDefault) IsClientError

func (o *CreateLogScaleAlertDefault) IsClientError() bool

IsClientError returns true when this create log scale alert default response has a 4xx status code

func (*CreateLogScaleAlertDefault) IsCode

func (o *CreateLogScaleAlertDefault) IsCode(code int) bool

IsCode returns true when this create log scale alert default response a status code equal to that given

func (*CreateLogScaleAlertDefault) IsRedirect

func (o *CreateLogScaleAlertDefault) IsRedirect() bool

IsRedirect returns true when this create log scale alert default response has a 3xx status code

func (*CreateLogScaleAlertDefault) IsServerError

func (o *CreateLogScaleAlertDefault) IsServerError() bool

IsServerError returns true when this create log scale alert default response has a 5xx status code

func (*CreateLogScaleAlertDefault) IsSuccess

func (o *CreateLogScaleAlertDefault) IsSuccess() bool

IsSuccess returns true when this create log scale alert default response has a 2xx status code

func (*CreateLogScaleAlertDefault) String

func (o *CreateLogScaleAlertDefault) String() string

type CreateLogScaleAlertInternalServerError

type CreateLogScaleAlertInternalServerError struct {
	Payload *models.APIError
}

CreateLogScaleAlertInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateLogScaleAlertInternalServerError

func NewCreateLogScaleAlertInternalServerError() *CreateLogScaleAlertInternalServerError

NewCreateLogScaleAlertInternalServerError creates a CreateLogScaleAlertInternalServerError with default headers values

func (*CreateLogScaleAlertInternalServerError) Code

Code gets the status code for the create log scale alert internal server error response

func (*CreateLogScaleAlertInternalServerError) Error

func (*CreateLogScaleAlertInternalServerError) GetPayload

func (*CreateLogScaleAlertInternalServerError) IsClientError

func (o *CreateLogScaleAlertInternalServerError) IsClientError() bool

IsClientError returns true when this create log scale alert internal server error response has a 4xx status code

func (*CreateLogScaleAlertInternalServerError) IsCode

IsCode returns true when this create log scale alert internal server error response a status code equal to that given

func (*CreateLogScaleAlertInternalServerError) IsRedirect

IsRedirect returns true when this create log scale alert internal server error response has a 3xx status code

func (*CreateLogScaleAlertInternalServerError) IsServerError

func (o *CreateLogScaleAlertInternalServerError) IsServerError() bool

IsServerError returns true when this create log scale alert internal server error response has a 5xx status code

func (*CreateLogScaleAlertInternalServerError) IsSuccess

IsSuccess returns true when this create log scale alert internal server error response has a 2xx status code

func (*CreateLogScaleAlertInternalServerError) String

type CreateLogScaleAlertOK

type CreateLogScaleAlertOK struct {
	Payload *models.Configv1CreateLogScaleAlertResponse
}

CreateLogScaleAlertOK describes a response with status code 200, with default header values.

A successful response containing the created LogScaleAlert.

func NewCreateLogScaleAlertOK

func NewCreateLogScaleAlertOK() *CreateLogScaleAlertOK

NewCreateLogScaleAlertOK creates a CreateLogScaleAlertOK with default headers values

func (*CreateLogScaleAlertOK) Code

func (o *CreateLogScaleAlertOK) Code() int

Code gets the status code for the create log scale alert o k response

func (*CreateLogScaleAlertOK) Error

func (o *CreateLogScaleAlertOK) Error() string

func (*CreateLogScaleAlertOK) GetPayload

func (*CreateLogScaleAlertOK) IsClientError

func (o *CreateLogScaleAlertOK) IsClientError() bool

IsClientError returns true when this create log scale alert o k response has a 4xx status code

func (*CreateLogScaleAlertOK) IsCode

func (o *CreateLogScaleAlertOK) IsCode(code int) bool

IsCode returns true when this create log scale alert o k response a status code equal to that given

func (*CreateLogScaleAlertOK) IsRedirect

func (o *CreateLogScaleAlertOK) IsRedirect() bool

IsRedirect returns true when this create log scale alert o k response has a 3xx status code

func (*CreateLogScaleAlertOK) IsServerError

func (o *CreateLogScaleAlertOK) IsServerError() bool

IsServerError returns true when this create log scale alert o k response has a 5xx status code

func (*CreateLogScaleAlertOK) IsSuccess

func (o *CreateLogScaleAlertOK) IsSuccess() bool

IsSuccess returns true when this create log scale alert o k response has a 2xx status code

func (*CreateLogScaleAlertOK) String

func (o *CreateLogScaleAlertOK) String() string

type CreateLogScaleAlertParams

type CreateLogScaleAlertParams struct {

	// Body.
	Body *models.Configv1CreateLogScaleAlertRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateLogScaleAlertParams contains all the parameters to send to the API endpoint

for the create log scale alert operation.

Typically these are written to a http.Request.

func NewCreateLogScaleAlertParams

func NewCreateLogScaleAlertParams() *CreateLogScaleAlertParams

NewCreateLogScaleAlertParams creates a new CreateLogScaleAlertParams 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 NewCreateLogScaleAlertParamsWithContext

func NewCreateLogScaleAlertParamsWithContext(ctx context.Context) *CreateLogScaleAlertParams

NewCreateLogScaleAlertParamsWithContext creates a new CreateLogScaleAlertParams object with the ability to set a context for a request.

func NewCreateLogScaleAlertParamsWithHTTPClient

func NewCreateLogScaleAlertParamsWithHTTPClient(client *http.Client) *CreateLogScaleAlertParams

NewCreateLogScaleAlertParamsWithHTTPClient creates a new CreateLogScaleAlertParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLogScaleAlertParamsWithTimeout

func NewCreateLogScaleAlertParamsWithTimeout(timeout time.Duration) *CreateLogScaleAlertParams

NewCreateLogScaleAlertParamsWithTimeout creates a new CreateLogScaleAlertParams object with the ability to set a timeout on a request.

func (*CreateLogScaleAlertParams) SetBody

SetBody adds the body to the create log scale alert params

func (*CreateLogScaleAlertParams) SetContext

func (o *CreateLogScaleAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the create log scale alert params

func (*CreateLogScaleAlertParams) SetDefaults

func (o *CreateLogScaleAlertParams) SetDefaults()

SetDefaults hydrates default values in the create log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*CreateLogScaleAlertParams) SetHTTPClient

func (o *CreateLogScaleAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create log scale alert params

func (*CreateLogScaleAlertParams) SetTimeout

func (o *CreateLogScaleAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create log scale alert params

func (*CreateLogScaleAlertParams) WithBody

WithBody adds the body to the create log scale alert params

func (*CreateLogScaleAlertParams) WithContext

WithContext adds the context to the create log scale alert params

func (*CreateLogScaleAlertParams) WithDefaults

WithDefaults hydrates default values in the create log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*CreateLogScaleAlertParams) WithHTTPClient

func (o *CreateLogScaleAlertParams) WithHTTPClient(client *http.Client) *CreateLogScaleAlertParams

WithHTTPClient adds the HTTPClient to the create log scale alert params

func (*CreateLogScaleAlertParams) WithTimeout

WithTimeout adds the timeout to the create log scale alert params

func (*CreateLogScaleAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLogScaleAlertReader

type CreateLogScaleAlertReader struct {
	// contains filtered or unexported fields
}

CreateLogScaleAlertReader is a Reader for the CreateLogScaleAlert structure.

func (*CreateLogScaleAlertReader) ReadResponse

func (o *CreateLogScaleAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteLogScaleAlertBadRequest

type DeleteLogScaleAlertBadRequest struct {
	Payload *models.APIError
}

DeleteLogScaleAlertBadRequest describes a response with status code 400, with default header values.

Cannot delete the LogScaleAlert because it is in use.

func NewDeleteLogScaleAlertBadRequest

func NewDeleteLogScaleAlertBadRequest() *DeleteLogScaleAlertBadRequest

NewDeleteLogScaleAlertBadRequest creates a DeleteLogScaleAlertBadRequest with default headers values

func (*DeleteLogScaleAlertBadRequest) Code

Code gets the status code for the delete log scale alert bad request response

func (*DeleteLogScaleAlertBadRequest) Error

func (*DeleteLogScaleAlertBadRequest) GetPayload

func (*DeleteLogScaleAlertBadRequest) IsClientError

func (o *DeleteLogScaleAlertBadRequest) IsClientError() bool

IsClientError returns true when this delete log scale alert bad request response has a 4xx status code

func (*DeleteLogScaleAlertBadRequest) IsCode

func (o *DeleteLogScaleAlertBadRequest) IsCode(code int) bool

IsCode returns true when this delete log scale alert bad request response a status code equal to that given

func (*DeleteLogScaleAlertBadRequest) IsRedirect

func (o *DeleteLogScaleAlertBadRequest) IsRedirect() bool

IsRedirect returns true when this delete log scale alert bad request response has a 3xx status code

func (*DeleteLogScaleAlertBadRequest) IsServerError

func (o *DeleteLogScaleAlertBadRequest) IsServerError() bool

IsServerError returns true when this delete log scale alert bad request response has a 5xx status code

func (*DeleteLogScaleAlertBadRequest) IsSuccess

func (o *DeleteLogScaleAlertBadRequest) IsSuccess() bool

IsSuccess returns true when this delete log scale alert bad request response has a 2xx status code

func (*DeleteLogScaleAlertBadRequest) String

type DeleteLogScaleAlertDefault

type DeleteLogScaleAlertDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteLogScaleAlertDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteLogScaleAlertDefault

func NewDeleteLogScaleAlertDefault(code int) *DeleteLogScaleAlertDefault

NewDeleteLogScaleAlertDefault creates a DeleteLogScaleAlertDefault with default headers values

func (*DeleteLogScaleAlertDefault) Code

func (o *DeleteLogScaleAlertDefault) Code() int

Code gets the status code for the delete log scale alert default response

func (*DeleteLogScaleAlertDefault) Error

func (*DeleteLogScaleAlertDefault) GetPayload

func (*DeleteLogScaleAlertDefault) IsClientError

func (o *DeleteLogScaleAlertDefault) IsClientError() bool

IsClientError returns true when this delete log scale alert default response has a 4xx status code

func (*DeleteLogScaleAlertDefault) IsCode

func (o *DeleteLogScaleAlertDefault) IsCode(code int) bool

IsCode returns true when this delete log scale alert default response a status code equal to that given

func (*DeleteLogScaleAlertDefault) IsRedirect

func (o *DeleteLogScaleAlertDefault) IsRedirect() bool

IsRedirect returns true when this delete log scale alert default response has a 3xx status code

func (*DeleteLogScaleAlertDefault) IsServerError

func (o *DeleteLogScaleAlertDefault) IsServerError() bool

IsServerError returns true when this delete log scale alert default response has a 5xx status code

func (*DeleteLogScaleAlertDefault) IsSuccess

func (o *DeleteLogScaleAlertDefault) IsSuccess() bool

IsSuccess returns true when this delete log scale alert default response has a 2xx status code

func (*DeleteLogScaleAlertDefault) String

func (o *DeleteLogScaleAlertDefault) String() string

type DeleteLogScaleAlertInternalServerError

type DeleteLogScaleAlertInternalServerError struct {
	Payload *models.APIError
}

DeleteLogScaleAlertInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteLogScaleAlertInternalServerError

func NewDeleteLogScaleAlertInternalServerError() *DeleteLogScaleAlertInternalServerError

NewDeleteLogScaleAlertInternalServerError creates a DeleteLogScaleAlertInternalServerError with default headers values

func (*DeleteLogScaleAlertInternalServerError) Code

Code gets the status code for the delete log scale alert internal server error response

func (*DeleteLogScaleAlertInternalServerError) Error

func (*DeleteLogScaleAlertInternalServerError) GetPayload

func (*DeleteLogScaleAlertInternalServerError) IsClientError

func (o *DeleteLogScaleAlertInternalServerError) IsClientError() bool

IsClientError returns true when this delete log scale alert internal server error response has a 4xx status code

func (*DeleteLogScaleAlertInternalServerError) IsCode

IsCode returns true when this delete log scale alert internal server error response a status code equal to that given

func (*DeleteLogScaleAlertInternalServerError) IsRedirect

IsRedirect returns true when this delete log scale alert internal server error response has a 3xx status code

func (*DeleteLogScaleAlertInternalServerError) IsServerError

func (o *DeleteLogScaleAlertInternalServerError) IsServerError() bool

IsServerError returns true when this delete log scale alert internal server error response has a 5xx status code

func (*DeleteLogScaleAlertInternalServerError) IsSuccess

IsSuccess returns true when this delete log scale alert internal server error response has a 2xx status code

func (*DeleteLogScaleAlertInternalServerError) String

type DeleteLogScaleAlertNotFound

type DeleteLogScaleAlertNotFound struct {
	Payload *models.APIError
}

DeleteLogScaleAlertNotFound describes a response with status code 404, with default header values.

Cannot delete the LogScaleAlert because the slug does not exist.

func NewDeleteLogScaleAlertNotFound

func NewDeleteLogScaleAlertNotFound() *DeleteLogScaleAlertNotFound

NewDeleteLogScaleAlertNotFound creates a DeleteLogScaleAlertNotFound with default headers values

func (*DeleteLogScaleAlertNotFound) Code

func (o *DeleteLogScaleAlertNotFound) Code() int

Code gets the status code for the delete log scale alert not found response

func (*DeleteLogScaleAlertNotFound) Error

func (*DeleteLogScaleAlertNotFound) GetPayload

func (o *DeleteLogScaleAlertNotFound) GetPayload() *models.APIError

func (*DeleteLogScaleAlertNotFound) IsClientError

func (o *DeleteLogScaleAlertNotFound) IsClientError() bool

IsClientError returns true when this delete log scale alert not found response has a 4xx status code

func (*DeleteLogScaleAlertNotFound) IsCode

func (o *DeleteLogScaleAlertNotFound) IsCode(code int) bool

IsCode returns true when this delete log scale alert not found response a status code equal to that given

func (*DeleteLogScaleAlertNotFound) IsRedirect

func (o *DeleteLogScaleAlertNotFound) IsRedirect() bool

IsRedirect returns true when this delete log scale alert not found response has a 3xx status code

func (*DeleteLogScaleAlertNotFound) IsServerError

func (o *DeleteLogScaleAlertNotFound) IsServerError() bool

IsServerError returns true when this delete log scale alert not found response has a 5xx status code

func (*DeleteLogScaleAlertNotFound) IsSuccess

func (o *DeleteLogScaleAlertNotFound) IsSuccess() bool

IsSuccess returns true when this delete log scale alert not found response has a 2xx status code

func (*DeleteLogScaleAlertNotFound) String

func (o *DeleteLogScaleAlertNotFound) String() string

type DeleteLogScaleAlertOK

type DeleteLogScaleAlertOK struct {
	Payload models.Configv1DeleteLogScaleAlertResponse
}

DeleteLogScaleAlertOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteLogScaleAlertOK

func NewDeleteLogScaleAlertOK() *DeleteLogScaleAlertOK

NewDeleteLogScaleAlertOK creates a DeleteLogScaleAlertOK with default headers values

func (*DeleteLogScaleAlertOK) Code

func (o *DeleteLogScaleAlertOK) Code() int

Code gets the status code for the delete log scale alert o k response

func (*DeleteLogScaleAlertOK) Error

func (o *DeleteLogScaleAlertOK) Error() string

func (*DeleteLogScaleAlertOK) GetPayload

func (*DeleteLogScaleAlertOK) IsClientError

func (o *DeleteLogScaleAlertOK) IsClientError() bool

IsClientError returns true when this delete log scale alert o k response has a 4xx status code

func (*DeleteLogScaleAlertOK) IsCode

func (o *DeleteLogScaleAlertOK) IsCode(code int) bool

IsCode returns true when this delete log scale alert o k response a status code equal to that given

func (*DeleteLogScaleAlertOK) IsRedirect

func (o *DeleteLogScaleAlertOK) IsRedirect() bool

IsRedirect returns true when this delete log scale alert o k response has a 3xx status code

func (*DeleteLogScaleAlertOK) IsServerError

func (o *DeleteLogScaleAlertOK) IsServerError() bool

IsServerError returns true when this delete log scale alert o k response has a 5xx status code

func (*DeleteLogScaleAlertOK) IsSuccess

func (o *DeleteLogScaleAlertOK) IsSuccess() bool

IsSuccess returns true when this delete log scale alert o k response has a 2xx status code

func (*DeleteLogScaleAlertOK) String

func (o *DeleteLogScaleAlertOK) String() string

type DeleteLogScaleAlertParams

type DeleteLogScaleAlertParams struct {

	// Slug.
	Slug string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteLogScaleAlertParams contains all the parameters to send to the API endpoint

for the delete log scale alert operation.

Typically these are written to a http.Request.

func NewDeleteLogScaleAlertParams

func NewDeleteLogScaleAlertParams() *DeleteLogScaleAlertParams

NewDeleteLogScaleAlertParams creates a new DeleteLogScaleAlertParams 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 NewDeleteLogScaleAlertParamsWithContext

func NewDeleteLogScaleAlertParamsWithContext(ctx context.Context) *DeleteLogScaleAlertParams

NewDeleteLogScaleAlertParamsWithContext creates a new DeleteLogScaleAlertParams object with the ability to set a context for a request.

func NewDeleteLogScaleAlertParamsWithHTTPClient

func NewDeleteLogScaleAlertParamsWithHTTPClient(client *http.Client) *DeleteLogScaleAlertParams

NewDeleteLogScaleAlertParamsWithHTTPClient creates a new DeleteLogScaleAlertParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLogScaleAlertParamsWithTimeout

func NewDeleteLogScaleAlertParamsWithTimeout(timeout time.Duration) *DeleteLogScaleAlertParams

NewDeleteLogScaleAlertParamsWithTimeout creates a new DeleteLogScaleAlertParams object with the ability to set a timeout on a request.

func (*DeleteLogScaleAlertParams) SetContext

func (o *DeleteLogScaleAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the delete log scale alert params

func (*DeleteLogScaleAlertParams) SetDefaults

func (o *DeleteLogScaleAlertParams) SetDefaults()

SetDefaults hydrates default values in the delete log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteLogScaleAlertParams) SetHTTPClient

func (o *DeleteLogScaleAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete log scale alert params

func (*DeleteLogScaleAlertParams) SetSlug

func (o *DeleteLogScaleAlertParams) SetSlug(slug string)

SetSlug adds the slug to the delete log scale alert params

func (*DeleteLogScaleAlertParams) SetTimeout

func (o *DeleteLogScaleAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete log scale alert params

func (*DeleteLogScaleAlertParams) WithContext

WithContext adds the context to the delete log scale alert params

func (*DeleteLogScaleAlertParams) WithDefaults

WithDefaults hydrates default values in the delete log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteLogScaleAlertParams) WithHTTPClient

func (o *DeleteLogScaleAlertParams) WithHTTPClient(client *http.Client) *DeleteLogScaleAlertParams

WithHTTPClient adds the HTTPClient to the delete log scale alert params

func (*DeleteLogScaleAlertParams) WithSlug

WithSlug adds the slug to the delete log scale alert params

func (*DeleteLogScaleAlertParams) WithTimeout

WithTimeout adds the timeout to the delete log scale alert params

func (*DeleteLogScaleAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLogScaleAlertReader

type DeleteLogScaleAlertReader struct {
	// contains filtered or unexported fields
}

DeleteLogScaleAlertReader is a Reader for the DeleteLogScaleAlert structure.

func (*DeleteLogScaleAlertReader) ReadResponse

func (o *DeleteLogScaleAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListLogScaleAlertsDefault

type ListLogScaleAlertsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListLogScaleAlertsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListLogScaleAlertsDefault

func NewListLogScaleAlertsDefault(code int) *ListLogScaleAlertsDefault

NewListLogScaleAlertsDefault creates a ListLogScaleAlertsDefault with default headers values

func (*ListLogScaleAlertsDefault) Code

func (o *ListLogScaleAlertsDefault) Code() int

Code gets the status code for the list log scale alerts default response

func (*ListLogScaleAlertsDefault) Error

func (o *ListLogScaleAlertsDefault) Error() string

func (*ListLogScaleAlertsDefault) GetPayload

func (*ListLogScaleAlertsDefault) IsClientError

func (o *ListLogScaleAlertsDefault) IsClientError() bool

IsClientError returns true when this list log scale alerts default response has a 4xx status code

func (*ListLogScaleAlertsDefault) IsCode

func (o *ListLogScaleAlertsDefault) IsCode(code int) bool

IsCode returns true when this list log scale alerts default response a status code equal to that given

func (*ListLogScaleAlertsDefault) IsRedirect

func (o *ListLogScaleAlertsDefault) IsRedirect() bool

IsRedirect returns true when this list log scale alerts default response has a 3xx status code

func (*ListLogScaleAlertsDefault) IsServerError

func (o *ListLogScaleAlertsDefault) IsServerError() bool

IsServerError returns true when this list log scale alerts default response has a 5xx status code

func (*ListLogScaleAlertsDefault) IsSuccess

func (o *ListLogScaleAlertsDefault) IsSuccess() bool

IsSuccess returns true when this list log scale alerts default response has a 2xx status code

func (*ListLogScaleAlertsDefault) String

func (o *ListLogScaleAlertsDefault) String() string

type ListLogScaleAlertsInternalServerError

type ListLogScaleAlertsInternalServerError struct {
	Payload *models.APIError
}

ListLogScaleAlertsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListLogScaleAlertsInternalServerError

func NewListLogScaleAlertsInternalServerError() *ListLogScaleAlertsInternalServerError

NewListLogScaleAlertsInternalServerError creates a ListLogScaleAlertsInternalServerError with default headers values

func (*ListLogScaleAlertsInternalServerError) Code

Code gets the status code for the list log scale alerts internal server error response

func (*ListLogScaleAlertsInternalServerError) Error

func (*ListLogScaleAlertsInternalServerError) GetPayload

func (*ListLogScaleAlertsInternalServerError) IsClientError

func (o *ListLogScaleAlertsInternalServerError) IsClientError() bool

IsClientError returns true when this list log scale alerts internal server error response has a 4xx status code

func (*ListLogScaleAlertsInternalServerError) IsCode

IsCode returns true when this list log scale alerts internal server error response a status code equal to that given

func (*ListLogScaleAlertsInternalServerError) IsRedirect

IsRedirect returns true when this list log scale alerts internal server error response has a 3xx status code

func (*ListLogScaleAlertsInternalServerError) IsServerError

func (o *ListLogScaleAlertsInternalServerError) IsServerError() bool

IsServerError returns true when this list log scale alerts internal server error response has a 5xx status code

func (*ListLogScaleAlertsInternalServerError) IsSuccess

IsSuccess returns true when this list log scale alerts internal server error response has a 2xx status code

func (*ListLogScaleAlertsInternalServerError) String

type ListLogScaleAlertsOK

type ListLogScaleAlertsOK struct {
	Payload *models.Configv1ListLogScaleAlertsResponse
}

ListLogScaleAlertsOK describes a response with status code 200, with default header values.

A successful response.

func NewListLogScaleAlertsOK

func NewListLogScaleAlertsOK() *ListLogScaleAlertsOK

NewListLogScaleAlertsOK creates a ListLogScaleAlertsOK with default headers values

func (*ListLogScaleAlertsOK) Code

func (o *ListLogScaleAlertsOK) Code() int

Code gets the status code for the list log scale alerts o k response

func (*ListLogScaleAlertsOK) Error

func (o *ListLogScaleAlertsOK) Error() string

func (*ListLogScaleAlertsOK) GetPayload

func (*ListLogScaleAlertsOK) IsClientError

func (o *ListLogScaleAlertsOK) IsClientError() bool

IsClientError returns true when this list log scale alerts o k response has a 4xx status code

func (*ListLogScaleAlertsOK) IsCode

func (o *ListLogScaleAlertsOK) IsCode(code int) bool

IsCode returns true when this list log scale alerts o k response a status code equal to that given

func (*ListLogScaleAlertsOK) IsRedirect

func (o *ListLogScaleAlertsOK) IsRedirect() bool

IsRedirect returns true when this list log scale alerts o k response has a 3xx status code

func (*ListLogScaleAlertsOK) IsServerError

func (o *ListLogScaleAlertsOK) IsServerError() bool

IsServerError returns true when this list log scale alerts o k response has a 5xx status code

func (*ListLogScaleAlertsOK) IsSuccess

func (o *ListLogScaleAlertsOK) IsSuccess() bool

IsSuccess returns true when this list log scale alerts o k response has a 2xx status code

func (*ListLogScaleAlertsOK) String

func (o *ListLogScaleAlertsOK) String() string

type ListLogScaleAlertsParams

type ListLogScaleAlertsParams struct {

	/* Names.

	   Filters results by name, where any LogScaleAlert with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any LogScaleAlert with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListLogScaleAlertsParams contains all the parameters to send to the API endpoint

for the list log scale alerts operation.

Typically these are written to a http.Request.

func NewListLogScaleAlertsParams

func NewListLogScaleAlertsParams() *ListLogScaleAlertsParams

NewListLogScaleAlertsParams creates a new ListLogScaleAlertsParams 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 NewListLogScaleAlertsParamsWithContext

func NewListLogScaleAlertsParamsWithContext(ctx context.Context) *ListLogScaleAlertsParams

NewListLogScaleAlertsParamsWithContext creates a new ListLogScaleAlertsParams object with the ability to set a context for a request.

func NewListLogScaleAlertsParamsWithHTTPClient

func NewListLogScaleAlertsParamsWithHTTPClient(client *http.Client) *ListLogScaleAlertsParams

NewListLogScaleAlertsParamsWithHTTPClient creates a new ListLogScaleAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewListLogScaleAlertsParamsWithTimeout

func NewListLogScaleAlertsParamsWithTimeout(timeout time.Duration) *ListLogScaleAlertsParams

NewListLogScaleAlertsParamsWithTimeout creates a new ListLogScaleAlertsParams object with the ability to set a timeout on a request.

func (*ListLogScaleAlertsParams) SetContext

func (o *ListLogScaleAlertsParams) SetContext(ctx context.Context)

SetContext adds the context to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetDefaults

func (o *ListLogScaleAlertsParams) SetDefaults()

SetDefaults hydrates default values in the list log scale alerts params (not the query body).

All values with no default are reset to their zero value.

func (*ListLogScaleAlertsParams) SetHTTPClient

func (o *ListLogScaleAlertsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetNames

func (o *ListLogScaleAlertsParams) SetNames(names []string)

SetNames adds the names to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetPageMaxSize

func (o *ListLogScaleAlertsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetPageToken

func (o *ListLogScaleAlertsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetSlugs

func (o *ListLogScaleAlertsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list log scale alerts params

func (*ListLogScaleAlertsParams) SetTimeout

func (o *ListLogScaleAlertsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithContext

WithContext adds the context to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithDefaults

WithDefaults hydrates default values in the list log scale alerts params (not the query body).

All values with no default are reset to their zero value.

func (*ListLogScaleAlertsParams) WithHTTPClient

func (o *ListLogScaleAlertsParams) WithHTTPClient(client *http.Client) *ListLogScaleAlertsParams

WithHTTPClient adds the HTTPClient to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithNames

WithNames adds the names to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithPageMaxSize

func (o *ListLogScaleAlertsParams) WithPageMaxSize(pageMaxSize *int64) *ListLogScaleAlertsParams

WithPageMaxSize adds the pageMaxSize to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithPageToken

func (o *ListLogScaleAlertsParams) WithPageToken(pageToken *string) *ListLogScaleAlertsParams

WithPageToken adds the pageToken to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithSlugs

WithSlugs adds the slugs to the list log scale alerts params

func (*ListLogScaleAlertsParams) WithTimeout

WithTimeout adds the timeout to the list log scale alerts params

func (*ListLogScaleAlertsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLogScaleAlertsReader

type ListLogScaleAlertsReader struct {
	// contains filtered or unexported fields
}

ListLogScaleAlertsReader is a Reader for the ListLogScaleAlerts structure.

func (*ListLogScaleAlertsReader) ReadResponse

func (o *ListLogScaleAlertsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ReadLogScaleAlertDefault

type ReadLogScaleAlertDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadLogScaleAlertDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadLogScaleAlertDefault

func NewReadLogScaleAlertDefault(code int) *ReadLogScaleAlertDefault

NewReadLogScaleAlertDefault creates a ReadLogScaleAlertDefault with default headers values

func (*ReadLogScaleAlertDefault) Code

func (o *ReadLogScaleAlertDefault) Code() int

Code gets the status code for the read log scale alert default response

func (*ReadLogScaleAlertDefault) Error

func (o *ReadLogScaleAlertDefault) Error() string

func (*ReadLogScaleAlertDefault) GetPayload

func (*ReadLogScaleAlertDefault) IsClientError

func (o *ReadLogScaleAlertDefault) IsClientError() bool

IsClientError returns true when this read log scale alert default response has a 4xx status code

func (*ReadLogScaleAlertDefault) IsCode

func (o *ReadLogScaleAlertDefault) IsCode(code int) bool

IsCode returns true when this read log scale alert default response a status code equal to that given

func (*ReadLogScaleAlertDefault) IsRedirect

func (o *ReadLogScaleAlertDefault) IsRedirect() bool

IsRedirect returns true when this read log scale alert default response has a 3xx status code

func (*ReadLogScaleAlertDefault) IsServerError

func (o *ReadLogScaleAlertDefault) IsServerError() bool

IsServerError returns true when this read log scale alert default response has a 5xx status code

func (*ReadLogScaleAlertDefault) IsSuccess

func (o *ReadLogScaleAlertDefault) IsSuccess() bool

IsSuccess returns true when this read log scale alert default response has a 2xx status code

func (*ReadLogScaleAlertDefault) String

func (o *ReadLogScaleAlertDefault) String() string

type ReadLogScaleAlertInternalServerError

type ReadLogScaleAlertInternalServerError struct {
	Payload *models.APIError
}

ReadLogScaleAlertInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadLogScaleAlertInternalServerError

func NewReadLogScaleAlertInternalServerError() *ReadLogScaleAlertInternalServerError

NewReadLogScaleAlertInternalServerError creates a ReadLogScaleAlertInternalServerError with default headers values

func (*ReadLogScaleAlertInternalServerError) Code

Code gets the status code for the read log scale alert internal server error response

func (*ReadLogScaleAlertInternalServerError) Error

func (*ReadLogScaleAlertInternalServerError) GetPayload

func (*ReadLogScaleAlertInternalServerError) IsClientError

func (o *ReadLogScaleAlertInternalServerError) IsClientError() bool

IsClientError returns true when this read log scale alert internal server error response has a 4xx status code

func (*ReadLogScaleAlertInternalServerError) IsCode

IsCode returns true when this read log scale alert internal server error response a status code equal to that given

func (*ReadLogScaleAlertInternalServerError) IsRedirect

IsRedirect returns true when this read log scale alert internal server error response has a 3xx status code

func (*ReadLogScaleAlertInternalServerError) IsServerError

func (o *ReadLogScaleAlertInternalServerError) IsServerError() bool

IsServerError returns true when this read log scale alert internal server error response has a 5xx status code

func (*ReadLogScaleAlertInternalServerError) IsSuccess

IsSuccess returns true when this read log scale alert internal server error response has a 2xx status code

func (*ReadLogScaleAlertInternalServerError) String

type ReadLogScaleAlertNotFound

type ReadLogScaleAlertNotFound struct {
	Payload *models.APIError
}

ReadLogScaleAlertNotFound describes a response with status code 404, with default header values.

Cannot read the LogScaleAlert because the slug does not exist.

func NewReadLogScaleAlertNotFound

func NewReadLogScaleAlertNotFound() *ReadLogScaleAlertNotFound

NewReadLogScaleAlertNotFound creates a ReadLogScaleAlertNotFound with default headers values

func (*ReadLogScaleAlertNotFound) Code

func (o *ReadLogScaleAlertNotFound) Code() int

Code gets the status code for the read log scale alert not found response

func (*ReadLogScaleAlertNotFound) Error

func (o *ReadLogScaleAlertNotFound) Error() string

func (*ReadLogScaleAlertNotFound) GetPayload

func (o *ReadLogScaleAlertNotFound) GetPayload() *models.APIError

func (*ReadLogScaleAlertNotFound) IsClientError

func (o *ReadLogScaleAlertNotFound) IsClientError() bool

IsClientError returns true when this read log scale alert not found response has a 4xx status code

func (*ReadLogScaleAlertNotFound) IsCode

func (o *ReadLogScaleAlertNotFound) IsCode(code int) bool

IsCode returns true when this read log scale alert not found response a status code equal to that given

func (*ReadLogScaleAlertNotFound) IsRedirect

func (o *ReadLogScaleAlertNotFound) IsRedirect() bool

IsRedirect returns true when this read log scale alert not found response has a 3xx status code

func (*ReadLogScaleAlertNotFound) IsServerError

func (o *ReadLogScaleAlertNotFound) IsServerError() bool

IsServerError returns true when this read log scale alert not found response has a 5xx status code

func (*ReadLogScaleAlertNotFound) IsSuccess

func (o *ReadLogScaleAlertNotFound) IsSuccess() bool

IsSuccess returns true when this read log scale alert not found response has a 2xx status code

func (*ReadLogScaleAlertNotFound) String

func (o *ReadLogScaleAlertNotFound) String() string

type ReadLogScaleAlertOK

type ReadLogScaleAlertOK struct {
	Payload *models.Configv1ReadLogScaleAlertResponse
}

ReadLogScaleAlertOK describes a response with status code 200, with default header values.

A successful response.

func NewReadLogScaleAlertOK

func NewReadLogScaleAlertOK() *ReadLogScaleAlertOK

NewReadLogScaleAlertOK creates a ReadLogScaleAlertOK with default headers values

func (*ReadLogScaleAlertOK) Code

func (o *ReadLogScaleAlertOK) Code() int

Code gets the status code for the read log scale alert o k response

func (*ReadLogScaleAlertOK) Error

func (o *ReadLogScaleAlertOK) Error() string

func (*ReadLogScaleAlertOK) GetPayload

func (*ReadLogScaleAlertOK) IsClientError

func (o *ReadLogScaleAlertOK) IsClientError() bool

IsClientError returns true when this read log scale alert o k response has a 4xx status code

func (*ReadLogScaleAlertOK) IsCode

func (o *ReadLogScaleAlertOK) IsCode(code int) bool

IsCode returns true when this read log scale alert o k response a status code equal to that given

func (*ReadLogScaleAlertOK) IsRedirect

func (o *ReadLogScaleAlertOK) IsRedirect() bool

IsRedirect returns true when this read log scale alert o k response has a 3xx status code

func (*ReadLogScaleAlertOK) IsServerError

func (o *ReadLogScaleAlertOK) IsServerError() bool

IsServerError returns true when this read log scale alert o k response has a 5xx status code

func (*ReadLogScaleAlertOK) IsSuccess

func (o *ReadLogScaleAlertOK) IsSuccess() bool

IsSuccess returns true when this read log scale alert o k response has a 2xx status code

func (*ReadLogScaleAlertOK) String

func (o *ReadLogScaleAlertOK) String() string

type ReadLogScaleAlertParams

type ReadLogScaleAlertParams struct {

	// Slug.
	Slug string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReadLogScaleAlertParams contains all the parameters to send to the API endpoint

for the read log scale alert operation.

Typically these are written to a http.Request.

func NewReadLogScaleAlertParams

func NewReadLogScaleAlertParams() *ReadLogScaleAlertParams

NewReadLogScaleAlertParams creates a new ReadLogScaleAlertParams 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 NewReadLogScaleAlertParamsWithContext

func NewReadLogScaleAlertParamsWithContext(ctx context.Context) *ReadLogScaleAlertParams

NewReadLogScaleAlertParamsWithContext creates a new ReadLogScaleAlertParams object with the ability to set a context for a request.

func NewReadLogScaleAlertParamsWithHTTPClient

func NewReadLogScaleAlertParamsWithHTTPClient(client *http.Client) *ReadLogScaleAlertParams

NewReadLogScaleAlertParamsWithHTTPClient creates a new ReadLogScaleAlertParams object with the ability to set a custom HTTPClient for a request.

func NewReadLogScaleAlertParamsWithTimeout

func NewReadLogScaleAlertParamsWithTimeout(timeout time.Duration) *ReadLogScaleAlertParams

NewReadLogScaleAlertParamsWithTimeout creates a new ReadLogScaleAlertParams object with the ability to set a timeout on a request.

func (*ReadLogScaleAlertParams) SetContext

func (o *ReadLogScaleAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the read log scale alert params

func (*ReadLogScaleAlertParams) SetDefaults

func (o *ReadLogScaleAlertParams) SetDefaults()

SetDefaults hydrates default values in the read log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*ReadLogScaleAlertParams) SetHTTPClient

func (o *ReadLogScaleAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the read log scale alert params

func (*ReadLogScaleAlertParams) SetSlug

func (o *ReadLogScaleAlertParams) SetSlug(slug string)

SetSlug adds the slug to the read log scale alert params

func (*ReadLogScaleAlertParams) SetTimeout

func (o *ReadLogScaleAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the read log scale alert params

func (*ReadLogScaleAlertParams) WithContext

WithContext adds the context to the read log scale alert params

func (*ReadLogScaleAlertParams) WithDefaults

WithDefaults hydrates default values in the read log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*ReadLogScaleAlertParams) WithHTTPClient

func (o *ReadLogScaleAlertParams) WithHTTPClient(client *http.Client) *ReadLogScaleAlertParams

WithHTTPClient adds the HTTPClient to the read log scale alert params

func (*ReadLogScaleAlertParams) WithSlug

WithSlug adds the slug to the read log scale alert params

func (*ReadLogScaleAlertParams) WithTimeout

WithTimeout adds the timeout to the read log scale alert params

func (*ReadLogScaleAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadLogScaleAlertReader

type ReadLogScaleAlertReader struct {
	// contains filtered or unexported fields
}

ReadLogScaleAlertReader is a Reader for the ReadLogScaleAlert structure.

func (*ReadLogScaleAlertReader) ReadResponse

func (o *ReadLogScaleAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateLogScaleAlertBadRequest

type UpdateLogScaleAlertBadRequest struct {
	Payload *models.APIError
}

UpdateLogScaleAlertBadRequest describes a response with status code 400, with default header values.

Cannot update the LogScaleAlert because the request is invalid.

func NewUpdateLogScaleAlertBadRequest

func NewUpdateLogScaleAlertBadRequest() *UpdateLogScaleAlertBadRequest

NewUpdateLogScaleAlertBadRequest creates a UpdateLogScaleAlertBadRequest with default headers values

func (*UpdateLogScaleAlertBadRequest) Code

Code gets the status code for the update log scale alert bad request response

func (*UpdateLogScaleAlertBadRequest) Error

func (*UpdateLogScaleAlertBadRequest) GetPayload

func (*UpdateLogScaleAlertBadRequest) IsClientError

func (o *UpdateLogScaleAlertBadRequest) IsClientError() bool

IsClientError returns true when this update log scale alert bad request response has a 4xx status code

func (*UpdateLogScaleAlertBadRequest) IsCode

func (o *UpdateLogScaleAlertBadRequest) IsCode(code int) bool

IsCode returns true when this update log scale alert bad request response a status code equal to that given

func (*UpdateLogScaleAlertBadRequest) IsRedirect

func (o *UpdateLogScaleAlertBadRequest) IsRedirect() bool

IsRedirect returns true when this update log scale alert bad request response has a 3xx status code

func (*UpdateLogScaleAlertBadRequest) IsServerError

func (o *UpdateLogScaleAlertBadRequest) IsServerError() bool

IsServerError returns true when this update log scale alert bad request response has a 5xx status code

func (*UpdateLogScaleAlertBadRequest) IsSuccess

func (o *UpdateLogScaleAlertBadRequest) IsSuccess() bool

IsSuccess returns true when this update log scale alert bad request response has a 2xx status code

func (*UpdateLogScaleAlertBadRequest) String

type UpdateLogScaleAlertConflict

type UpdateLogScaleAlertConflict struct {
	Payload *models.APIError
}

UpdateLogScaleAlertConflict describes a response with status code 409, with default header values.

Cannot update the LogScaleAlert because there is a conflict with an existing LogScaleAlert.

func NewUpdateLogScaleAlertConflict

func NewUpdateLogScaleAlertConflict() *UpdateLogScaleAlertConflict

NewUpdateLogScaleAlertConflict creates a UpdateLogScaleAlertConflict with default headers values

func (*UpdateLogScaleAlertConflict) Code

func (o *UpdateLogScaleAlertConflict) Code() int

Code gets the status code for the update log scale alert conflict response

func (*UpdateLogScaleAlertConflict) Error

func (*UpdateLogScaleAlertConflict) GetPayload

func (o *UpdateLogScaleAlertConflict) GetPayload() *models.APIError

func (*UpdateLogScaleAlertConflict) IsClientError

func (o *UpdateLogScaleAlertConflict) IsClientError() bool

IsClientError returns true when this update log scale alert conflict response has a 4xx status code

func (*UpdateLogScaleAlertConflict) IsCode

func (o *UpdateLogScaleAlertConflict) IsCode(code int) bool

IsCode returns true when this update log scale alert conflict response a status code equal to that given

func (*UpdateLogScaleAlertConflict) IsRedirect

func (o *UpdateLogScaleAlertConflict) IsRedirect() bool

IsRedirect returns true when this update log scale alert conflict response has a 3xx status code

func (*UpdateLogScaleAlertConflict) IsServerError

func (o *UpdateLogScaleAlertConflict) IsServerError() bool

IsServerError returns true when this update log scale alert conflict response has a 5xx status code

func (*UpdateLogScaleAlertConflict) IsSuccess

func (o *UpdateLogScaleAlertConflict) IsSuccess() bool

IsSuccess returns true when this update log scale alert conflict response has a 2xx status code

func (*UpdateLogScaleAlertConflict) String

func (o *UpdateLogScaleAlertConflict) String() string

type UpdateLogScaleAlertDefault

type UpdateLogScaleAlertDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateLogScaleAlertDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateLogScaleAlertDefault

func NewUpdateLogScaleAlertDefault(code int) *UpdateLogScaleAlertDefault

NewUpdateLogScaleAlertDefault creates a UpdateLogScaleAlertDefault with default headers values

func (*UpdateLogScaleAlertDefault) Code

func (o *UpdateLogScaleAlertDefault) Code() int

Code gets the status code for the update log scale alert default response

func (*UpdateLogScaleAlertDefault) Error

func (*UpdateLogScaleAlertDefault) GetPayload

func (*UpdateLogScaleAlertDefault) IsClientError

func (o *UpdateLogScaleAlertDefault) IsClientError() bool

IsClientError returns true when this update log scale alert default response has a 4xx status code

func (*UpdateLogScaleAlertDefault) IsCode

func (o *UpdateLogScaleAlertDefault) IsCode(code int) bool

IsCode returns true when this update log scale alert default response a status code equal to that given

func (*UpdateLogScaleAlertDefault) IsRedirect

func (o *UpdateLogScaleAlertDefault) IsRedirect() bool

IsRedirect returns true when this update log scale alert default response has a 3xx status code

func (*UpdateLogScaleAlertDefault) IsServerError

func (o *UpdateLogScaleAlertDefault) IsServerError() bool

IsServerError returns true when this update log scale alert default response has a 5xx status code

func (*UpdateLogScaleAlertDefault) IsSuccess

func (o *UpdateLogScaleAlertDefault) IsSuccess() bool

IsSuccess returns true when this update log scale alert default response has a 2xx status code

func (*UpdateLogScaleAlertDefault) String

func (o *UpdateLogScaleAlertDefault) String() string

type UpdateLogScaleAlertInternalServerError

type UpdateLogScaleAlertInternalServerError struct {
	Payload *models.APIError
}

UpdateLogScaleAlertInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateLogScaleAlertInternalServerError

func NewUpdateLogScaleAlertInternalServerError() *UpdateLogScaleAlertInternalServerError

NewUpdateLogScaleAlertInternalServerError creates a UpdateLogScaleAlertInternalServerError with default headers values

func (*UpdateLogScaleAlertInternalServerError) Code

Code gets the status code for the update log scale alert internal server error response

func (*UpdateLogScaleAlertInternalServerError) Error

func (*UpdateLogScaleAlertInternalServerError) GetPayload

func (*UpdateLogScaleAlertInternalServerError) IsClientError

func (o *UpdateLogScaleAlertInternalServerError) IsClientError() bool

IsClientError returns true when this update log scale alert internal server error response has a 4xx status code

func (*UpdateLogScaleAlertInternalServerError) IsCode

IsCode returns true when this update log scale alert internal server error response a status code equal to that given

func (*UpdateLogScaleAlertInternalServerError) IsRedirect

IsRedirect returns true when this update log scale alert internal server error response has a 3xx status code

func (*UpdateLogScaleAlertInternalServerError) IsServerError

func (o *UpdateLogScaleAlertInternalServerError) IsServerError() bool

IsServerError returns true when this update log scale alert internal server error response has a 5xx status code

func (*UpdateLogScaleAlertInternalServerError) IsSuccess

IsSuccess returns true when this update log scale alert internal server error response has a 2xx status code

func (*UpdateLogScaleAlertInternalServerError) String

type UpdateLogScaleAlertNotFound

type UpdateLogScaleAlertNotFound struct {
	Payload *models.APIError
}

UpdateLogScaleAlertNotFound describes a response with status code 404, with default header values.

Cannot update the LogScaleAlert because the slug does not exist.

func NewUpdateLogScaleAlertNotFound

func NewUpdateLogScaleAlertNotFound() *UpdateLogScaleAlertNotFound

NewUpdateLogScaleAlertNotFound creates a UpdateLogScaleAlertNotFound with default headers values

func (*UpdateLogScaleAlertNotFound) Code

func (o *UpdateLogScaleAlertNotFound) Code() int

Code gets the status code for the update log scale alert not found response

func (*UpdateLogScaleAlertNotFound) Error

func (*UpdateLogScaleAlertNotFound) GetPayload

func (o *UpdateLogScaleAlertNotFound) GetPayload() *models.APIError

func (*UpdateLogScaleAlertNotFound) IsClientError

func (o *UpdateLogScaleAlertNotFound) IsClientError() bool

IsClientError returns true when this update log scale alert not found response has a 4xx status code

func (*UpdateLogScaleAlertNotFound) IsCode

func (o *UpdateLogScaleAlertNotFound) IsCode(code int) bool

IsCode returns true when this update log scale alert not found response a status code equal to that given

func (*UpdateLogScaleAlertNotFound) IsRedirect

func (o *UpdateLogScaleAlertNotFound) IsRedirect() bool

IsRedirect returns true when this update log scale alert not found response has a 3xx status code

func (*UpdateLogScaleAlertNotFound) IsServerError

func (o *UpdateLogScaleAlertNotFound) IsServerError() bool

IsServerError returns true when this update log scale alert not found response has a 5xx status code

func (*UpdateLogScaleAlertNotFound) IsSuccess

func (o *UpdateLogScaleAlertNotFound) IsSuccess() bool

IsSuccess returns true when this update log scale alert not found response has a 2xx status code

func (*UpdateLogScaleAlertNotFound) String

func (o *UpdateLogScaleAlertNotFound) String() string

type UpdateLogScaleAlertOK

type UpdateLogScaleAlertOK struct {
	Payload *models.Configv1UpdateLogScaleAlertResponse
}

UpdateLogScaleAlertOK describes a response with status code 200, with default header values.

A successful response containing the updated LogScaleAlert.

func NewUpdateLogScaleAlertOK

func NewUpdateLogScaleAlertOK() *UpdateLogScaleAlertOK

NewUpdateLogScaleAlertOK creates a UpdateLogScaleAlertOK with default headers values

func (*UpdateLogScaleAlertOK) Code

func (o *UpdateLogScaleAlertOK) Code() int

Code gets the status code for the update log scale alert o k response

func (*UpdateLogScaleAlertOK) Error

func (o *UpdateLogScaleAlertOK) Error() string

func (*UpdateLogScaleAlertOK) GetPayload

func (*UpdateLogScaleAlertOK) IsClientError

func (o *UpdateLogScaleAlertOK) IsClientError() bool

IsClientError returns true when this update log scale alert o k response has a 4xx status code

func (*UpdateLogScaleAlertOK) IsCode

func (o *UpdateLogScaleAlertOK) IsCode(code int) bool

IsCode returns true when this update log scale alert o k response a status code equal to that given

func (*UpdateLogScaleAlertOK) IsRedirect

func (o *UpdateLogScaleAlertOK) IsRedirect() bool

IsRedirect returns true when this update log scale alert o k response has a 3xx status code

func (*UpdateLogScaleAlertOK) IsServerError

func (o *UpdateLogScaleAlertOK) IsServerError() bool

IsServerError returns true when this update log scale alert o k response has a 5xx status code

func (*UpdateLogScaleAlertOK) IsSuccess

func (o *UpdateLogScaleAlertOK) IsSuccess() bool

IsSuccess returns true when this update log scale alert o k response has a 2xx status code

func (*UpdateLogScaleAlertOK) String

func (o *UpdateLogScaleAlertOK) String() string

type UpdateLogScaleAlertParams

type UpdateLogScaleAlertParams struct {

	// Body.
	Body *models.ConfigV1UpdateLogScaleAlertBody

	// Slug.
	Slug string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateLogScaleAlertParams contains all the parameters to send to the API endpoint

for the update log scale alert operation.

Typically these are written to a http.Request.

func NewUpdateLogScaleAlertParams

func NewUpdateLogScaleAlertParams() *UpdateLogScaleAlertParams

NewUpdateLogScaleAlertParams creates a new UpdateLogScaleAlertParams 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 NewUpdateLogScaleAlertParamsWithContext

func NewUpdateLogScaleAlertParamsWithContext(ctx context.Context) *UpdateLogScaleAlertParams

NewUpdateLogScaleAlertParamsWithContext creates a new UpdateLogScaleAlertParams object with the ability to set a context for a request.

func NewUpdateLogScaleAlertParamsWithHTTPClient

func NewUpdateLogScaleAlertParamsWithHTTPClient(client *http.Client) *UpdateLogScaleAlertParams

NewUpdateLogScaleAlertParamsWithHTTPClient creates a new UpdateLogScaleAlertParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLogScaleAlertParamsWithTimeout

func NewUpdateLogScaleAlertParamsWithTimeout(timeout time.Duration) *UpdateLogScaleAlertParams

NewUpdateLogScaleAlertParamsWithTimeout creates a new UpdateLogScaleAlertParams object with the ability to set a timeout on a request.

func (*UpdateLogScaleAlertParams) SetBody

SetBody adds the body to the update log scale alert params

func (*UpdateLogScaleAlertParams) SetContext

func (o *UpdateLogScaleAlertParams) SetContext(ctx context.Context)

SetContext adds the context to the update log scale alert params

func (*UpdateLogScaleAlertParams) SetDefaults

func (o *UpdateLogScaleAlertParams) SetDefaults()

SetDefaults hydrates default values in the update log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateLogScaleAlertParams) SetHTTPClient

func (o *UpdateLogScaleAlertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update log scale alert params

func (*UpdateLogScaleAlertParams) SetSlug

func (o *UpdateLogScaleAlertParams) SetSlug(slug string)

SetSlug adds the slug to the update log scale alert params

func (*UpdateLogScaleAlertParams) SetTimeout

func (o *UpdateLogScaleAlertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update log scale alert params

func (*UpdateLogScaleAlertParams) WithBody

WithBody adds the body to the update log scale alert params

func (*UpdateLogScaleAlertParams) WithContext

WithContext adds the context to the update log scale alert params

func (*UpdateLogScaleAlertParams) WithDefaults

WithDefaults hydrates default values in the update log scale alert params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateLogScaleAlertParams) WithHTTPClient

func (o *UpdateLogScaleAlertParams) WithHTTPClient(client *http.Client) *UpdateLogScaleAlertParams

WithHTTPClient adds the HTTPClient to the update log scale alert params

func (*UpdateLogScaleAlertParams) WithSlug

WithSlug adds the slug to the update log scale alert params

func (*UpdateLogScaleAlertParams) WithTimeout

WithTimeout adds the timeout to the update log scale alert params

func (*UpdateLogScaleAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLogScaleAlertReader

type UpdateLogScaleAlertReader struct {
	// contains filtered or unexported fields
}

UpdateLogScaleAlertReader is a Reader for the UpdateLogScaleAlert structure.

func (*UpdateLogScaleAlertReader) ReadResponse

func (o *UpdateLogScaleAlertReader) 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