models

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertBulkUploadResponse

type AlertBulkUploadResponse struct {

	// errors
	// Required: true
	Errors map[string]string `json:"errors"`

	// statuses
	// Required: true
	Statuses map[string]string `json:"statuses"`
}

AlertBulkUploadResponse alert bulk upload response swagger:model alert_bulk_upload_response

func (*AlertBulkUploadResponse) MarshalBinary

func (m *AlertBulkUploadResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertBulkUploadResponse) UnmarshalBinary

func (m *AlertBulkUploadResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertBulkUploadResponse) Validate

func (m *AlertBulkUploadResponse) Validate(formats strfmt.Registry) error

Validate validates this alert bulk upload response

type AlertReceiverConfig

type AlertReceiverConfig struct {

	// email configs
	EmailConfigs []*EmailReceiver `json:"email_configs"`

	// name
	// Required: true
	Name *string `json:"name"`

	// slack configs
	SLACKConfigs []*SLACKReceiver `json:"slack_configs"`

	// webhook configs
	WebhookConfigs []*WebhookReceiver `json:"webhook_configs"`
}

AlertReceiverConfig alert receiver config swagger:model alert_receiver_config

func (*AlertReceiverConfig) MarshalBinary

func (m *AlertReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertReceiverConfig) UnmarshalBinary

func (m *AlertReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertReceiverConfig) Validate

func (m *AlertReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this alert receiver config

type AlertRoutingTree

type AlertRoutingTree struct {

	// continue
	Continue bool `json:"continue,omitempty"`

	// group by
	GroupBy []string `json:"group_by"`

	// group interval
	GroupInterval string `json:"group_interval,omitempty"`

	// group wait
	GroupWait string `json:"group_wait,omitempty"`

	// match
	Match *AlertRoutingTreeMatch `json:"match,omitempty"`

	// match re
	MatchRe *AlertRoutingTreeMatchRe `json:"match_re,omitempty"`

	// receiver
	// Required: true
	Receiver *string `json:"receiver"`

	// repeat interval
	RepeatInterval string `json:"repeat_interval,omitempty"`

	// routes
	Routes []*AlertRoutingTree `json:"routes"`
}

AlertRoutingTree alert routing tree swagger:model alert_routing_tree

func (*AlertRoutingTree) MarshalBinary

func (m *AlertRoutingTree) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRoutingTree) UnmarshalBinary

func (m *AlertRoutingTree) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRoutingTree) Validate

func (m *AlertRoutingTree) Validate(formats strfmt.Registry) error

Validate validates this alert routing tree

type AlertRoutingTreeMatch

type AlertRoutingTreeMatch struct {

	// label
	Label string `json:"label,omitempty"`

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

AlertRoutingTreeMatch alert routing tree match swagger:model AlertRoutingTreeMatch

func (*AlertRoutingTreeMatch) MarshalBinary

func (m *AlertRoutingTreeMatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRoutingTreeMatch) UnmarshalBinary

func (m *AlertRoutingTreeMatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRoutingTreeMatch) Validate

func (m *AlertRoutingTreeMatch) Validate(formats strfmt.Registry) error

Validate validates this alert routing tree match

type AlertRoutingTreeMatchRe

type AlertRoutingTreeMatchRe struct {

	// label
	Label string `json:"label,omitempty"`

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

AlertRoutingTreeMatchRe alert routing tree match re swagger:model AlertRoutingTreeMatchRe

func (*AlertRoutingTreeMatchRe) MarshalBinary

func (m *AlertRoutingTreeMatchRe) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRoutingTreeMatchRe) UnmarshalBinary

func (m *AlertRoutingTreeMatchRe) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRoutingTreeMatchRe) Validate

func (m *AlertRoutingTreeMatchRe) Validate(formats strfmt.Registry) error

Validate validates this alert routing tree match re

type AlertSilenceStatus

type AlertSilenceStatus struct {

	// state
	// Required: true
	State *string `json:"state"`
}

AlertSilenceStatus alert silence status swagger:model alert_silence_status

func (*AlertSilenceStatus) MarshalBinary

func (m *AlertSilenceStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertSilenceStatus) UnmarshalBinary

func (m *AlertSilenceStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertSilenceStatus) Validate

func (m *AlertSilenceStatus) Validate(formats strfmt.Registry) error

Validate validates this alert silence status

type AlertSilencer

