Documentation
¶
Index ¶
Constants ¶
const ( // AlertStatusStateUnprocessed captures enum value "unprocessed" AlertStatusStateUnprocessed string = "unprocessed" // AlertStatusStateActive captures enum value "active" AlertStatusStateActive string = "active" // AlertStatusStateSuppressed captures enum value "suppressed" AlertStatusStateSuppressed string = "suppressed" )
const ( // SilenceStatusStateExpired captures enum value "expired" SilenceStatusStateExpired string = "expired" // SilenceStatusStateActive captures enum value "active" SilenceStatusStateActive string = "active" // SilenceStatusStatePending captures enum value "pending" SilenceStatusStatePending string = "pending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
// annotations
Annotations LabelSet `json:"annotations,omitempty"`
// ends at
// Format: date-time
EndsAt strfmt.DateTime `json:"endsAt,omitempty"`
// fingerprint
Fingerprint string `json:"fingerprint,omitempty"`
// generator URL
// Format: uri
GeneratorURL strfmt.URI `json:"generatorURL,omitempty"`
// labels
Labels LabelSet `json:"labels,omitempty"`
// receivers
Receivers []*Receiver `json:"receivers"`
// starts at
// Format: date-time
StartsAt strfmt.DateTime `json:"startsAt,omitempty"`
// status
Status *AlertStatus `json:"status,omitempty"`
// updated at
// Format: date-time
UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}
Alert alert swagger:model alert
func (*Alert) MarshalBinary ¶
MarshalBinary interface implementation
func (*Alert) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AlertStatus ¶
type AlertStatus struct {
// inhibited by
InhibitedBy []string `json:"inhibitedBy"`
// silenced by
SilencedBy []string `json:"silencedBy"`
// state
// Enum: [unprocessed active suppressed]
State string `json:"state,omitempty"`
}
AlertStatus alert status swagger:model AlertStatus
func (*AlertStatus) MarshalBinary ¶
func (m *AlertStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertStatus) UnmarshalBinary ¶
func (m *AlertStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AlertmanagerStatus ¶
type AlertmanagerStatus struct {
// name
// Required: true
Name *string `json:"name"`
// peers
// Required: true
// Minimum: 0
Peers []*PeerStatus `json:"peers"`
// status in cluster
// Required: true
StatusInCluster *string `json:"statusInCluster"`
}
AlertmanagerStatus alertmanager status swagger:model alertmanagerStatus
func (*AlertmanagerStatus) MarshalBinary ¶
func (m *AlertmanagerStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertmanagerStatus) UnmarshalBinary ¶
func (m *AlertmanagerStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Matcher ¶
type Matcher struct {
// is regex
IsRegex bool `json:"isRegex,omitempty"`
// name
Name string `json:"name,omitempty"`
// regex
Regex string `json:"regex,omitempty"`
// value
Value string `json:"value,omitempty"`
}
Matcher matcher swagger:model matcher
func (*Matcher) MarshalBinary ¶
MarshalBinary interface implementation
func (*Matcher) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PeerStatus ¶
type PeerStatus struct {
// address
Address string `json:"address,omitempty"`
// name
Name string `json:"name,omitempty"`
}
PeerStatus peer status swagger:model peerStatus
func (*PeerStatus) MarshalBinary ¶
func (m *PeerStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PeerStatus) UnmarshalBinary ¶
func (m *PeerStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Receiver ¶
type Receiver struct {
// name
Name string `json:"name,omitempty"`
}
Receiver receiver swagger:model receiver
func (*Receiver) MarshalBinary ¶
MarshalBinary interface implementation
func (*Receiver) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Silence ¶
type Silence struct {
// comment
Comment string `json:"comment,omitempty"`
// created by
CreatedBy string `json:"createdBy,omitempty"`
// ends at
// Format: date-time
EndsAt strfmt.DateTime `json:"endsAt,omitempty"`
// id
ID string `json:"id,omitempty"`
// matchers
// Required: true
Matchers Matchers `json:"matchers"`
// starts at
// Format: date-time
StartsAt strfmt.DateTime `json:"startsAt,omitempty"`
// status
Status *SilenceStatus `json:"status,omitempty"`
// updated at
// Format: date-time
UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}
Silence silence swagger:model silence
func (*Silence) MarshalBinary ¶
MarshalBinary interface implementation
func (*Silence) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SilenceStatus ¶
type SilenceStatus struct {
// state
// Enum: [expired active pending]
State string `json:"state,omitempty"`
}
SilenceStatus silence status swagger:model SilenceStatus
func (*SilenceStatus) MarshalBinary ¶
func (m *SilenceStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SilenceStatus) UnmarshalBinary ¶
func (m *SilenceStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation