Documentation ¶
Index ¶
- type AlertBulkUploadResponse
- type AlertReceiverConfig
- type AlertRoutingTree
- type AlertRoutingTreeMatch
- type AlertRoutingTreeMatchRe
- type AlertSilenceStatus
- type AlertSilencer
- type EmailReceiver
- type GettableAlert
- type GettableAlertSilencer
- func (m *GettableAlertSilencer) MarshalBinary() ([]byte, error)
- func (m GettableAlertSilencer) MarshalJSON() ([]byte, error)
- func (m *GettableAlertSilencer) UnmarshalBinary(b []byte) error
- func (m *GettableAlertSilencer) UnmarshalJSON(raw []byte) error
- func (m *GettableAlertSilencer) Validate(formats strfmt.Registry) error
- type HTTPConfig
- type HTTPConfigBasicAuth
- type LabelPair
- type Matcher
- type MetricDatapoint
- type MetricDatapoints
- type PromAlertConfig
- type PromAlertConfigList
- type PromAlertLabels
- type PromAlertStatus
- type PromFiringAlert
- type PrometheusLabelset
- type PrometheusTargetMetadata
- type PrometheusTargetsMetadata
- type PromqlData
- type PromqlMetric
- type PromqlMetricValue
- type PromqlResult
- type PromqlReturnObject
- type PushedMetric
- type SLACKAction
- type SLACKConfirmField
- type SLACKField
- type SLACKReceiver
- type WebhookReceiver
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
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
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
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
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
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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*LabelPair) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Matcher) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MetricDatapoint ¶
type MetricDatapoint []string
MetricDatapoint metric datapoint swagger:model metric_datapoint
type MetricDatapoints ¶
type MetricDatapoints []MetricDatapoint
MetricDatapoints metric datapoints swagger:model 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
type PromAlertConfigList ¶
type PromAlertConfigList []*PromAlertConfig
PromAlertConfigList prom alert config list swagger:model prom_alert_config_list
type PromAlertLabels ¶
PromAlertLabels prom alert labels swagger:model 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
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
type PrometheusLabelset ¶
PrometheusLabelset prometheus labelset swagger:model 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
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
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
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
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
type PromqlResult ¶
type PromqlResult []*PromqlMetricValue
PromqlResult promql result swagger:model 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
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
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
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
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
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 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
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
Source Files ¶
- alert_bulk_upload_response_swaggergen.go
- alert_receiver_config_swaggergen.go
- alert_routing_tree_swaggergen.go
- alert_silence_status_swaggergen.go
- alert_silencer_swaggergen.go
- email_receiver_swaggergen.go
- gen.go
- gettable_alert_silencer_swaggergen.go
- gettable_alert_swaggergen.go
- http_config_basic_auth_swaggergen.go
- http_config_swaggergen.go
- label_pair_swaggergen.go
- matcher_swaggergen.go
- metric_datapoint_swaggergen.go
- metric_datapoints_swaggergen.go
- prom_alert_config_list_swaggergen.go
- prom_alert_config_swaggergen.go
- prom_alert_labels_swaggergen.go
- prom_alert_status_swaggergen.go
- prom_firing_alert_swaggergen.go
- prometheus_labelset_swaggergen.go
- prometheus_target_metadata_swaggergen.go
- prometheus_targets_metadata_swaggergen.go
- promql_data_swaggergen.go
- promql_metric_swaggergen.go
- promql_metric_value_swaggergen.go
- promql_result_swaggergen.go
- promql_return_object_swaggergen.go
- pushed_metric_swaggergen.go
- sla_c_k_action_swaggergen.go
- sla_c_k_confirm_field_swaggergen.go
- sla_c_k_field_swaggergen.go
- sla_c_k_receiver_swaggergen.go
- webhook_receiver_swaggergen.go