alerts

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

Documentation

Index

Constants

View Source
const (

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

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

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

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

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

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

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

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

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

	// AlertsItems0StatusSTATUSINVALID captures enum value "STATUS_INVALID"
	AlertsItems0StatusSTATUSINVALID string = "STATUS_INVALID"

	// AlertsItems0StatusCLEAR captures enum value "CLEAR"
	AlertsItems0StatusCLEAR string = "CLEAR"

	// AlertsItems0StatusPENDING captures enum value "PENDING"
	AlertsItems0StatusPENDING string = "PENDING"

	// AlertsItems0StatusTRIGGERING captures enum value "TRIGGERING"
	AlertsItems0StatusTRIGGERING string = "TRIGGERING"

	// AlertsItems0StatusSILENCED captures enum value "SILENCED"
	AlertsItems0StatusSILENCED string = "SILENCED"
)
View Source
const (

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// ToggleAlertBodySilencedFALSE captures enum value "FALSE"
	ToggleAlertBodySilencedFALSE string = "FALSE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertsItems0

type AlertsItems0 struct {

	// ID.
	AlertID string `json:"alert_id,omitempty"`

	// Human-readable summary.
	Summary string `json:"summary,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"`

	// Status represents Alert Rule's and Alert's combined status.
	//
	//  - CLEAR: No alert.
	//  - PENDING: Pending, but not triggering alert.
	//  - TRIGGERING: Triggering (firing) alert.
	//  - SILENCED: Silenced alert.
	// Enum: [STATUS_INVALID CLEAR PENDING TRIGGERING SILENCED]
	Status *string `json:"status,omitempty"`

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

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

	// Alert last update time.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// rule
	Rule *AlertsItems0Rule `json:"rule,omitempty"`
}

AlertsItems0 Alert represents Alert. swagger:model AlertsItems0

func (*AlertsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0) Validate

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

Validate validates this alerts items0

type AlertsItems0Rule

type AlertsItems0Rule 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 []*AlertsItems0RuleParamsItems0 `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 []*AlertsItems0RuleFiltersItems0 `json:"filters"`

	// Channels.
	Channels []*AlertsItems0RuleChannelsItems0 `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 *AlertsItems0RuleTemplate `json:"template,omitempty"`
}

AlertsItems0Rule Rule represents Alert Rule. swagger:model AlertsItems0Rule

func (*AlertsItems0Rule) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0Rule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0Rule) Validate

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

Validate validates this alerts items0 rule

type AlertsItems0RuleChannelsItems0

type AlertsItems0RuleChannelsItems0 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 *AlertsItems0RuleChannelsItems0EmailConfig `json:"email_config,omitempty"`

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

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

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

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

func (*AlertsItems0RuleChannelsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0) Validate

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

Validate validates this alerts items0 rule channels items0

type AlertsItems0RuleChannelsItems0EmailConfig

type AlertsItems0RuleChannelsItems0EmailConfig struct {

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

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

AlertsItems0RuleChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model AlertsItems0RuleChannelsItems0EmailConfig

func (*AlertsItems0RuleChannelsItems0EmailConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0EmailConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0EmailConfig) Validate

Validate validates this alerts items0 rule channels items0 email config

type AlertsItems0RuleChannelsItems0PagerdutyConfig

type AlertsItems0RuleChannelsItems0PagerdutyConfig 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"`
}

AlertsItems0RuleChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model AlertsItems0RuleChannelsItems0PagerdutyConfig

func (*AlertsItems0RuleChannelsItems0PagerdutyConfig) MarshalBinary

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0PagerdutyConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0PagerdutyConfig) Validate

Validate validates this alerts items0 rule channels items0 pagerduty config

type AlertsItems0RuleChannelsItems0SlackConfig