type AlertSilencer struct {

	// comment
	// Required: true
	Comment *string `json:"comment"`

	// created by
	// Required: true
	CreatedBy *string `json:"createdBy"`

	// ends at
	// Required: true
	EndsAt *string `json:"endsAt"`

	// matchers
	// Required: true
	Matchers []*Matcher `json:"matchers"`

	// starts at
	// Required: true
	StartsAt *string `json:"startsAt"`
}

AlertSilencer alert silencer swagger:model alert_silencer

func (*AlertSilencer) MarshalBinary

func (m *AlertSilencer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertSilencer) UnmarshalBinary

func (m *AlertSilencer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertSilencer) Validate

func (m *AlertSilencer) Validate(formats strfmt.Registry) error

Validate validates this alert silencer

type EmailReceiver

type EmailReceiver struct {

	// auth identity
	AuthIdentity string `json:"auth_identity,omitempty"`

	// auth password
	AuthPassword string `json:"auth_password,omitempty"`

	// auth secret
	AuthSecret string `json:"auth_secret,omitempty"`

	// auth username
	AuthUsername string `json:"auth_username,omitempty"`

	// from
	// Required: true
	From *string `json:"from"`

	// headers
	Headers map[string]string `json:"headers,omitempty"`

	// hello
	Hello string `json:"hello,omitempty"`

	// html
	HTML string `json:"html,omitempty"`

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

	// smarthost
	// Required: true
	Smarthost *string `json:"smarthost"`

	// text
	Text string `json:"text,omitempty"`

	// to
	// Required: true
	To *string `json:"to"`
}

EmailReceiver email receiver swagger:model email_receiver

func (*EmailReceiver) MarshalBinary

func (m *EmailReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EmailReceiver) UnmarshalBinary

func (m *EmailReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EmailReceiver) Validate

func (m *EmailReceiver) Validate(formats strfmt.Registry) error

Validate validates this email receiver

type GettableAlert

type GettableAlert struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

GettableAlert gettable alert swagger:model gettable_alert

func (*GettableAlert) MarshalBinary

func (m *GettableAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableAlert) UnmarshalBinary

func (m *GettableAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableAlert) Validate

func (m *GettableAlert) Validate(formats strfmt.Registry) error

Validate validates this gettable alert

type GettableAlertSilencer

type GettableAlertSilencer struct {
	AlertSilencer

	// id
	// Required: true
	ID *string `json:"id"`

	// status
	// Required: true
	Status *AlertSilenceStatus `json:"status"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updatedAt"`
}

GettableAlertSilencer gettable alert silencer swagger:model gettable_alert_silencer

func (*GettableAlertSilencer) MarshalBinary

func (m *GettableAlertSilencer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GettableAlertSilencer) MarshalJSON

func (m GettableAlertSilencer) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GettableAlertSilencer) UnmarshalBinary

func (m *GettableAlertSilencer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableAlertSilencer) UnmarshalJSON

func (m *GettableAlertSilencer) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GettableAlertSilencer) Validate

func (m *GettableAlertSilencer) Validate(formats strfmt.Registry) error

Validate validates this gettable alert silencer

type HTTPConfig

type HTTPConfig struct {

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

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

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

HTTPConfig http config swagger:model http_config

func (*HTTPConfig) MarshalBinary

func (m *HTTPConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HTTPConfig) UnmarshalBinary

func (m *HTTPConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HTTPConfig) Validate

func (m *HTTPConfig) Validate(formats strfmt.Registry) error

Validate validates this http config

type HTTPConfigBasicAuth

type HTTPConfigBasicAuth struct {

	// password
	// Required: true
	Password *string `json:"password"`

	// username
	// Required: true
	Username *string `json:"username"`
}

HTTPConfigBasicAuth http config basic auth swagger:model http_config_basic_auth

func (*HTTPConfigBasicAuth) MarshalBinary

func (m *HTTPConfigBasicAuth) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HTTPConfigBasicAuth) UnmarshalBinary

func (m *HTTPConfigBasicAuth) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HTTPConfigBasicAuth) Validate

func (m *HTTPConfigBasicAuth) Validate(formats strfmt.Registry) error

Validate validates this http config basic auth

type LabelPair

type LabelPair struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// value
	// Required: true
	Value *string `json:"value"`
}

LabelPair label pair swagger:model label_pair

func (*LabelPair) MarshalBinary

