rules

package
v2.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateAlertRuleBodySeveritySEVERITYINVALID captures enum value "SEVERITY_INVALID"
	CreateAlertRuleBodySeveritySEVERITYINVALID string = "SEVERITY_INVALID"

	// CreateAlertRuleBodySeveritySEVERITYEMERGENCY captures enum value "SEVERITY_EMERGENCY"
	CreateAlertRuleBodySeveritySEVERITYEMERGENCY string = "SEVERITY_EMERGENCY"

	// CreateAlertRuleBodySeveritySEVERITYALERT captures enum value "SEVERITY_ALERT"
	CreateAlertRuleBodySeveritySEVERITYALERT string = "SEVERITY_ALERT"

	// CreateAlertRuleBodySeveritySEVERITYCRITICAL captures enum value "SEVERITY_CRITICAL"
	CreateAlertRuleBodySeveritySEVERITYCRITICAL string = "SEVERITY_CRITICAL"

	// CreateAlertRuleBodySeveritySEVERITYERROR captures enum value "SEVERITY_ERROR"
	CreateAlertRuleBodySeveritySEVERITYERROR string = "SEVERITY_ERROR"

	// CreateAlertRuleBodySeveritySEVERITYWARNING captures enum value "SEVERITY_WARNING"
	CreateAlertRuleBodySeveritySEVERITYWARNING string = "SEVERITY_WARNING"

	// CreateAlertRuleBodySeveritySEVERITYNOTICE captures enum value "SEVERITY_NOTICE"
	CreateAlertRuleBodySeveritySEVERITYNOTICE string = "SEVERITY_NOTICE"

	// CreateAlertRuleBodySeveritySEVERITYINFO captures enum value "SEVERITY_INFO"
	CreateAlertRuleBodySeveritySEVERITYINFO string = "SEVERITY_INFO"

	// CreateAlertRuleBodySeveritySEVERITYDEBUG captures enum value "SEVERITY_DEBUG"
	CreateAlertRuleBodySeveritySEVERITYDEBUG string = "SEVERITY_DEBUG"
)
View Source
const (

	// FiltersItems0TypeFILTERTYPEINVALID captures enum value "FILTER_TYPE_INVALID"
	FiltersItems0TypeFILTERTYPEINVALID string = "FILTER_TYPE_INVALID"

	// FiltersItems0TypeEQUAL captures enum value "EQUAL"
	FiltersItems0TypeEQUAL string = "EQUAL"

	// FiltersItems0TypeREGEX captures enum value "REGEX"
	FiltersItems0TypeREGEX string = "REGEX"
)
View Source
const (

	// ParamsItems0TypePARAMTYPEINVALID captures enum value "PARAM_TYPE_INVALID"
	ParamsItems0TypePARAMTYPEINVALID string = "PARAM_TYPE_INVALID"

	// ParamsItems0TypeBOOL captures enum value "BOOL"
	ParamsItems0TypeBOOL string = "BOOL"

	// ParamsItems0TypeFLOAT captures enum value "FLOAT"
	ParamsItems0TypeFLOAT string = "FLOAT"

	// ParamsItems0TypeSTRING captures enum value "STRING"
	ParamsItems0TypeSTRING string = "STRING"
)
View Source
const (

	// RulesItems0SeveritySEVERITYINVALID captures enum value "SEVERITY_INVALID"
	RulesItems0SeveritySEVERITYINVALID string = "SEVERITY_INVALID"

	// RulesItems0SeveritySEVERITYEMERGENCY captures enum value "SEVERITY_EMERGENCY"
	RulesItems0SeveritySEVERITYEMERGENCY string = "SEVERITY_EMERGENCY"

	// RulesItems0SeveritySEVERITYALERT captures enum value "SEVERITY_ALERT"
	RulesItems0SeveritySEVERITYALERT string = "SEVERITY_ALERT"

	// RulesItems0SeveritySEVERITYCRITICAL captures enum value "SEVERITY_CRITICAL"
	RulesItems0SeveritySEVERITYCRITICAL string = "SEVERITY_CRITICAL"

	// RulesItems0SeveritySEVERITYERROR captures enum value "SEVERITY_ERROR"
	RulesItems0SeveritySEVERITYERROR string = "SEVERITY_ERROR"

	// RulesItems0SeveritySEVERITYWARNING captures enum value "SEVERITY_WARNING"
	RulesItems0SeveritySEVERITYWARNING string = "SEVERITY_WARNING"

	// RulesItems0SeveritySEVERITYNOTICE captures enum value "SEVERITY_NOTICE"
	RulesItems0SeveritySEVERITYNOTICE string = "SEVERITY_NOTICE"

	// RulesItems0SeveritySEVERITYINFO captures enum value "SEVERITY_INFO"
	RulesItems0SeveritySEVERITYINFO string = "SEVERITY_INFO"

	// RulesItems0SeveritySEVERITYDEBUG captures enum value "SEVERITY_DEBUG"
	RulesItems0SeveritySEVERITYDEBUG string = "SEVERITY_DEBUG"
)
View Source
const (

	// RulesItems0FiltersItems0TypeFILTERTYPEINVALID captures enum value "FILTER_TYPE_INVALID"
	RulesItems0FiltersItems0TypeFILTERTYPEINVALID string = "FILTER_TYPE_INVALID"

	// RulesItems0FiltersItems0TypeEQUAL captures enum value "EQUAL"
	RulesItems0FiltersItems0TypeEQUAL string = "EQUAL"

	// RulesItems0FiltersItems0TypeREGEX captures enum value "REGEX"
	RulesItems0FiltersItems0TypeREGEX string = "REGEX"
)
View Source
const (

	// RulesItems0ParamsItems0TypePARAMTYPEINVALID captures enum value "PARAM_TYPE_INVALID"
	RulesItems0ParamsItems0TypePARAMTYPEINVALID string = "PARAM_TYPE_INVALID"

	// RulesItems0ParamsItems0TypeBOOL captures enum value "BOOL"
	RulesItems0ParamsItems0TypeBOOL string = "BOOL"

	// RulesItems0ParamsItems0TypeFLOAT captures enum value "FLOAT"
	RulesItems0ParamsItems0TypeFLOAT string = "FLOAT"

	// RulesItems0ParamsItems0TypeSTRING captures enum value "STRING"
	RulesItems0ParamsItems0TypeSTRING string = "STRING"
)
View Source
const (

	// RulesItems0TemplateSeveritySEVERITYINVALID captures enum value "SEVERITY_INVALID"
	RulesItems0TemplateSeveritySEVERITYINVALID string = "SEVERITY_INVALID"

	// RulesItems0TemplateSeveritySEVERITYEMERGENCY captures enum value "SEVERITY_EMERGENCY"
	RulesItems0TemplateSeveritySEVERITYEMERGENCY string = "SEVERITY_EMERGENCY"

	// RulesItems0TemplateSeveritySEVERITYALERT captures enum value "SEVERITY_ALERT"
	RulesItems0TemplateSeveritySEVERITYALERT string = "SEVERITY_ALERT"

	// RulesItems0TemplateSeveritySEVERITYCRITICAL captures enum value "SEVERITY_CRITICAL"
	RulesItems0TemplateSeveritySEVERITYCRITICAL string = "SEVERITY_CRITICAL"

	// RulesItems0TemplateSeveritySEVERITYERROR captures enum value "SEVERITY_ERROR"
	RulesItems0TemplateSeveritySEVERITYERROR string = "SEVERITY_ERROR"

	// RulesItems0TemplateSeveritySEVERITYWARNING captures enum value "SEVERITY_WARNING"
	RulesItems0TemplateSeveritySEVERITYWARNING string = "SEVERITY_WARNING"

	// RulesItems0TemplateSeveritySEVERITYNOTICE captures enum value "SEVERITY_NOTICE"
	RulesItems0TemplateSeveritySEVERITYNOTICE string = "SEVERITY_NOTICE"

	// RulesItems0TemplateSeveritySEVERITYINFO captures enum value "SEVERITY_INFO"
	RulesItems0TemplateSeveritySEVERITYINFO string = "SEVERITY_INFO"

	// RulesItems0TemplateSeveritySEVERITYDEBUG captures enum value "SEVERITY_DEBUG"
	RulesItems0TemplateSeveritySEVERITYDEBUG string = "SEVERITY_DEBUG"
)
View Source
const (

	// RulesItems0TemplateSourceTEMPLATESOURCEINVALID captures enum value "TEMPLATE_SOURCE_INVALID"
	RulesItems0TemplateSourceTEMPLATESOURCEINVALID string = "TEMPLATE_SOURCE_INVALID"

	// RulesItems0TemplateSourceBUILTIN captures enum value "BUILT_IN"
	RulesItems0TemplateSourceBUILTIN string = "BUILT_IN"

	// RulesItems0TemplateSourceSAAS captures enum value "SAAS"
	RulesItems0TemplateSourceSAAS string = "SAAS"

	// RulesItems0TemplateSourceUSERFILE captures enum value "USER_FILE"
	RulesItems0TemplateSourceUSERFILE string = "USER_FILE"

	// RulesItems0TemplateSourceUSERAPI captures enum value "USER_API"
	RulesItems0TemplateSourceUSERAPI string = "USER_API"
)
View Source
const (

	// RulesItems0TemplateParamsItems0UnitPARAMUNITINVALID captures enum value "PARAM_UNIT_INVALID"
	RulesItems0TemplateParamsItems0UnitPARAMUNITINVALID string = "PARAM_UNIT_INVALID"

	// RulesItems0TemplateParamsItems0UnitPERCENTAGE captures enum value "PERCENTAGE"
	RulesItems0TemplateParamsItems0UnitPERCENTAGE string = "PERCENTAGE"

	// RulesItems0TemplateParamsItems0UnitSECONDS captures enum value "SECONDS"
	RulesItems0TemplateParamsItems0UnitSECONDS string = "SECONDS"
)
View Source
const (

	// RulesItems0TemplateParamsItems0TypePARAMTYPEINVALID captures enum value "PARAM_TYPE_INVALID"
	RulesItems0TemplateParamsItems0TypePARAMTYPEINVALID string = "PARAM_TYPE_INVALID"

	// RulesItems0TemplateParamsItems0TypeBOOL captures enum value "BOOL"
	RulesItems0TemplateParamsItems0TypeBOOL string = "BOOL"

	// RulesItems0TemplateParamsItems0TypeFLOAT captures enum value "FLOAT"
	RulesItems0TemplateParamsItems0TypeFLOAT string = "FLOAT"

	// RulesItems0TemplateParamsItems0TypeSTRING captures enum value "STRING"
	RulesItems0TemplateParamsItems0TypeSTRING string = "STRING"
)
View Source
const (

	// RulesItems0TemplateParamsItems0BoolDefaultDONOTCHANGE captures enum value "DO_NOT_CHANGE"
	RulesItems0TemplateParamsItems0BoolDefaultDONOTCHANGE string = "DO_NOT_CHANGE"

	// RulesItems0TemplateParamsItems0BoolDefaultTRUE captures enum value "TRUE"
	RulesItems0TemplateParamsItems0BoolDefaultTRUE string = "TRUE"

	// RulesItems0TemplateParamsItems0BoolDefaultFALSE captures enum value "FALSE"
	RulesItems0TemplateParamsItems0BoolDefaultFALSE string = "FALSE"
)
View Source
const (

	// ToggleAlertRuleBodyDisabledDONOTCHANGE captures enum value "DO_NOT_CHANGE"
	ToggleAlertRuleBodyDisabledDONOTCHANGE string = "DO_NOT_CHANGE"

	// ToggleAlertRuleBodyDisabledTRUE captures enum value "TRUE"
	ToggleAlertRuleBodyDisabledTRUE string = "TRUE"

	// ToggleAlertRuleBodyDisabledFALSE captures enum value "FALSE"
	ToggleAlertRuleBodyDisabledFALSE string = "FALSE"
)
View Source
const (

	// UpdateAlertRuleBodySeveritySEVERITYINVALID captures enum value "SEVERITY_INVALID"
	UpdateAlertRuleBodySeveritySEVERITYINVALID string = "SEVERITY_INVALID"

	// UpdateAlertRuleBodySeveritySEVERITYEMERGENCY captures enum value "SEVERITY_EMERGENCY"
	UpdateAlertRuleBodySeveritySEVERITYEMERGENCY string = "SEVERITY_EMERGENCY"

	// UpdateAlertRuleBodySeveritySEVERITYALERT captures enum value "SEVERITY_ALERT"
	UpdateAlertRuleBodySeveritySEVERITYALERT string = "SEVERITY_ALERT"

	// UpdateAlertRuleBodySeveritySEVERITYCRITICAL captures enum value "SEVERITY_CRITICAL"
	UpdateAlertRuleBodySeveritySEVERITYCRITICAL string = "SEVERITY_CRITICAL"

	// UpdateAlertRuleBodySeveritySEVERITYERROR captures enum value "SEVERITY_ERROR"
	UpdateAlertRuleBodySeveritySEVERITYERROR string = "SEVERITY_ERROR"

	// UpdateAlertRuleBodySeveritySEVERITYWARNING captures enum value "SEVERITY_WARNING"
	UpdateAlertRuleBodySeveritySEVERITYWARNING string = "SEVERITY_WARNING"

	// UpdateAlertRuleBodySeveritySEVERITYNOTICE captures enum value "SEVERITY_NOTICE"
	UpdateAlertRuleBodySeveritySEVERITYNOTICE string = "SEVERITY_NOTICE"

	// UpdateAlertRuleBodySeveritySEVERITYINFO captures enum value "SEVERITY_INFO"
	UpdateAlertRuleBodySeveritySEVERITYINFO string = "SEVERITY_INFO"

	// UpdateAlertRuleBodySeveritySEVERITYDEBUG captures enum value "SEVERITY_DEBUG"
	UpdateAlertRuleBodySeveritySEVERITYDEBUG string = "SEVERITY_DEBUG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for rules API

func (*Client) CreateAlertRule

func (a *Client) CreateAlertRule(params *CreateAlertRuleParams) (*CreateAlertRuleOK, error)

CreateAlertRule creates alert rule creates integrated alerting rule

func (*Client) DeleteAlertRule

func (a *Client) DeleteAlertRule(params *DeleteAlertRuleParams) (*DeleteAlertRuleOK, error)

DeleteAlertRule deletes alert rule deletes integrated alerting rule

func (*Client) ListAlertRules

func (a *Client) ListAlertRules(params *ListAlertRulesParams) (*ListAlertRulesOK, error)

ListAlertRules lists alert rules returns a list of all integrated alerting rules

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ToggleAlertRule

func (a *Client) ToggleAlertRule(params *ToggleAlertRuleParams) (*ToggleAlertRuleOK, error)

ToggleAlertRule toggles alert rule allows to switch between disabled and enabled states of an alert rule

func (*Client) UpdateAlertRule

func (a *Client) UpdateAlertRule(params *UpdateAlertRuleParams) (*UpdateAlertRuleOK, error)

UpdateAlertRule updates alert rule updates integrated alerting rule

type ClientService

type ClientService interface {
	CreateAlertRule(params *CreateAlertRuleParams) (*CreateAlertRuleOK, error)

	DeleteAlertRule(params *DeleteAlertRuleParams) (*DeleteAlertRuleOK, error)

	ListAlertRules(params *ListAlertRulesParams) (*ListAlertRulesOK, error)

	ToggleAlertRule(params *ToggleAlertRuleParams) (*ToggleAlertRuleOK, error)

	UpdateAlertRule(params *UpdateAlertRuleParams) (*UpdateAlertRuleOK, 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 rules API client.

type CreateAlertRuleBody

type CreateAlertRuleBody struct {

	// Template name.
	TemplateName string `json:"template_name,omitempty"`

	// New rule status.
	Disabled bool `json:"disabled,omitempty"`

	// Rule human-readable summary.
	Summary string `json:"summary,omitempty"`

	// Rule parameters. All template parameters should be set.
	Params []*ParamsItems0 `json:"params"`

	// Rule duration. Should be set.
	For string `json:"for,omitempty"`

	// Severity represents severity level of the check result or alert.
	// Enum: [SEVERITY_INVALID SEVERITY_EMERGENCY SEVERITY_ALERT SEVERITY_CRITICAL SEVERITY_ERROR SEVERITY_WARNING SEVERITY_NOTICE SEVERITY_INFO SEVERITY_DEBUG]
	Severity *string `json:"severity,omitempty"`

	// All custom labels to add or remove (with empty values) to default labels from template.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Filters. Should be set.
	Filters []*FiltersItems0 `json:"filters"`

	// Channels. Should be set.
	ChannelIds []string `json:"channel_ids"`
}

CreateAlertRuleBody create alert rule body swagger:model CreateAlertRuleBody

func (*CreateAlertRuleBody) MarshalBinary

func (o *CreateAlertRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateAlertRuleBody) UnmarshalBinary

func (o *CreateAlertRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateAlertRuleBody) Validate

func (o *CreateAlertRuleBody) Validate(formats strfmt.Registry) error

Validate validates this create alert rule body

type CreateAlertRuleDefault

type CreateAlertRuleDefault struct {
	Payload *CreateAlertRuleDefaultBody
	// contains filtered or unexported fields
}

CreateAlertRuleDefault handles this case with default header values.

An unexpected error response.

func NewCreateAlertRuleDefault

func NewCreateAlertRuleDefault(code int) *CreateAlertRuleDefault

NewCreateAlertRuleDefault creates a CreateAlertRuleDefault with default headers values

func (*CreateAlertRuleDefault) Code

func (o *CreateAlertRuleDefault) Code() int

Code gets the status code for the create alert rule default response

func (*CreateAlertRuleDefault) Error

func (o *CreateAlertRuleDefault) Error() string

func (*CreateAlertRuleDefault) GetPayload

type CreateAlertRuleDefaultBody

type CreateAlertRuleDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

CreateAlertRuleDefaultBody create alert rule default body swagger:model CreateAlertRuleDefaultBody

func (*CreateAlertRuleDefaultBody) MarshalBinary

func (o *CreateAlertRuleDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateAlertRuleDefaultBody) UnmarshalBinary

func (o *CreateAlertRuleDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateAlertRuleDefaultBody) Validate

func (o *CreateAlertRuleDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this create alert rule default body

type CreateAlertRuleOK

type CreateAlertRuleOK struct {
	Payload *CreateAlertRuleOKBody
}

CreateAlertRuleOK handles this case with default header values.

A successful response.

func NewCreateAlertRuleOK

func NewCreateAlertRuleOK() *CreateAlertRuleOK

NewCreateAlertRuleOK creates a CreateAlertRuleOK with default headers values

func (*CreateAlertRuleOK) Error

func (o *CreateAlertRuleOK) Error() string

func (*CreateAlertRuleOK) GetPayload

func (o *CreateAlertRuleOK) GetPayload() *CreateAlertRuleOKBody

type CreateAlertRuleOKBody

type CreateAlertRuleOKBody struct {

	// Rule ID.
	RuleID string `json:"rule_id,omitempty"`
}

CreateAlertRuleOKBody create alert rule OK body swagger:model CreateAlertRuleOKBody

func (*CreateAlertRuleOKBody) MarshalBinary

func (o *CreateAlertRuleOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateAlertRuleOKBody) UnmarshalBinary

func (o *CreateAlertRuleOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateAlertRuleOKBody) Validate

func (o *CreateAlertRuleOKBody) Validate(formats strfmt.Registry) error

Validate validates this create alert rule OK body

type CreateAlertRuleParams

type CreateAlertRuleParams struct {

	/*Body*/
	Body CreateAlertRuleBody

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

CreateAlertRuleParams contains all the parameters to send to the API endpoint for the create alert rule operation typically these are written to a http.Request

func NewCreateAlertRuleParams

func NewCreateAlertRuleParams() *CreateAlertRuleParams

NewCreateAlertRuleParams creates a new CreateAlertRuleParams object with the default values initialized.

func NewCreateAlertRuleParamsWithContext

func NewCreateAlertRuleParamsWithContext(ctx context.Context) *CreateAlertRuleParams

NewCreateAlertRuleParamsWithContext creates a new CreateAlertRuleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateAlertRuleParamsWithHTTPClient

func NewCreateAlertRuleParamsWithHTTPClient(client *http.Client) *CreateAlertRuleParams

NewCreateAlertRuleParamsWithHTTPClient creates a new CreateAlertRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateAlertRuleParamsWithTimeout

func NewCreateAlertRuleParamsWithTimeout(timeout time.Duration) *CreateAlertRuleParams

NewCreateAlertRuleParamsWithTimeout creates a new CreateAlertRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateAlertRuleParams) SetBody

func (o *CreateAlertRuleParams) SetBody(body CreateAlertRuleBody)

SetBody adds the body to the create alert rule params

func (*CreateAlertRuleParams) SetContext

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

SetContext adds the context to the create alert rule params

func (*CreateAlertRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create alert rule params

func (*CreateAlertRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create alert rule params

func (*CreateAlertRuleParams) WithBody

WithBody adds the body to the create alert rule params

func (*CreateAlertRuleParams) WithContext

WithContext adds the context to the create alert rule params

func (*CreateAlertRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create alert rule params

func (*CreateAlertRuleParams) WithTimeout

func (o *CreateAlertRuleParams) WithTimeout(timeout time.Duration) *CreateAlertRuleParams

WithTimeout adds the timeout to the create alert rule params

func (*CreateAlertRuleParams) WriteToRequest

func (o *CreateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateAlertRuleReader

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

CreateAlertRuleReader is a Reader for the CreateAlertRule structure.

func (*CreateAlertRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAlertRuleBody

type DeleteAlertRuleBody struct {

	// Rule ID.
	RuleID string `json:"rule_id,omitempty"`
}

DeleteAlertRuleBody delete alert rule body swagger:model DeleteAlertRuleBody

func (*DeleteAlertRuleBody) MarshalBinary

func (o *DeleteAlertRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteAlertRuleBody) UnmarshalBinary

func (o *DeleteAlertRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteAlertRuleBody) Validate

func (o *DeleteAlertRuleBody) Validate(formats strfmt.Registry) error

Validate validates this delete alert rule body

type DeleteAlertRuleDefault

type DeleteAlertRuleDefault struct {
	Payload *DeleteAlertRuleDefaultBody
	// contains filtered or unexported fields
}

DeleteAlertRuleDefault handles this case with default header values.

An unexpected error response.

func NewDeleteAlertRuleDefault

func NewDeleteAlertRuleDefault(code int) *DeleteAlertRuleDefault

NewDeleteAlertRuleDefault creates a DeleteAlertRuleDefault with default headers values

func (*DeleteAlertRuleDefault) Code

func (o *DeleteAlertRuleDefault) Code() int

Code gets the status code for the delete alert rule default response

func (*DeleteAlertRuleDefault) Error

func (o *DeleteAlertRuleDefault) Error() string

func (*DeleteAlertRuleDefault) GetPayload

type DeleteAlertRuleDefaultBody

type DeleteAlertRuleDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

DeleteAlertRuleDefaultBody delete alert rule default body swagger:model DeleteAlertRuleDefaultBody

func (*DeleteAlertRuleDefaultBody) MarshalBinary

func (o *DeleteAlertRuleDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteAlertRuleDefaultBody) UnmarshalBinary

func (o *DeleteAlertRuleDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteAlertRuleDefaultBody) Validate

func (o *DeleteAlertRuleDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this delete alert rule default body

type DeleteAlertRuleOK

type DeleteAlertRuleOK struct {
	Payload interface{}
}

DeleteAlertRuleOK handles this case with default header values.

A successful response.

func NewDeleteAlertRuleOK

func NewDeleteAlertRuleOK() *DeleteAlertRuleOK

NewDeleteAlertRuleOK creates a DeleteAlertRuleOK with default headers values

func (*DeleteAlertRuleOK) Error

func (o *DeleteAlertRuleOK) Error() string

func (*DeleteAlertRuleOK) GetPayload

func (o *DeleteAlertRuleOK) GetPayload() interface{}

type DeleteAlertRuleParams

type DeleteAlertRuleParams struct {

	/*Body*/
	Body DeleteAlertRuleBody

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

DeleteAlertRuleParams contains all the parameters to send to the API endpoint for the delete alert rule operation typically these are written to a http.Request

func NewDeleteAlertRuleParams

func NewDeleteAlertRuleParams() *DeleteAlertRuleParams

NewDeleteAlertRuleParams creates a new DeleteAlertRuleParams object with the default values initialized.

func NewDeleteAlertRuleParamsWithContext

func NewDeleteAlertRuleParamsWithContext(ctx context.Context) *DeleteAlertRuleParams

NewDeleteAlertRuleParamsWithContext creates a new DeleteAlertRuleParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteAlertRuleParamsWithHTTPClient

func NewDeleteAlertRuleParamsWithHTTPClient(client *http.Client) *DeleteAlertRuleParams

NewDeleteAlertRuleParamsWithHTTPClient creates a new DeleteAlertRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteAlertRuleParamsWithTimeout

func NewDeleteAlertRuleParamsWithTimeout(timeout time.Duration) *DeleteAlertRuleParams

NewDeleteAlertRuleParamsWithTimeout creates a new DeleteAlertRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteAlertRuleParams) SetBody

func (o *DeleteAlertRuleParams) SetBody(body DeleteAlertRuleBody)

SetBody adds the body to the delete alert rule params

func (*DeleteAlertRuleParams) SetContext

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

SetContext adds the context to the delete alert rule params

func (*DeleteAlertRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete alert rule params

func (*DeleteAlertRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete alert rule params

func (*DeleteAlertRuleParams) WithBody

WithBody adds the body to the delete alert rule params

func (*DeleteAlertRuleParams) WithContext

WithContext adds the context to the delete alert rule params

func (*DeleteAlertRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete alert rule params

func (*DeleteAlertRuleParams) WithTimeout

func (o *DeleteAlertRuleParams) WithTimeout(timeout time.Duration) *DeleteAlertRuleParams

WithTimeout adds the timeout to the delete alert rule params

func (*DeleteAlertRuleParams) WriteToRequest

func (o *DeleteAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteAlertRuleReader

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

DeleteAlertRuleReader is a Reader for the DeleteAlertRule structure.

func (*DeleteAlertRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type FiltersItems0

type FiltersItems0 struct {

	// FilterType represents filter matching type.
	//
	//  - EQUAL: =
	//  - REGEX: =~
	// Enum: [FILTER_TYPE_INVALID EQUAL REGEX]
	Type *string `json:"type,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

FiltersItems0 Filter repsents a single filter condition. swagger:model FiltersItems0

func (*FiltersItems0) MarshalBinary

func (o *FiltersItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FiltersItems0) UnmarshalBinary

func (o *FiltersItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FiltersItems0) Validate

func (o *FiltersItems0) Validate(formats strfmt.Registry) error

Validate validates this filters items0

type ListAlertRulesBody

type ListAlertRulesBody struct {

	// page params
	PageParams *ListAlertRulesParamsBodyPageParams `json:"page_params,omitempty"`
}

ListAlertRulesBody list alert rules body swagger:model ListAlertRulesBody

func (*ListAlertRulesBody) MarshalBinary

func (o *ListAlertRulesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAlertRulesBody) UnmarshalBinary

func (o *ListAlertRulesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAlertRulesBody) Validate

func (o *ListAlertRulesBody) Validate(formats strfmt.Registry) error

Validate validates this list alert rules body

type ListAlertRulesDefault

type ListAlertRulesDefault struct {
	Payload *ListAlertRulesDefaultBody
	// contains filtered or unexported fields
}

ListAlertRulesDefault handles this case with default header values.

An unexpected error response.

func NewListAlertRulesDefault

func NewListAlertRulesDefault(code int) *ListAlertRulesDefault

NewListAlertRulesDefault creates a ListAlertRulesDefault with default headers values

func (*ListAlertRulesDefault) Code

func (o *ListAlertRulesDefault) Code() int

Code gets the status code for the list alert rules default response

func (*ListAlertRulesDefault) Error

func (o *ListAlertRulesDefault) Error() string

func (*ListAlertRulesDefault) GetPayload

type ListAlertRulesDefaultBody

type ListAlertRulesDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListAlertRulesDefaultBody list alert rules default body swagger:model ListAlertRulesDefaultBody

func (*ListAlertRulesDefaultBody) MarshalBinary

func (o *ListAlertRulesDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAlertRulesDefaultBody) UnmarshalBinary

func (o *ListAlertRulesDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAlertRulesDefaultBody) Validate

func (o *ListAlertRulesDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list alert rules default body

type ListAlertRulesOK

type ListAlertRulesOK struct {
	Payload *ListAlertRulesOKBody
}

ListAlertRulesOK handles this case with default header values.

A successful response.

func NewListAlertRulesOK

func NewListAlertRulesOK() *ListAlertRulesOK

NewListAlertRulesOK creates a ListAlertRulesOK with default headers values

func (*ListAlertRulesOK) Error

func (o *ListAlertRulesOK) Error() string

func (*ListAlertRulesOK) GetPayload

func (o *ListAlertRulesOK) GetPayload() *ListAlertRulesOKBody

type ListAlertRulesOKBody

type ListAlertRulesOKBody struct {

	// rules
	Rules []*RulesItems0 `json:"rules"`

	// totals
	Totals *ListAlertRulesOKBodyTotals `json:"totals,omitempty"`
}

ListAlertRulesOKBody list alert rules OK body swagger:model ListAlertRulesOKBody

func (*ListAlertRulesOKBody) MarshalBinary

func (o *ListAlertRulesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAlertRulesOKBody) UnmarshalBinary

func (o *ListAlertRulesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAlertRulesOKBody) Validate

func (o *ListAlertRulesOKBody) Validate(formats strfmt.Registry) error

Validate validates this list alert rules OK body

type ListAlertRulesOKBodyTotals

type ListAlertRulesOKBodyTotals struct {

	// Total number of results.
	TotalItems int32 `json:"total_items,omitempty"`

	// Total number of pages.
	TotalPages int32 `json:"total_pages,omitempty"`
}

ListAlertRulesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertRulesOKBodyTotals

func (*ListAlertRulesOKBodyTotals) MarshalBinary

func (o *ListAlertRulesOKBodyTotals) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAlertRulesOKBodyTotals) UnmarshalBinary

func (o *ListAlertRulesOKBodyTotals) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAlertRulesOKBodyTotals) Validate

func (o *ListAlertRulesOKBodyTotals) Validate(formats strfmt.Registry) error

Validate validates this list alert rules OK body totals

type ListAlertRulesParams

type ListAlertRulesParams struct {

	/*Body*/
	Body ListAlertRulesBody

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

ListAlertRulesParams contains all the parameters to send to the API endpoint for the list alert rules operation typically these are written to a http.Request

func NewListAlertRulesParams

func NewListAlertRulesParams() *ListAlertRulesParams

NewListAlertRulesParams creates a new ListAlertRulesParams object with the default values initialized.

func NewListAlertRulesParamsWithContext

func NewListAlertRulesParamsWithContext(ctx context.Context) *ListAlertRulesParams

NewListAlertRulesParamsWithContext creates a new ListAlertRulesParams object with the default values initialized, and the ability to set a context for a request

func NewListAlertRulesParamsWithHTTPClient

func NewListAlertRulesParamsWithHTTPClient(client *http.Client) *ListAlertRulesParams

NewListAlertRulesParamsWithHTTPClient creates a new ListAlertRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListAlertRulesParamsWithTimeout

func NewListAlertRulesParamsWithTimeout(timeout time.Duration) *ListAlertRulesParams

NewListAlertRulesParamsWithTimeout creates a new ListAlertRulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListAlertRulesParams) SetBody

func (o *ListAlertRulesParams) SetBody(body ListAlertRulesBody)

SetBody adds the body to the list alert rules params

func (*ListAlertRulesParams) SetContext

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

SetContext adds the context to the list alert rules params

func (*ListAlertRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list alert rules params

func (*ListAlertRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list alert rules params

func (*ListAlertRulesParams) WithBody

WithBody adds the body to the list alert rules params

func (*ListAlertRulesParams) WithContext

WithContext adds the context to the list alert rules params

func (*ListAlertRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list alert rules params

func (*ListAlertRulesParams) WithTimeout

func (o *ListAlertRulesParams) WithTimeout(timeout time.Duration) *ListAlertRulesParams

WithTimeout adds the timeout to the list alert rules params

func (*ListAlertRulesParams) WriteToRequest

func (o *ListAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListAlertRulesParamsBodyPageParams

type ListAlertRulesParamsBodyPageParams struct {

	// Maximum number of results per page.
	PageSize int32 `json:"page_size,omitempty"`

	// Index of the requested page, starts from 0.
	Index int32 `json:"index,omitempty"`
}

ListAlertRulesParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model ListAlertRulesParamsBodyPageParams

func (*ListAlertRulesParamsBodyPageParams) MarshalBinary

func (o *ListAlertRulesParamsBodyPageParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAlertRulesParamsBodyPageParams) UnmarshalBinary

func (o *ListAlertRulesParamsBodyPageParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAlertRulesParamsBodyPageParams) Validate

Validate validates this list alert rules params body page params

type ListAlertRulesReader

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

ListAlertRulesReader is a Reader for the ListAlertRules structure.

func (*ListAlertRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ParamsItems0

type ParamsItems0 struct {

	// Machine-readable name (ID) that is used in expression.
	Name string `json:"name,omitempty"`

	// ParamType represents template parameter type.
	// Enum: [PARAM_TYPE_INVALID BOOL FLOAT STRING]
	Type *string `json:"type,omitempty"`

	// Bool value.
	Bool bool `json:"bool,omitempty"`

	// Float value.
	Float float32 `json:"float,omitempty"`

	// String value.
	String string `json:"string,omitempty"`
}

ParamsItems0 RuleParam represents a single rule parameter for List, Change and Update APIs. swagger:model ParamsItems0

func (*ParamsItems0) MarshalBinary

func (o *ParamsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ParamsItems0) UnmarshalBinary

func (o *ParamsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ParamsItems0) Validate

func (o *ParamsItems0) Validate(formats strfmt.Registry) error

Validate validates this params items0

type RulesItems0

type RulesItems0 struct {

	// Rule ID.
	RuleID string `json:"rule_id,omitempty"`

	// True if that rule is disabled.
	Disabled bool `json:"disabled,omitempty"`

	// Rule human-readable summary.
	Summary string `json:"summary,omitempty"`

	// Rule parameters.
	Params []*RulesItems0ParamsItems0 `json:"params"`

	// Rule duration.
	For string `json:"for,omitempty"`

	// Severity represents severity level of the check result or alert.
	// Enum: [SEVERITY_INVALID SEVERITY_EMERGENCY SEVERITY_ALERT SEVERITY_CRITICAL SEVERITY_ERROR SEVERITY_WARNING SEVERITY_NOTICE SEVERITY_INFO SEVERITY_DEBUG]
	Severity *string `json:"severity,omitempty"`

	// Custom labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Filters.
	Filters []*RulesItems0FiltersItems0 `json:"filters"`

	// Channels.
	Channels []*RulesItems0ChannelsItems0 `json:"channels"`

	// Rule creation time.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// Template expression with rule parameters.
	Expr string `json:"expr,omitempty"`

	// template
	Template *RulesItems0Template `json:"template,omitempty"`
}

RulesItems0 Rule represents Alert Rule. swagger:model RulesItems0

func (*RulesItems0) MarshalBinary

func (o *RulesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0) UnmarshalBinary

func (o *RulesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0) Validate

func (o *RulesItems0) Validate(formats strfmt.Registry) error

Validate validates this rules items0

type RulesItems0ChannelsItems0

type RulesItems0ChannelsItems0 struct {

	// Machine-readable ID.
	ChannelID string `json:"channel_id,omitempty"`

	// Short human-readable summary.
	Summary string `json:"summary,omitempty"`

	// True if that channel is disabled.
	Disabled bool `json:"disabled,omitempty"`

	// email config
	EmailConfig *RulesItems0ChannelsItems0EmailConfig `json:"email_config,omitempty"`

	// pagerduty config
	PagerdutyConfig *RulesItems0ChannelsItems0PagerdutyConfig `json:"pagerduty_config,omitempty"`

	// slack config
	SlackConfig *RulesItems0ChannelsItems0SlackConfig `json:"slack_config,omitempty"`

	// webhook config
	WebhookConfig *RulesItems0ChannelsItems0WebhookConfig `json:"webhook_config,omitempty"`
}

RulesItems0ChannelsItems0 Channel represents a single Notification Channel. swagger:model RulesItems0ChannelsItems0

func (*RulesItems0ChannelsItems0) MarshalBinary

func (o *RulesItems0ChannelsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0) UnmarshalBinary

func (o *RulesItems0ChannelsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0) Validate

func (o *RulesItems0ChannelsItems0) Validate(formats strfmt.Registry) error

Validate validates this rules items0 channels items0

type RulesItems0ChannelsItems0EmailConfig

type RulesItems0ChannelsItems0EmailConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// to
	To []string `json:"to"`
}

RulesItems0ChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model RulesItems0ChannelsItems0EmailConfig

func (*RulesItems0ChannelsItems0EmailConfig) MarshalBinary

func (o *RulesItems0ChannelsItems0EmailConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0EmailConfig) UnmarshalBinary

func (o *RulesItems0ChannelsItems0EmailConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0EmailConfig) Validate

Validate validates this rules items0 channels items0 email config

type RulesItems0ChannelsItems0PagerdutyConfig

type RulesItems0ChannelsItems0PagerdutyConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// The PagerDuty key for "Events API v2" integration type. Exactly one key should be set.
	RoutingKey string `json:"routing_key,omitempty"`

	// The PagerDuty key for "Prometheus" integration type. Exactly one key should be set.
	ServiceKey string `json:"service_key,omitempty"`
}

RulesItems0ChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model RulesItems0ChannelsItems0PagerdutyConfig

func (*RulesItems0ChannelsItems0PagerdutyConfig) MarshalBinary

func (o *RulesItems0ChannelsItems0PagerdutyConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0PagerdutyConfig) UnmarshalBinary

func (o *RulesItems0ChannelsItems0PagerdutyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0PagerdutyConfig) Validate

Validate validates this rules items0 channels items0 pagerduty config

type RulesItems0ChannelsItems0SlackConfig

type RulesItems0ChannelsItems0SlackConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// channel
	Channel string `json:"channel,omitempty"`
}

RulesItems0ChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model RulesItems0ChannelsItems0SlackConfig

func (*RulesItems0ChannelsItems0SlackConfig) MarshalBinary

func (o *RulesItems0ChannelsItems0SlackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0SlackConfig) UnmarshalBinary

func (o *RulesItems0ChannelsItems0SlackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0SlackConfig) Validate

Validate validates this rules items0 channels items0 slack config

type RulesItems0ChannelsItems0WebhookConfig

type RulesItems0ChannelsItems0WebhookConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// max alerts
	MaxAlerts int32 `json:"max_alerts,omitempty"`

	// http config
	HTTPConfig *RulesItems0ChannelsItems0WebhookConfigHTTPConfig `json:"http_config,omitempty"`
}

RulesItems0ChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model RulesItems0ChannelsItems0WebhookConfig

func (*RulesItems0ChannelsItems0WebhookConfig) MarshalBinary

func (o *RulesItems0ChannelsItems0WebhookConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfig) UnmarshalBinary

func (o *RulesItems0ChannelsItems0WebhookConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfig) Validate

Validate validates this rules items0 channels items0 webhook config

type RulesItems0ChannelsItems0WebhookConfigHTTPConfig

type RulesItems0ChannelsItems0WebhookConfigHTTPConfig struct {

	// bearer token
	BearerToken string `json:"bearer_token,omitempty"`

	// bearer token file
	BearerTokenFile string `json:"bearer_token_file,omitempty"`

	// proxy url
	ProxyURL string `json:"proxy_url,omitempty"`

	// basic auth
	BasicAuth *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth `json:"basic_auth,omitempty"`

	// tls config
	TLSConfig *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig `json:"tls_config,omitempty"`
}

RulesItems0ChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model RulesItems0ChannelsItems0WebhookConfigHTTPConfig

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfig) MarshalBinary

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfig) Validate

Validate validates this rules items0 channels items0 webhook config HTTP config

type RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth

type RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth struct {

	// username
	Username string `json:"username,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// password file
	PasswordFile string `json:"password_file,omitempty"`
}

RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) MarshalBinary

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) Validate

Validate validates this rules items0 channels items0 webhook config HTTP config basic auth

type RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig

type RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig struct {

	// ca file
	CaFile string `json:"ca_file,omitempty"`

	// cert file
	CertFile string `json:"cert_file,omitempty"`

	// key file
	KeyFile string `json:"key_file,omitempty"`

	// server name
	ServerName string `json:"server_name,omitempty"`

	// insecure skip verify
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
}

RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration. swagger:model RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) MarshalBinary

MarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) Validate

Validate validates this rules items0 channels items0 webhook config HTTP config TLS config

type RulesItems0FiltersItems0

type RulesItems0FiltersItems0 struct {

	// FilterType represents filter matching type.
	//
	//  - EQUAL: =
	//  - REGEX: =~
	// Enum: [FILTER_TYPE_INVALID EQUAL REGEX]
	Type *string `json:"type,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

RulesItems0FiltersItems0 Filter repsents a single filter condition. swagger:model RulesItems0FiltersItems0

func (*RulesItems0FiltersItems0) MarshalBinary

func (o *RulesItems0FiltersItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0FiltersItems0) UnmarshalBinary

func (o *RulesItems0FiltersItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0FiltersItems0) Validate

func (o *RulesItems0FiltersItems0) Validate(formats strfmt.Registry) error

Validate validates this rules items0 filters items0

type RulesItems0ParamsItems0

type RulesItems0ParamsItems0 struct {

	// Machine-readable name (ID) that is used in expression.
	Name string `json:"name,omitempty"`

	// ParamType represents template parameter type.
	// Enum: [PARAM_TYPE_INVALID BOOL FLOAT STRING]
	Type *string `json:"type,omitempty"`

	// Bool value.
	Bool bool `json:"bool,omitempty"`

	// Float value.
	Float float32 `json:"float,omitempty"`

	// String value.
	String string `json:"string,omitempty"`
}

RulesItems0ParamsItems0 RuleParam represents a single rule parameter for List, Change and Update APIs. swagger:model RulesItems0ParamsItems0

func (*RulesItems0ParamsItems0) MarshalBinary

func (o *RulesItems0ParamsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0ParamsItems0) UnmarshalBinary

func (o *RulesItems0ParamsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0ParamsItems0) Validate

func (o *RulesItems0ParamsItems0) Validate(formats strfmt.Registry) error

Validate validates this rules items0 params items0

type RulesItems0Template

type RulesItems0Template struct {

	// Machine-readable name (ID).
	Name string `json:"name,omitempty"`

	// Short human-readable summary.
	Summary string `json:"summary,omitempty"`

	// PromQL query expression with templating parameters.
	Expr string `json:"expr,omitempty"`

	// Query templating parameters.
	Params []*RulesItems0TemplateParamsItems0 `json:"params"`

	// Default duration value.
	For string `json:"for,omitempty"`

	// Severity represents severity level of the check result or alert.
	// Enum: [SEVERITY_INVALID SEVERITY_EMERGENCY SEVERITY_ALERT SEVERITY_CRITICAL SEVERITY_ERROR SEVERITY_WARNING SEVERITY_NOTICE SEVERITY_INFO SEVERITY_DEBUG]
	Severity *string `json:"severity,omitempty"`

	// Labels.
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations.
	Annotations map[string]string `json:"annotations,omitempty"`

	// TemplateSource defines template source.
	//
	//  - BUILT_IN: Template that is shipped with PMM Server releases.
	//  - SAAS: Template that is downloaded from check.percona.com.
	//  - USER_FILE: Templated loaded from user-suplied file.
	//  - USER_API: Templated created via API.
	// Enum: [TEMPLATE_SOURCE_INVALID BUILT_IN SAAS USER_FILE USER_API]
	Source *string `json:"source,omitempty"`

	// Template creation time. Empty for built-in and SaaS templates.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// YAML (or JSON) template file content. Empty for built-in and SaaS templates.
	Yaml string `json:"yaml,omitempty"`
}

RulesItems0Template Template represents Alert Template that is used to create Alert Rule. swagger:model RulesItems0Template

func (*RulesItems0Template) MarshalBinary

func (o *RulesItems0Template) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0Template) UnmarshalBinary

func (o *RulesItems0Template) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0Template) Validate

func (o *RulesItems0Template) Validate(formats strfmt.Registry) error

Validate validates this rules items0 template

type RulesItems0TemplateParamsItems0

type RulesItems0TemplateParamsItems0 struct {

	// Machine-readable name (ID) that is used in expression.
	Name string `json:"name,omitempty"`

	// Short human-readable parameter summary.
	Summary string `json:"summary,omitempty"`

	// ParamUnit represents template parameter unit.
	//
	//  - PARAM_UNIT_INVALID: Invalid, unknown or absent.
	//  - PERCENTAGE: %
	//  - SECONDS: s
	// Enum: [PARAM_UNIT_INVALID PERCENTAGE SECONDS]
	Unit *string `json:"unit,omitempty"`

	// ParamType represents template parameter type.
	// Enum: [PARAM_TYPE_INVALID BOOL FLOAT STRING]
	Type *string `json:"type,omitempty"`

	// bool
	Bool *RulesItems0TemplateParamsItems0Bool `json:"bool,omitempty"`

	// float
	Float *RulesItems0TemplateParamsItems0Float `json:"float,omitempty"`

	// string
	String *RulesItems0TemplateParamsItems0String `json:"string,omitempty"`
}

RulesItems0TemplateParamsItems0 TemplateParam represents a single template parameter. swagger:model RulesItems0TemplateParamsItems0

func (*RulesItems0TemplateParamsItems0) MarshalBinary

func (o *RulesItems0TemplateParamsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0) UnmarshalBinary

func (o *RulesItems0TemplateParamsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0) Validate

Validate validates this rules items0 template params items0

type RulesItems0TemplateParamsItems0Bool

type RulesItems0TemplateParamsItems0Bool struct {

	// BooleanFlag represent a command to set some boolean property to true,
	// to false, or avoid changing that property.
	//
	//  - DO_NOT_CHANGE: Do not change boolean property. Default value.
	//  - TRUE: True.
	//  - FALSE: False.
	// Enum: [DO_NOT_CHANGE TRUE FALSE]
	Default *string `json:"default,omitempty"`
}

RulesItems0TemplateParamsItems0Bool TemplateBoolParam represents boolean parameter's default value. swagger:model RulesItems0TemplateParamsItems0Bool

func (*RulesItems0TemplateParamsItems0Bool) MarshalBinary

func (o *RulesItems0TemplateParamsItems0Bool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0Bool) UnmarshalBinary

func (o *RulesItems0TemplateParamsItems0Bool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0Bool) Validate

Validate validates this rules items0 template params items0 bool

type RulesItems0TemplateParamsItems0Float

type RulesItems0TemplateParamsItems0Float struct {

	// True if default value is set.
	HasDefault bool `json:"has_default,omitempty"`

	// Default value if has_default is true.
	Default float32 `json:"default,omitempty"`

	// True if minimal valid value is set.
	HasMin bool `json:"has_min,omitempty"`

	// Minimal valid value (inclusive) if has_min is true.
	Min float32 `json:"min,omitempty"`

	// True if maximal valid value is set.
	HasMax bool `json:"has_max,omitempty"`

	// Maximal valid value (inclusive) if has_max is true.
	Max float32 `json:"max,omitempty"`
}

RulesItems0TemplateParamsItems0Float TemplateFloatParam represents float parameter's default value and valid range. swagger:model RulesItems0TemplateParamsItems0Float

func (*RulesItems0TemplateParamsItems0Float) MarshalBinary

func (o *RulesItems0TemplateParamsItems0Float) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0Float) UnmarshalBinary

func (o *RulesItems0TemplateParamsItems0Float) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0Float) Validate

Validate validates this rules items0 template params items0 float

type RulesItems0TemplateParamsItems0String

type RulesItems0TemplateParamsItems0String struct {

	// True if default value is set.
	HasDefault bool `json:"has_default,omitempty"`

	// Default value if has_default is true.
	Default string `json:"default,omitempty"`
}

RulesItems0TemplateParamsItems0String TemplateStringParam represents string parameter's default value. swagger:model RulesItems0TemplateParamsItems0String

func (*RulesItems0TemplateParamsItems0String) MarshalBinary

func (o *RulesItems0TemplateParamsItems0String) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0String) UnmarshalBinary

func (o *RulesItems0TemplateParamsItems0String) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RulesItems0TemplateParamsItems0String) Validate

Validate validates this rules items0 template params items0 string

type ToggleAlertRuleBody

type ToggleAlertRuleBody struct {

	// Rule ID.
	RuleID string `json:"rule_id,omitempty"`

	// BooleanFlag represent a command to set some boolean property to true,
	// to false, or avoid changing that property.
	//
	//  - DO_NOT_CHANGE: Do not change boolean property. Default value.
	//  - TRUE: True.
	//  - FALSE: False.
	// Enum: [DO_NOT_CHANGE TRUE FALSE]
	Disabled *string `json:"disabled,omitempty"`
}

ToggleAlertRuleBody toggle alert rule body swagger:model ToggleAlertRuleBody

func (*ToggleAlertRuleBody) MarshalBinary

func (o *ToggleAlertRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ToggleAlertRuleBody) UnmarshalBinary

func (o *ToggleAlertRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ToggleAlertRuleBody) Validate

func (o *ToggleAlertRuleBody) Validate(formats strfmt.Registry) error

Validate validates this toggle alert rule body

type ToggleAlertRuleDefault

type ToggleAlertRuleDefault struct {
	Payload *ToggleAlertRuleDefaultBody
	// contains filtered or unexported fields
}

ToggleAlertRuleDefault handles this case with default header values.

An unexpected error response.

func NewToggleAlertRuleDefault

func NewToggleAlertRuleDefault(code int) *ToggleAlertRuleDefault

NewToggleAlertRuleDefault creates a ToggleAlertRuleDefault with default headers values

func (*ToggleAlertRuleDefault) Code

func (o *ToggleAlertRuleDefault) Code() int

Code gets the status code for the toggle alert rule default response

func (*ToggleAlertRuleDefault) Error

func (o *ToggleAlertRuleDefault) Error() string

func (*ToggleAlertRuleDefault) GetPayload

type ToggleAlertRuleDefaultBody

type ToggleAlertRuleDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ToggleAlertRuleDefaultBody toggle alert rule default body swagger:model ToggleAlertRuleDefaultBody

func (*ToggleAlertRuleDefaultBody) MarshalBinary

func (o *ToggleAlertRuleDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ToggleAlertRuleDefaultBody) UnmarshalBinary

func (o *ToggleAlertRuleDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ToggleAlertRuleDefaultBody) Validate

func (o *ToggleAlertRuleDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this toggle alert rule default body

type ToggleAlertRuleOK

type ToggleAlertRuleOK struct {
	Payload interface{}
}

ToggleAlertRuleOK handles this case with default header values.

A successful response.

func NewToggleAlertRuleOK

func NewToggleAlertRuleOK() *ToggleAlertRuleOK

NewToggleAlertRuleOK creates a ToggleAlertRuleOK with default headers values

func (*ToggleAlertRuleOK) Error

func (o *ToggleAlertRuleOK) Error() string

func (*ToggleAlertRuleOK) GetPayload

func (o *ToggleAlertRuleOK) GetPayload() interface{}

type ToggleAlertRuleParams

type ToggleAlertRuleParams struct {

	/*Body*/
	Body ToggleAlertRuleBody

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

ToggleAlertRuleParams contains all the parameters to send to the API endpoint for the toggle alert rule operation typically these are written to a http.Request

func NewToggleAlertRuleParams

func NewToggleAlertRuleParams() *ToggleAlertRuleParams

NewToggleAlertRuleParams creates a new ToggleAlertRuleParams object with the default values initialized.

func NewToggleAlertRuleParamsWithContext

func NewToggleAlertRuleParamsWithContext(ctx context.Context) *ToggleAlertRuleParams

NewToggleAlertRuleParamsWithContext creates a new ToggleAlertRuleParams object with the default values initialized, and the ability to set a context for a request

func NewToggleAlertRuleParamsWithHTTPClient

func NewToggleAlertRuleParamsWithHTTPClient(client *http.Client) *ToggleAlertRuleParams

NewToggleAlertRuleParamsWithHTTPClient creates a new ToggleAlertRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewToggleAlertRuleParamsWithTimeout

func NewToggleAlertRuleParamsWithTimeout(timeout time.Duration) *ToggleAlertRuleParams

NewToggleAlertRuleParamsWithTimeout creates a new ToggleAlertRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*ToggleAlertRuleParams) SetBody

func (o *ToggleAlertRuleParams) SetBody(body ToggleAlertRuleBody)

SetBody adds the body to the toggle alert rule params

func (*ToggleAlertRuleParams) SetContext

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

SetContext adds the context to the toggle alert rule params

func (*ToggleAlertRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the toggle alert rule params

func (*ToggleAlertRuleParams) SetTimeout

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

SetTimeout adds the timeout to the toggle alert rule params

func (*ToggleAlertRuleParams) WithBody

WithBody adds the body to the toggle alert rule params

func (*ToggleAlertRuleParams) WithContext

WithContext adds the context to the toggle alert rule params

func (*ToggleAlertRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the toggle alert rule params

func (*ToggleAlertRuleParams) WithTimeout

func (o *ToggleAlertRuleParams) WithTimeout(timeout time.Duration) *ToggleAlertRuleParams

WithTimeout adds the timeout to the toggle alert rule params

func (*ToggleAlertRuleParams) WriteToRequest

func (o *ToggleAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ToggleAlertRuleReader

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

ToggleAlertRuleReader is a Reader for the ToggleAlertRule structure.

func (*ToggleAlertRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAlertRuleBody

type UpdateAlertRuleBody struct {

	// Rule ID.
	RuleID string `json:"rule_id,omitempty"`

	// New rule status. Should be set.
	Disabled bool `json:"disabled,omitempty"`

	// Rule parameters. All template parameters should be set.
	Params []*ParamsItems0 `json:"params"`

	// Rule duration. Should be set.
	For string `json:"for,omitempty"`

	// Severity represents severity level of the check result or alert.
	// Enum: [SEVERITY_INVALID SEVERITY_EMERGENCY SEVERITY_ALERT SEVERITY_CRITICAL SEVERITY_ERROR SEVERITY_WARNING SEVERITY_NOTICE SEVERITY_INFO SEVERITY_DEBUG]
	Severity *string `json:"severity,omitempty"`

	// All custom labels to add or remove (with empty values) to default labels from template.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Filters. Should be set.
	Filters []*FiltersItems0 `json:"filters"`

	// Channels. Should be set.
	ChannelIds []string `json:"channel_ids"`

	// Rule human-readable summary. Should be set.
	Summary string `json:"summary,omitempty"`
}

UpdateAlertRuleBody update alert rule body swagger:model UpdateAlertRuleBody

func (*UpdateAlertRuleBody) MarshalBinary

func (o *UpdateAlertRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateAlertRuleBody) UnmarshalBinary

func (o *UpdateAlertRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateAlertRuleBody) Validate

func (o *UpdateAlertRuleBody) Validate(formats strfmt.Registry) error

Validate validates this update alert rule body

type UpdateAlertRuleDefault

type UpdateAlertRuleDefault struct {
	Payload *UpdateAlertRuleDefaultBody
	// contains filtered or unexported fields
}

UpdateAlertRuleDefault handles this case with default header values.

An unexpected error response.

func NewUpdateAlertRuleDefault

func NewUpdateAlertRuleDefault(code int) *UpdateAlertRuleDefault

NewUpdateAlertRuleDefault creates a UpdateAlertRuleDefault with default headers values

func (*UpdateAlertRuleDefault) Code

func (o *UpdateAlertRuleDefault) Code() int

Code gets the status code for the update alert rule default response

func (*UpdateAlertRuleDefault) Error

func (o *UpdateAlertRuleDefault) Error() string

func (*UpdateAlertRuleDefault) GetPayload

type UpdateAlertRuleDefaultBody

type UpdateAlertRuleDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

UpdateAlertRuleDefaultBody update alert rule default body swagger:model UpdateAlertRuleDefaultBody

func (*UpdateAlertRuleDefaultBody) MarshalBinary

func (o *UpdateAlertRuleDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateAlertRuleDefaultBody) UnmarshalBinary

func (o *UpdateAlertRuleDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateAlertRuleDefaultBody) Validate

func (o *UpdateAlertRuleDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this update alert rule default body

type UpdateAlertRuleOK

type UpdateAlertRuleOK struct {
	Payload interface{}
}

UpdateAlertRuleOK handles this case with default header values.

A successful response.

func NewUpdateAlertRuleOK

func NewUpdateAlertRuleOK() *UpdateAlertRuleOK

NewUpdateAlertRuleOK creates a UpdateAlertRuleOK with default headers values

func (*UpdateAlertRuleOK) Error

func (o *UpdateAlertRuleOK) Error() string

func (*UpdateAlertRuleOK) GetPayload

func (o *UpdateAlertRuleOK) GetPayload() interface{}

type UpdateAlertRuleParams

type UpdateAlertRuleParams struct {

	/*Body*/
	Body UpdateAlertRuleBody

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

UpdateAlertRuleParams contains all the parameters to send to the API endpoint for the update alert rule operation typically these are written to a http.Request

func NewUpdateAlertRuleParams

func NewUpdateAlertRuleParams() *UpdateAlertRuleParams

NewUpdateAlertRuleParams creates a new UpdateAlertRuleParams object with the default values initialized.

func NewUpdateAlertRuleParamsWithContext

func NewUpdateAlertRuleParamsWithContext(ctx context.Context) *UpdateAlertRuleParams

NewUpdateAlertRuleParamsWithContext creates a new UpdateAlertRuleParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateAlertRuleParamsWithHTTPClient

func NewUpdateAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateAlertRuleParams

NewUpdateAlertRuleParamsWithHTTPClient creates a new UpdateAlertRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateAlertRuleParamsWithTimeout

func NewUpdateAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateAlertRuleParams

NewUpdateAlertRuleParamsWithTimeout creates a new UpdateAlertRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateAlertRuleParams) SetBody

func (o *UpdateAlertRuleParams) SetBody(body UpdateAlertRuleBody)

SetBody adds the body to the update alert rule params

func (*UpdateAlertRuleParams) SetContext

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

SetContext adds the context to the update alert rule params

func (*UpdateAlertRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update alert rule params

func (*UpdateAlertRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update alert rule params

func (*UpdateAlertRuleParams) WithBody

WithBody adds the body to the update alert rule params

func (*UpdateAlertRuleParams) WithContext

WithContext adds the context to the update alert rule params

func (*UpdateAlertRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update alert rule params

func (*UpdateAlertRuleParams) WithTimeout

func (o *UpdateAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateAlertRuleParams

WithTimeout adds the timeout to the update alert rule params

func (*UpdateAlertRuleParams) WriteToRequest

func (o *UpdateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateAlertRuleReader

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

UpdateAlertRuleReader is a Reader for the UpdateAlertRule structure.

func (*UpdateAlertRuleReader) ReadResponse

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