Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateAlertRule(params *CreateAlertRuleParams) (*CreateAlertRuleOK, error)
- func (a *Client) DeleteAlertRule(params *DeleteAlertRuleParams) (*DeleteAlertRuleOK, error)
- func (a *Client) ListAlertRules(params *ListAlertRulesParams) (*ListAlertRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) ToggleAlertRule(params *ToggleAlertRuleParams) (*ToggleAlertRuleOK, error)
- func (a *Client) UpdateAlertRule(params *UpdateAlertRuleParams) (*UpdateAlertRuleOK, error)
- type ClientService
- type CreateAlertRuleBody
- type CreateAlertRuleDefault
- type CreateAlertRuleDefaultBody
- type CreateAlertRuleOK
- type CreateAlertRuleOKBody
- type CreateAlertRuleParams
- func NewCreateAlertRuleParams() *CreateAlertRuleParams
- func NewCreateAlertRuleParamsWithContext(ctx context.Context) *CreateAlertRuleParams
- func NewCreateAlertRuleParamsWithHTTPClient(client *http.Client) *CreateAlertRuleParams
- func NewCreateAlertRuleParamsWithTimeout(timeout time.Duration) *CreateAlertRuleParams
- func (o *CreateAlertRuleParams) SetBody(body CreateAlertRuleBody)
- func (o *CreateAlertRuleParams) SetContext(ctx context.Context)
- func (o *CreateAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateAlertRuleParams) WithBody(body CreateAlertRuleBody) *CreateAlertRuleParams
- func (o *CreateAlertRuleParams) WithContext(ctx context.Context) *CreateAlertRuleParams
- func (o *CreateAlertRuleParams) WithHTTPClient(client *http.Client) *CreateAlertRuleParams
- func (o *CreateAlertRuleParams) WithTimeout(timeout time.Duration) *CreateAlertRuleParams
- func (o *CreateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAlertRuleReader
- type DeleteAlertRuleBody
- type DeleteAlertRuleDefault
- type DeleteAlertRuleDefaultBody
- type DeleteAlertRuleOK
- type DeleteAlertRuleParams
- func NewDeleteAlertRuleParams() *DeleteAlertRuleParams
- func NewDeleteAlertRuleParamsWithContext(ctx context.Context) *DeleteAlertRuleParams
- func NewDeleteAlertRuleParamsWithHTTPClient(client *http.Client) *DeleteAlertRuleParams
- func NewDeleteAlertRuleParamsWithTimeout(timeout time.Duration) *DeleteAlertRuleParams
- func (o *DeleteAlertRuleParams) SetBody(body DeleteAlertRuleBody)
- func (o *DeleteAlertRuleParams) SetContext(ctx context.Context)
- func (o *DeleteAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAlertRuleParams) WithBody(body DeleteAlertRuleBody) *DeleteAlertRuleParams
- func (o *DeleteAlertRuleParams) WithContext(ctx context.Context) *DeleteAlertRuleParams
- func (o *DeleteAlertRuleParams) WithHTTPClient(client *http.Client) *DeleteAlertRuleParams
- func (o *DeleteAlertRuleParams) WithTimeout(timeout time.Duration) *DeleteAlertRuleParams
- func (o *DeleteAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAlertRuleReader
- type DetailsItems0
- type FiltersItems0
- type ListAlertRulesDefault
- type ListAlertRulesDefaultBody
- type ListAlertRulesOK
- type ListAlertRulesOKBody
- type ListAlertRulesParams
- func NewListAlertRulesParams() *ListAlertRulesParams
- func NewListAlertRulesParamsWithContext(ctx context.Context) *ListAlertRulesParams
- func NewListAlertRulesParamsWithHTTPClient(client *http.Client) *ListAlertRulesParams
- func NewListAlertRulesParamsWithTimeout(timeout time.Duration) *ListAlertRulesParams
- func (o *ListAlertRulesParams) SetBody(body interface{})
- func (o *ListAlertRulesParams) SetContext(ctx context.Context)
- func (o *ListAlertRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListAlertRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListAlertRulesParams) WithBody(body interface{}) *ListAlertRulesParams
- func (o *ListAlertRulesParams) WithContext(ctx context.Context) *ListAlertRulesParams
- func (o *ListAlertRulesParams) WithHTTPClient(client *http.Client) *ListAlertRulesParams
- func (o *ListAlertRulesParams) WithTimeout(timeout time.Duration) *ListAlertRulesParams
- func (o *ListAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListAlertRulesReader
- type ParamsItems0
- type RulesItems0
- type RulesItems0ChannelsItems0
- type RulesItems0ChannelsItems0EmailConfig
- type RulesItems0ChannelsItems0PagerdutyConfig
- type RulesItems0ChannelsItems0SlackConfig
- type RulesItems0ChannelsItems0WebhookConfig
- type RulesItems0ChannelsItems0WebhookConfigHTTPConfig
- type RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) MarshalBinary() ([]byte, error)
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary(b []byte) error
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) Validate(formats strfmt.Registry) error
- type RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) MarshalBinary() ([]byte, error)
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary(b []byte) error
- func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) Validate(formats strfmt.Registry) error
- type RulesItems0FiltersItems0
- type RulesItems0ParamsItems0
- type RulesItems0Template
- type RulesItems0TemplateParamsItems0
- type RulesItems0TemplateParamsItems0Bool
- type RulesItems0TemplateParamsItems0Float
- type RulesItems0TemplateParamsItems0String
- type ToggleAlertRuleBody
- type ToggleAlertRuleDefault
- type ToggleAlertRuleDefaultBody
- type ToggleAlertRuleOK
- type ToggleAlertRuleParams
- func NewToggleAlertRuleParams() *ToggleAlertRuleParams
- func NewToggleAlertRuleParamsWithContext(ctx context.Context) *ToggleAlertRuleParams
- func NewToggleAlertRuleParamsWithHTTPClient(client *http.Client) *ToggleAlertRuleParams
- func NewToggleAlertRuleParamsWithTimeout(timeout time.Duration) *ToggleAlertRuleParams
- func (o *ToggleAlertRuleParams) SetBody(body ToggleAlertRuleBody)
- func (o *ToggleAlertRuleParams) SetContext(ctx context.Context)
- func (o *ToggleAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *ToggleAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *ToggleAlertRuleParams) WithBody(body ToggleAlertRuleBody) *ToggleAlertRuleParams
- func (o *ToggleAlertRuleParams) WithContext(ctx context.Context) *ToggleAlertRuleParams
- func (o *ToggleAlertRuleParams) WithHTTPClient(client *http.Client) *ToggleAlertRuleParams
- func (o *ToggleAlertRuleParams) WithTimeout(timeout time.Duration) *ToggleAlertRuleParams
- func (o *ToggleAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ToggleAlertRuleReader
- type UpdateAlertRuleBody
- type UpdateAlertRuleDefault
- type UpdateAlertRuleDefaultBody
- type UpdateAlertRuleOK
- type UpdateAlertRuleParams
- func NewUpdateAlertRuleParams() *UpdateAlertRuleParams
- func NewUpdateAlertRuleParamsWithContext(ctx context.Context) *UpdateAlertRuleParams
- func NewUpdateAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateAlertRuleParams
- func NewUpdateAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateAlertRuleParams
- func (o *UpdateAlertRuleParams) SetBody(body UpdateAlertRuleBody)
- func (o *UpdateAlertRuleParams) SetContext(ctx context.Context)
- func (o *UpdateAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAlertRuleParams) WithBody(body UpdateAlertRuleBody) *UpdateAlertRuleParams
- func (o *UpdateAlertRuleParams) WithContext(ctx context.Context) *UpdateAlertRuleParams
- func (o *UpdateAlertRuleParams) WithHTTPClient(client *http.Client) *UpdateAlertRuleParams
- func (o *UpdateAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateAlertRuleParams
- func (o *UpdateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAlertRuleReader
Constants ¶
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" )
const ( // FiltersItems0TypeFILTERTYPEINVALID captures enum value "FILTER_TYPE_INVALID" FiltersItems0TypeFILTERTYPEINVALID string = "FILTER_TYPE_INVALID" // FiltersItems0TypeEQUAL captures enum value "EQUAL" FiltersItems0TypeEQUAL string = "EQUAL" // FiltersItems0TypeNOTEQUAL captures enum value "NOT_EQUAL" FiltersItems0TypeNOTEQUAL string = "NOT_EQUAL" // FiltersItems0TypeREGEX captures enum value "REGEX" FiltersItems0TypeREGEX string = "REGEX" // FiltersItems0TypeNOTREGEX captures enum value "NOT_REGEX" FiltersItems0TypeNOTREGEX string = "NOT_REGEX" )
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" )
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" )
const ( // RulesItems0FiltersItems0TypeFILTERTYPEINVALID captures enum value "FILTER_TYPE_INVALID" RulesItems0FiltersItems0TypeFILTERTYPEINVALID string = "FILTER_TYPE_INVALID" // RulesItems0FiltersItems0TypeEQUAL captures enum value "EQUAL" RulesItems0FiltersItems0TypeEQUAL string = "EQUAL" // RulesItems0FiltersItems0TypeNOTEQUAL captures enum value "NOT_EQUAL" RulesItems0FiltersItems0TypeNOTEQUAL string = "NOT_EQUAL" // RulesItems0FiltersItems0TypeREGEX captures enum value "REGEX" RulesItems0FiltersItems0TypeREGEX string = "REGEX" // RulesItems0FiltersItems0TypeNOTREGEX captures enum value "NOT_REGEX" RulesItems0FiltersItems0TypeNOTREGEX string = "NOT_REGEX" )
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" )
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" )
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" )
const ( // RulesItems0TemplateParamsItems0UnitPARAMUNITINVALID captures enum value "PARAM_UNIT_INVALID" RulesItems0TemplateParamsItems0UnitPARAMUNITINVALID string = "PARAM_UNIT_INVALID" // RulesItems0TemplateParamsItems0UnitPERCENTAGE captures enum value "PERCENTAGE" RulesItems0TemplateParamsItems0UnitPERCENTAGE string = "PERCENTAGE" )
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" )
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" )
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" )
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 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
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 ¶
func (o *CreateAlertRuleDefault) GetPayload() *CreateAlertRuleDefaultBody
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
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
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 ¶
func (o *CreateAlertRuleParams) WithBody(body CreateAlertRuleBody) *CreateAlertRuleParams
WithBody adds the body to the create alert rule params
func (*CreateAlertRuleParams) WithContext ¶
func (o *CreateAlertRuleParams) WithContext(ctx context.Context) *CreateAlertRuleParams
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
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 ¶
func (o *DeleteAlertRuleDefault) GetPayload() *DeleteAlertRuleDefaultBody
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
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 ¶
func (o *DeleteAlertRuleParams) WithBody(body DeleteAlertRuleBody) *DeleteAlertRuleParams
WithBody adds the body to the delete alert rule params
func (*DeleteAlertRuleParams) WithContext ¶
func (o *DeleteAlertRuleParams) WithContext(ctx context.Context) *DeleteAlertRuleParams
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
type FiltersItems0 ¶
type FiltersItems0 struct { // FilterType represents filter matching type. // // - EQUAL: = // - NOT_EQUAL: != // - REGEX: =~ // - NOT_REGEX: !~ // Enum: [FILTER_TYPE_INVALID EQUAL NOT_EQUAL REGEX NOT_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
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 ¶
func (o *ListAlertRulesDefault) GetPayload() *ListAlertRulesDefaultBody
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
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"` }
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
type ListAlertRulesParams ¶
type ListAlertRulesParams struct { /*Body*/ Body interface{} 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 interface{})
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 ¶
func (o *ListAlertRulesParams) WithBody(body interface{}) *ListAlertRulesParams
WithBody adds the body to the list alert rules params
func (*ListAlertRulesParams) WithContext ¶
func (o *ListAlertRulesParams) WithContext(ctx context.Context) *ListAlertRulesParams
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 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
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 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
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
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
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
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
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
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 ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary ¶
func (o *RulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RulesItems0FiltersItems0 ¶
type RulesItems0FiltersItems0 struct { // FilterType represents filter matching type. // // - EQUAL: = // - NOT_EQUAL: != // - REGEX: =~ // - NOT_REGEX: !~ // Enum: [FILTER_TYPE_INVALID EQUAL NOT_EQUAL REGEX NOT_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
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
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
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: % // Enum: [PARAM_UNIT_INVALID PERCENTAGE] 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
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
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
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
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
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 ¶
func (o *ToggleAlertRuleDefault) GetPayload() *ToggleAlertRuleDefaultBody
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
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 ¶
func (o *ToggleAlertRuleParams) WithBody(body ToggleAlertRuleBody) *ToggleAlertRuleParams
WithBody adds the body to the toggle alert rule params
func (*ToggleAlertRuleParams) WithContext ¶
func (o *ToggleAlertRuleParams) WithContext(ctx context.Context) *ToggleAlertRuleParams
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"` }
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
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 ¶
func (o *UpdateAlertRuleDefault) GetPayload() *UpdateAlertRuleDefaultBody
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
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 ¶
func (o *UpdateAlertRuleParams) WithBody(body UpdateAlertRuleBody) *UpdateAlertRuleParams
WithBody adds the body to the update alert rule params
func (*UpdateAlertRuleParams) WithContext ¶
func (o *UpdateAlertRuleParams) WithContext(ctx context.Context) *UpdateAlertRuleParams
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.
Source Files ¶
- create_alert_rule_parameters.go
- create_alert_rule_responses.go
- delete_alert_rule_parameters.go
- delete_alert_rule_responses.go
- list_alert_rules_parameters.go
- list_alert_rules_responses.go
- rules_client.go
- toggle_alert_rule_parameters.go
- toggle_alert_rule_responses.go
- update_alert_rule_parameters.go
- update_alert_rule_responses.go