func (m *LabelPair) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelPair) UnmarshalBinary

func (m *LabelPair) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelPair) Validate

func (m *LabelPair) Validate(formats strfmt.Registry) error

Validate validates this label pair

type Matcher

type Matcher struct {

	// is regex
	// Required: true
	IsRegex *bool `json:"isRegex"`

	// name
	// Required: true
	Name *string `json:"name"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Matcher matcher swagger:model matcher

func (*Matcher) MarshalBinary

func (m *Matcher) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Matcher) UnmarshalBinary

func (m *Matcher) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Matcher) Validate

func (m *Matcher) Validate(formats strfmt.Registry) error

Validate validates this matcher

type MetricDatapoint

type MetricDatapoint []string

MetricDatapoint metric datapoint swagger:model metric_datapoint

func (MetricDatapoint) Validate

func (m MetricDatapoint) Validate(formats strfmt.Registry) error

Validate validates this metric datapoint

type MetricDatapoints

type MetricDatapoints []MetricDatapoint

MetricDatapoints metric datapoints swagger:model metric_datapoints

func (MetricDatapoints) Validate

func (m MetricDatapoints) Validate(formats strfmt.Registry) error

Validate validates this metric datapoints

type PromAlertConfig

type PromAlertConfig struct {

	// alert
	// Required: true
	Alert *string `json:"alert"`

	// annotations
	Annotations PromAlertLabels `json:"annotations,omitempty"`

	// expr
	// Required: true
	Expr *string `json:"expr"`

	// for
	For string `json:"for,omitempty"`

	// labels
	Labels PromAlertLabels `json:"labels,omitempty"`
}

PromAlertConfig prom alert config swagger:model prom_alert_config

func (*PromAlertConfig) MarshalBinary

func (m *PromAlertConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromAlertConfig) UnmarshalBinary

func (m *PromAlertConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromAlertConfig) Validate

func (m *PromAlertConfig) Validate(formats strfmt.Registry) error

Validate validates this prom alert config

type PromAlertConfigList

type PromAlertConfigList []*PromAlertConfig

PromAlertConfigList prom alert config list swagger:model prom_alert_config_list

func (PromAlertConfigList) Validate

func (m PromAlertConfigList) Validate(formats strfmt.Registry) error

Validate validates this prom alert config list

type PromAlertLabels

type PromAlertLabels map[string]string

PromAlertLabels prom alert labels swagger:model prom_alert_labels

func (PromAlertLabels) Validate

func (m PromAlertLabels) Validate(formats strfmt.Registry) error

Validate validates this prom alert labels

type PromAlertStatus

type PromAlertStatus struct {

	// inhibited by
	// Required: true
	InhibitedBy []string `json:"inhibitedBy"`

	// silenced by
	// Required: true
	SilencedBy []string `json:"silencedBy"`

	// state
	// Required: true
	State *string `json:"state"`
}

PromAlertStatus prom alert status swagger:model prom_alert_status

func (*PromAlertStatus) MarshalBinary

func (m *PromAlertStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromAlertStatus) UnmarshalBinary

func (m *PromAlertStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromAlertStatus) Validate

func (m *PromAlertStatus) Validate(formats strfmt.Registry) error

Validate validates this prom alert status

type PromFiringAlert

type PromFiringAlert struct {

	// annotations
	// Required: true
	Annotations PromAlertLabels `json:"annotations"`

	// ends at
	// Required: true
	EndsAt *string `json:"endsAt"`

	// fingerprint
	// Required: true
	Fingerprint *string `json:"fingerprint"`

	// generator URL
	GeneratorURL string `json:"generatorURL,omitempty"`

	// labels
	// Required: true
	Labels PromAlertLabels `json:"labels"`

	// receivers
	// Required: true
	Receivers *GettableAlert `json:"receivers"`

	// starts at
	// Required: true
	StartsAt *string `json:"startsAt"`

	// status
	// Required: true
	Status *PromAlertStatus `json:"status"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updatedAt"`
}

PromFiringAlert prom firing alert swagger:model prom_firing_alert

func (*PromFiringAlert) MarshalBinary

func (m *PromFiringAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromFiringAlert) UnmarshalBinary

func (m *PromFiringAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromFiringAlert) Validate

func (m *PromFiringAlert) Validate(formats strfmt.Registry) error

Validate validates this prom firing alert

type PrometheusLabelset

type PrometheusLabelset map[string]string

PrometheusLabelset prometheus labelset swagger:model prometheus_labelset

func (PrometheusLabelset) Validate

func (m PrometheusLabelset) Validate(formats strfmt.Registry) error

Validate validates this prometheus labelset

type PrometheusTargetMetadata

type PrometheusTargetMetadata struct {

	// instance
	// Required: true
	Instance *string `json:"instance"`

	// job
	// Required: true
	Job *string `json:"job"`
}

PrometheusTargetMetadata prometheus target metadata swagger:model prometheus_target_metadata

func (*PrometheusTargetMetadata) MarshalBinary

func (m *PrometheusTargetMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PrometheusTargetMetadata) UnmarshalBinary

func (m *PrometheusTargetMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PrometheusTargetMetadata) Validate

func (m *PrometheusTargetMetadata) Validate(formats strfmt.Registry) error

Validate validates this prometheus target metadata

type PrometheusTargetsMetadata

type PrometheusTargetsMetadata struct {

	// help
	// Required: true
	Help *string `json:"help"`

	// metric
	// Required: true
	Metric *string `json:"metric"`

	// target
	// Required: true
	Target *PrometheusTargetMetadata `json:"target"`

	// type
	// Required: true
	Type *string `json:"type"`

	// unit
	// Required: true
	Unit *string `json:"unit"`
}

PrometheusTargetsMetadata prometheus targets metadata swagger:model prometheus_targets_metadata

func (*PrometheusTargetsMetadata) MarshalBinary

func (m *PrometheusTargetsMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PrometheusTargetsMetadata) UnmarshalBinary

func (m *PrometheusTargetsMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PrometheusTargetsMetadata) Validate

func (m *PrometheusTargetsMetadata) Validate(formats strfmt.Registry) error

Validate validates this prometheus targets metadata

type PromqlData

type PromqlData struct {

	// result
	// Required: true
	Result PromqlResult `json:"result"`

	// result type
	// Required: true
	ResultType *string `json:"resultType"`
}

PromqlData promql data swagger:model promql_data

func (*PromqlData) MarshalBinary

func (m *PromqlData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromqlData) UnmarshalBinary

func (m *PromqlData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromqlData) Validate

func (m *PromqlData) Validate(formats strfmt.Registry) error

Validate validates this promql data

type PromqlMetric

type PromqlMetric struct {

	// additional properties
	AdditionalProperties string `json:"additionalProperties,omitempty"`
}

PromqlMetric promql metric swagger:model promql_metric

func (*PromqlMetric) MarshalBinary

func (m *PromqlMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromqlMetric) UnmarshalBinary

func (m *PromqlMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromqlMetric) Validate

func (m *PromqlMetric) Validate(formats strfmt.Registry) error

Validate validates this promql metric

type PromqlMetricValue

type PromqlMetricValue struct {

	// metric
	// Required: true
	Metric *PromqlMetric `json:"metric"`

	// value
	Value MetricDatapoint `json:"value,omitempty"`

	// values
	Values MetricDatapoints `json:"values,omitempty"`
}

PromqlMetricValue If resultType is 'vector' value is in the result, if 'matrix', values is in the result swagger:model promql_metric_value

func (*PromqlMetricValue) MarshalBinary

func (m *PromqlMetricValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromqlMetricValue) UnmarshalBinary

func (m *PromqlMetricValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromqlMetricValue) Validate

func (m *PromqlMetricValue) Validate(formats strfmt.Registry) error

Validate validates this promql metric value

type PromqlResult

type PromqlResult []*PromqlMetricValue

PromqlResult promql result swagger:model promql_result

func (PromqlResult) Validate

func (m PromqlResult) Validate(formats strfmt.Registry) error

Validate validates this promql result

type PromqlReturnObject

type PromqlReturnObject struct {

	// data
	// Required: true
	Data *PromqlData `json:"data"`

	// status
	// Required: true
	Status *string `json:"status"`
}

PromqlReturnObject promql return object swagger:model promql_return_object

func (*PromqlReturnObject) MarshalBinary

func (m *PromqlReturnObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromqlReturnObject) UnmarshalBinary

func (m *PromqlReturnObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromqlReturnObject) Validate

func (m *PromqlReturnObject) Validate(formats strfmt.Registry) error

Validate validates this promql return object

type PushedMetric