type AlertsItems0RuleChannelsItems0SlackConfig struct {

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

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

AlertsItems0RuleChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model AlertsItems0RuleChannelsItems0SlackConfig

func (*AlertsItems0RuleChannelsItems0SlackConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0SlackConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0SlackConfig) Validate

Validate validates this alerts items0 rule channels items0 slack config

type AlertsItems0RuleChannelsItems0WebhookConfig

type AlertsItems0RuleChannelsItems0WebhookConfig 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 *AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig `json:"http_config,omitempty"`
}

AlertsItems0RuleChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model AlertsItems0RuleChannelsItems0WebhookConfig

func (*AlertsItems0RuleChannelsItems0WebhookConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfig) Validate

Validate validates this alerts items0 rule channels items0 webhook config

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig 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 *AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth `json:"basic_auth,omitempty"`

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

AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) MarshalBinary

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) Validate

Validate validates this alerts items0 rule channels items0 webhook config HTTP config

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth struct {

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

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

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

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

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth) MarshalBinary

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth) Validate

Validate validates this alerts items0 rule channels items0 webhook config HTTP config basic auth

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig

type AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig 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"`
}

AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration. swagger:model AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig) MarshalBinary

MarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig) Validate

Validate validates this alerts items0 rule channels items0 webhook config HTTP config TLS config

type AlertsItems0RuleFiltersItems0

type AlertsItems0RuleFiltersItems0 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"`
}

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

func (*AlertsItems0RuleFiltersItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleFiltersItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleFiltersItems0) Validate

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

Validate validates this alerts items0 rule filters items0

type AlertsItems0RuleParamsItems0

type AlertsItems0RuleParamsItems0 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"`
}

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

func (*AlertsItems0RuleParamsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleParamsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleParamsItems0) Validate

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

Validate validates this alerts items0 rule params items0

type AlertsItems0RuleTemplate

type AlertsItems0RuleTemplate 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 []*AlertsItems0RuleTemplateParamsItems0 `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"`
}

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

func (*AlertsItems0RuleTemplate) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleTemplate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleTemplate) Validate

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

Validate validates this alerts items0 rule template

type AlertsItems0RuleTemplateParamsItems0

type AlertsItems0RuleTemplateParamsItems0 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 *AlertsItems0RuleTemplateParamsItems0Bool `json:"bool,omitempty"`

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

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

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

func (*AlertsItems0RuleTemplateParamsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0) Validate

Validate validates this alerts items0 rule template params items0

type AlertsItems0RuleTemplateParamsItems0Bool

type AlertsItems0RuleTemplateParamsItems0Bool 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"`
}

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

func (*AlertsItems0RuleTemplateParamsItems0Bool) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0Bool) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0Bool) Validate

Validate validates this alerts items0 rule template params items0 bool

type AlertsItems0RuleTemplateParamsItems0Float

type AlertsItems0RuleTemplateParamsItems0Float 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"`
}

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

func (*AlertsItems0RuleTemplateParamsItems0Float) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0Float) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0Float) Validate

Validate validates this alerts items0 rule template params items0 float

type AlertsItems0RuleTemplateParamsItems0String

type AlertsItems0RuleTemplateParamsItems0String 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"`
}

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

func (*AlertsItems0RuleTemplateParamsItems0String) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0String) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertsItems0RuleTemplateParamsItems0String) Validate

Validate validates this alerts items0 rule template params items0 string

type Client

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

Client for alerts API

func (*Client) ListAlerts

func (a *Client) ListAlerts(params *ListAlertsParams) (*ListAlertsOK, error)

ListAlerts lists alerts returns a list of all alerts

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ToggleAlert

func (a *Client) ToggleAlert(params *ToggleAlertParams) (*ToggleAlertOK, error)

ToggleAlert toggles alert allows to switch between silenced and unsilenced states of an alert

type ClientService

type ClientService interface {
	ListAlerts(params *ListAlertsParams) (*ListAlertsOK, error)

	ToggleAlert(params *ToggleAlertParams) (*ToggleAlertOK, 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 alerts API client.

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 ListAlertsBody

type ListAlertsBody struct {

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

ListAlertsBody list alerts body swagger:model ListAlertsBody

func (*ListAlertsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAlertsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAlertsBody) Validate

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

Validate validates this list alerts body

type ListAlertsDefault

type ListAlertsDefault struct {
	Payload *ListAlertsDefaultBody
	// contains filtered or unexported fields
}

ListAlertsDefault handles this case with default header values.

An unexpected error response.

func NewListAlertsDefault

func NewListAlertsDefault(code int) *ListAlertsDefault

NewListAlertsDefault creates a ListAlertsDefault with default headers values

func (*ListAlertsDefault) Code

func (o *ListAlertsDefault) Code() int

Code gets the status code for the list alerts default response

func (*ListAlertsDefault) Error

func (o *ListAlertsDefault) Error() string

func (*ListAlertsDefault) GetPayload

func (o *ListAlertsDefault) GetPayload() *ListAlertsDefaultBody

type ListAlertsDefaultBody

type ListAlertsDefaultBody struct {

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

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

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

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

ListAlertsDefaultBody list alerts default body swagger:model ListAlertsDefaultBody

func (*ListAlertsDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAlertsDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAlertsDefaultBody) Validate

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

Validate validates this list alerts default body

type ListAlertsOK

type ListAlertsOK struct {
	Payload *ListAlertsOKBody
}

ListAlertsOK handles this case with default header values.

A successful response.

func NewListAlertsOK

func NewListAlertsOK() *ListAlertsOK

NewListAlertsOK creates a ListAlertsOK with default headers values

func (*ListAlertsOK) Error

func (o *ListAlertsOK) Error() string

func (*ListAlertsOK) GetPayload

func (o *ListAlertsOK) GetPayload() *ListAlertsOKBody

type ListAlertsOKBody

type ListAlertsOKBody struct {

	// alerts
	Alerts []*AlertsItems0 `json:"alerts"`

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

ListAlertsOKBody list alerts OK body swagger:model ListAlertsOKBody

func (*ListAlertsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAlertsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAlertsOKBody) Validate

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

Validate validates this list alerts OK body

type ListAlertsOKBodyTotals

type ListAlertsOKBodyTotals struct {

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

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

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

func (*ListAlertsOKBodyTotals) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAlertsOKBodyTotals) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAlertsOKBodyTotals) Validate

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

Validate validates this list alerts OK body totals

type ListAlertsParams

type ListAlertsParams struct {

	/*Body*/
	Body ListAlertsBody

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

ListAlertsParams contains all the parameters to send to the API endpoint for the list alerts operation typically these are written to a http.Request

func NewListAlertsParams

func NewListAlertsParams() *ListAlertsParams

NewListAlertsParams creates a new ListAlertsParams object with the default values initialized.

func NewListAlertsParamsWithContext

func NewListAlertsParamsWithContext(ctx context.Context) *ListAlertsParams

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

func NewListAlertsParamsWithHTTPClient

func NewListAlertsParamsWithHTTPClient(client *http.Client) *ListAlertsParams

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

func NewListAlertsParamsWithTimeout

func NewListAlertsParamsWithTimeout(timeout time.Duration) *ListAlertsParams

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

func (*ListAlertsParams) SetBody

func (o *ListAlertsParams) SetBody(body ListAlertsBody)

SetBody adds the body to the list alerts params

func (*ListAlertsParams) SetContext

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

SetContext adds the context to the list alerts params

func (*ListAlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list alerts params

func (*ListAlertsParams) SetTimeout

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

SetTimeout adds the timeout to the list alerts params

func (*ListAlertsParams) WithBody

WithBody adds the body to the list alerts params

func (*ListAlertsParams) WithContext

func (o *ListAlertsParams) WithContext(ctx context.Context) *ListAlertsParams

WithContext adds the context to the list alerts params

func (*ListAlertsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list alerts params

func (*ListAlertsParams) WithTimeout

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

WithTimeout adds the timeout to the list alerts params

func (*ListAlertsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListAlertsParamsBodyPageParams

type ListAlertsParamsBodyPageParams 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"`
}

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

func (*ListAlertsParamsBodyPageParams) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAlertsParamsBodyPageParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAlertsParamsBodyPageParams) Validate

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

Validate validates this list alerts params body page params

type ListAlertsReader

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

ListAlertsReader is a Reader for the ListAlerts structure.

func (*ListAlertsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ToggleAlertBody

type ToggleAlertBody struct {

	// alert id
	AlertID string `json:"alert_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]
	Silenced *string `json:"silenced,omitempty"`
}

ToggleAlertBody toggle alert body swagger:model ToggleAlertBody

func (*ToggleAlertBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ToggleAlertBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ToggleAlertBody) Validate

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

Validate validates this toggle alert body

type ToggleAlertDefault

type ToggleAlertDefault struct {
	Payload *ToggleAlertDefaultBody
	// contains filtered or unexported fields
}

ToggleAlertDefault handles this case with default header values.

An unexpected error response.

func NewToggleAlertDefault

func NewToggleAlertDefault(code int) *ToggleAlertDefault

NewToggleAlertDefault creates a ToggleAlertDefault with default headers values

func (*ToggleAlertDefault) Code

func (o *ToggleAlertDefault) Code() int

Code gets the status code for the toggle alert default response

func (*ToggleAlertDefault) Error

func (o *ToggleAlertDefault) Error() string

func (*ToggleAlertDefault) GetPayload

func (o *ToggleAlertDefault) GetPayload() *ToggleAlertDefaultBody

type ToggleAlertDefaultBody

type ToggleAlertDefaultBody struct {

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

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

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

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

ToggleAlertDefaultBody toggle alert default body swagger:model ToggleAlertDefaultBody

func (*ToggleAlertDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ToggleAlertDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ToggleAlertDefaultBody) Validate

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

Validate validates this toggle alert default body

type ToggleAlertOK

type ToggleAlertOK struct {
	Payload interface{}
}

ToggleAlertOK handles this case with default header values.

A successful response.

func NewToggleAlertOK

func NewToggleAlertOK() *ToggleAlertOK

NewToggleAlertOK creates a ToggleAlertOK with default headers values

func (*ToggleAlertOK) Error

func (o *ToggleAlertOK) Error() string

func (*ToggleAlertOK) GetPayload

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

type ToggleAlertParams

type ToggleAlertParams struct {

	/*Body*/
	Body ToggleAlertBody

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

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

func NewToggleAlertParams

func NewToggleAlertParams() *ToggleAlertParams

NewToggleAlertParams creates a new ToggleAlertParams object with the default values initialized.

func NewToggleAlertParamsWithContext

func NewToggleAlertParamsWithContext(ctx context.Context) *ToggleAlertParams

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

func NewToggleAlertParamsWithHTTPClient

func NewToggleAlertParamsWithHTTPClient(client *http.Client) *ToggleAlertParams

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

func NewToggleAlertParamsWithTimeout

func NewToggleAlertParamsWithTimeout(timeout time.Duration) *ToggleAlertParams

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

func (*ToggleAlertParams) SetBody

func (o *ToggleAlertParams) SetBody(body ToggleAlertBody)

SetBody adds the body to the toggle alert params

func (*ToggleAlertParams) SetContext

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

SetContext adds the context to the toggle alert params

func (*ToggleAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the toggle alert params

func (*ToggleAlertParams) SetTimeout

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

SetTimeout adds the timeout to the toggle alert params

func (*ToggleAlertParams) WithBody

WithBody adds the body to the toggle alert params

func (*ToggleAlertParams) WithContext

func (o *ToggleAlertParams) WithContext(ctx context.Context) *ToggleAlertParams

WithContext adds the context to the toggle alert params

func (*ToggleAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the toggle alert params

func (*ToggleAlertParams) WithTimeout

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

WithTimeout adds the timeout to the toggle alert params

func (*ToggleAlertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ToggleAlertReader

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

ToggleAlertReader is a Reader for the ToggleAlert structure.

func (*ToggleAlertReader) ReadResponse

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