type PushedMetric struct {

	// labels
	Labels []*LabelPair `json:"labels"`

	// metric name
	// Required: true
	MetricName *string `json:"metricName"`

	// timestamp
	Timestamp string `json:"timestamp,omitempty"`

	// value
	// Required: true
	Value *float64 `json:"value"`
}

PushedMetric pushed metric swagger:model pushed_metric

func (*PushedMetric) MarshalBinary

func (m *PushedMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PushedMetric) UnmarshalBinary

func (m *PushedMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PushedMetric) Validate

func (m *PushedMetric) Validate(formats strfmt.Registry) error

Validate validates this pushed metric

type SLACKAction

type SLACKAction struct {

	// confirm
	Confirm *SLACKConfirmField `json:"confirm,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// style
	Style string `json:"style,omitempty"`

	// text
	// Required: true
	Text *string `json:"text"`

	// type
	// Required: true
	Type *string `json:"type"`

	// url
	// Required: true
	URL *string `json:"url"`

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

SLACKAction slack action swagger:model slack_action

func (*SLACKAction) MarshalBinary

func (m *SLACKAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SLACKAction) UnmarshalBinary

func (m *SLACKAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SLACKAction) Validate

func (m *SLACKAction) Validate(formats strfmt.Registry) error

Validate validates this slack action

type SLACKConfirmField

type SLACKConfirmField struct {

	// dismiss text
	// Required: true
	DismissText *string `json:"dismiss_text"`

	// ok text
	// Required: true
	OkText *string `json:"ok_text"`

	// text
	// Required: true
	Text *string `json:"text"`

	// title
	// Required: true
	Title *string `json:"title"`
}

SLACKConfirmField slack confirm field swagger:model slack_confirm_field

func (*SLACKConfirmField) MarshalBinary

func (m *SLACKConfirmField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SLACKConfirmField) UnmarshalBinary

func (m *SLACKConfirmField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SLACKConfirmField) Validate

func (m *SLACKConfirmField) Validate(formats strfmt.Registry) error

Validate validates this slack confirm field

type SLACKField

type SLACKField struct {

	// short
	Short bool `json:"short,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`

	// value
	// Required: true
	Value *string `json:"value"`
}

SLACKField slack field swagger:model slack_field

func (*SLACKField) MarshalBinary

func (m *SLACKField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SLACKField) UnmarshalBinary

func (m *SLACKField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SLACKField) Validate

func (m *SLACKField) Validate(formats strfmt.Registry) error

Validate validates this slack field

type SLACKReceiver

type SLACKReceiver struct {

	// actions
	Actions []*SLACKAction `json:"actions"`

	// api url
	// Required: true
	APIURL *string `json:"api_url"`

	// callback id
	CallbackID string `json:"callback_id,omitempty"`

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

	// color
	Color string `json:"color,omitempty"`

	// fallback
	Fallback string `json:"fallback,omitempty"`

	// fields
	Fields []*SLACKField `json:"fields"`

	// footer
	Footer string `json:"footer,omitempty"`

	// icon emoji
	IconEmoji string `json:"icon_emoji,omitempty"`

	// icon url
	IconURL string `json:"icon_url,omitempty"`

	// image url
	ImageURL string `json:"image_url,omitempty"`

	// link names
	LinkNames bool `json:"link_names,omitempty"`

	// pretext
	Pretext string `json:"pretext,omitempty"`

	// short fields
	ShortFields bool `json:"short_fields,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// thumb url
	ThumbURL string `json:"thumb_url,omitempty"`

	// title
	Title string `json:"title,omitempty"`

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

SLACKReceiver slack receiver swagger:model slack_receiver

func (*SLACKReceiver) MarshalBinary

func (m *SLACKReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SLACKReceiver) UnmarshalBinary

func (m *SLACKReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SLACKReceiver) Validate

func (m *SLACKReceiver) Validate(formats strfmt.Registry) error

Validate validates this slack receiver

type WebhookReceiver

type WebhookReceiver struct {

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

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

	// url
	// Required: true
	URL *string `json:"url"`
}

WebhookReceiver webhook receiver swagger:model webhook_receiver

func (*WebhookReceiver) MarshalBinary

func (m *WebhookReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebhookReceiver) UnmarshalBinary

func (m *WebhookReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebhookReceiver) Validate

func (m *WebhookReceiver) Validate(formats strfmt.Registry) error

Validate validates this webhook receiver

Jump to

Keyboard shortcuts

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