...

Package models

import "github.com/prometheus/alertmanager/api/v2/models"
Overview
Index

Overview ▾

Index ▾

Constants
type Alert
    func (m *Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *Alert) MarshalBinary() ([]byte, error)
    func (m *Alert) UnmarshalBinary(b []byte) error
    func (m *Alert) Validate(formats strfmt.Registry) error
type AlertGroup
    func (m *AlertGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *AlertGroup) MarshalBinary() ([]byte, error)
    func (m *AlertGroup) UnmarshalBinary(b []byte) error
    func (m *AlertGroup) Validate(formats strfmt.Registry) error
type AlertGroups
    func (m AlertGroups) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m AlertGroups) Validate(formats strfmt.Registry) error
type AlertStatus
    func (m *AlertStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *AlertStatus) MarshalBinary() ([]byte, error)
    func (m *AlertStatus) UnmarshalBinary(b []byte) error
    func (m *AlertStatus) Validate(formats strfmt.Registry) error
type AlertmanagerConfig
    func (m *AlertmanagerConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *AlertmanagerConfig) MarshalBinary() ([]byte, error)
    func (m *AlertmanagerConfig) UnmarshalBinary(b []byte) error
    func (m *AlertmanagerConfig) Validate(formats strfmt.Registry) error
type AlertmanagerStatus
    func (m *AlertmanagerStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *AlertmanagerStatus) MarshalBinary() ([]byte, error)
    func (m *AlertmanagerStatus) UnmarshalBinary(b []byte) error
    func (m *AlertmanagerStatus) Validate(formats strfmt.Registry) error
type ClusterStatus
    func (m *ClusterStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *ClusterStatus) MarshalBinary() ([]byte, error)
    func (m *ClusterStatus) UnmarshalBinary(b []byte) error
    func (m *ClusterStatus) Validate(formats strfmt.Registry) error
type GettableAlert
    func (m *GettableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *GettableAlert) MarshalBinary() ([]byte, error)
    func (m GettableAlert) MarshalJSON() ([]byte, error)
    func (m *GettableAlert) UnmarshalBinary(b []byte) error
    func (m *GettableAlert) UnmarshalJSON(raw []byte) error
    func (m *GettableAlert) Validate(formats strfmt.Registry) error
type GettableAlerts
    func (m GettableAlerts) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m GettableAlerts) Validate(formats strfmt.Registry) error
type GettableSilence
    func (m *GettableSilence) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *GettableSilence) MarshalBinary() ([]byte, error)
    func (m GettableSilence) MarshalJSON() ([]byte, error)
    func (m *GettableSilence) UnmarshalBinary(b []byte) error
    func (m *GettableSilence) UnmarshalJSON(raw []byte) error
    func (m *GettableSilence) Validate(formats strfmt.Registry) error
type GettableSilences
    func (m GettableSilences) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m GettableSilences) Validate(formats strfmt.Registry) error
type LabelSet
    func (m LabelSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m LabelSet) Validate(formats strfmt.Registry) error
type Matcher
    func (m *Matcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *Matcher) MarshalBinary() ([]byte, error)
    func (m *Matcher) UnmarshalBinary(b []byte) error
    func (m *Matcher) Validate(formats strfmt.Registry) error
type Matchers
    func (m Matchers) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m Matchers) Validate(formats strfmt.Registry) error
type PeerStatus
    func (m *PeerStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *PeerStatus) MarshalBinary() ([]byte, error)
    func (m *PeerStatus) UnmarshalBinary(b []byte) error
    func (m *PeerStatus) Validate(formats strfmt.Registry) error
type PostableAlert
    func (m *PostableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *PostableAlert) MarshalBinary() ([]byte, error)
    func (m PostableAlert) MarshalJSON() ([]byte, error)
    func (m *PostableAlert) UnmarshalBinary(b []byte) error
    func (m *PostableAlert) UnmarshalJSON(raw []byte) error
    func (m *PostableAlert) Validate(formats strfmt.Registry) error
type PostableAlerts
    func (m PostableAlerts) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m PostableAlerts) Validate(formats strfmt.Registry) error
type PostableSilence
    func (m *PostableSilence) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *PostableSilence) MarshalBinary() ([]byte, error)
    func (m PostableSilence) MarshalJSON() ([]byte, error)
    func (m *PostableSilence) UnmarshalBinary(b []byte) error
    func (m *PostableSilence) UnmarshalJSON(raw []byte) error
    func (m *PostableSilence) Validate(formats strfmt.Registry) error
type Receiver
    func (m *Receiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *Receiver) MarshalBinary() ([]byte, error)
    func (m *Receiver) UnmarshalBinary(b []byte) error
    func (m *Receiver) Validate(formats strfmt.Registry) error
type Silence
    func (m *Silence) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *Silence) MarshalBinary() ([]byte, error)
    func (m *Silence) UnmarshalBinary(b []byte) error
    func (m *Silence) Validate(formats strfmt.Registry) error
type SilenceStatus
    func (m *SilenceStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *SilenceStatus) MarshalBinary() ([]byte, error)
    func (m *SilenceStatus) UnmarshalBinary(b []byte) error
    func (m *SilenceStatus) Validate(formats strfmt.Registry) error
type VersionInfo
    func (m *VersionInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
    func (m *VersionInfo) MarshalBinary() ([]byte, error)
    func (m *VersionInfo) UnmarshalBinary(b []byte) error
    func (m *VersionInfo) Validate(formats strfmt.Registry) error

Package files

alert.go alert_group.go alert_groups.go alert_status.go alertmanager_config.go alertmanager_status.go cluster_status.go gettable_alert.go gettable_alerts.go gettable_silence.go gettable_silences.go label_set.go matcher.go matchers.go peer_status.go postable_alert.go postable_alerts.go postable_silence.go receiver.go silence.go silence_status.go version_info.go

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 (

    // ClusterStatusStatusReady captures enum value "ready"
    ClusterStatusStatusReady string = "ready"

    // ClusterStatusStatusSettling captures enum value "settling"
    ClusterStatusStatusSettling string = "settling"

    // ClusterStatusStatusDisabled captures enum value "disabled"
    ClusterStatusStatusDisabled string = "disabled"
)
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"
)

type Alert

Alert alert

swagger:model alert

type Alert struct {

    // generator URL
    // Format: uri
    GeneratorURL strfmt.URI `json:"generatorURL,omitempty"`

    // labels
    // Required: true
    Labels LabelSet `json:"labels"`
}

func (*Alert) ContextValidate

func (m *Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert based on the context it is used

func (*Alert) MarshalBinary

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

MarshalBinary interface implementation

func (*Alert) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Alert) Validate

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

Validate validates this alert

type AlertGroup

AlertGroup alert group

swagger:model alertGroup

type AlertGroup struct {

    // alerts
    // Required: true
    Alerts []*GettableAlert `json:"alerts"`

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

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

func (*AlertGroup) ContextValidate

func (m *AlertGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert group based on the context it is used

func (*AlertGroup) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertGroup) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertGroup) Validate

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

Validate validates this alert group

type AlertGroups

AlertGroups alert groups

swagger:model alertGroups

type AlertGroups []*AlertGroup

func (AlertGroups) ContextValidate

func (m AlertGroups) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert groups based on the context it is used

func (AlertGroups) Validate

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

Validate validates this alert groups

type AlertStatus

AlertStatus alert status

swagger:model alertStatus

type AlertStatus struct {

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

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

    // state
    // Required: true
    // Enum: [unprocessed active suppressed]
    State *string `json:"state"`
}

func (*AlertStatus) ContextValidate

func (m *AlertStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert status based on context it is used

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

func (*AlertStatus) Validate

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

Validate validates this alert status

type AlertmanagerConfig

AlertmanagerConfig alertmanager config

swagger:model alertmanagerConfig

type AlertmanagerConfig struct {

    // original
    // Required: true
    Original *string `json:"original"`
}

func (*AlertmanagerConfig) ContextValidate

func (m *AlertmanagerConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alertmanager config based on context it is used

func (*AlertmanagerConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*AlertmanagerConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AlertmanagerConfig) Validate

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

Validate validates this alertmanager config

type AlertmanagerStatus

AlertmanagerStatus alertmanager status

swagger:model alertmanagerStatus

type AlertmanagerStatus struct {

    // cluster
    // Required: true
    Cluster *ClusterStatus `json:"cluster"`

    // config
    // Required: true
    Config *AlertmanagerConfig `json:"config"`

    // uptime
    // Required: true
    // Format: date-time
    Uptime *strfmt.DateTime `json:"uptime"`

    // version info
    // Required: true
    VersionInfo *VersionInfo `json:"versionInfo"`
}

func (*AlertmanagerStatus) ContextValidate

func (m *AlertmanagerStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alertmanager status based on the context it is used

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

func (*AlertmanagerStatus) Validate

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

Validate validates this alertmanager status

type ClusterStatus

ClusterStatus cluster status

swagger:model clusterStatus

type ClusterStatus struct {

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

    // peers
    Peers []*PeerStatus `json:"peers"`

    // status
    // Required: true
    // Enum: [ready settling disabled]
    Status *string `json:"status"`
}

func (*ClusterStatus) ContextValidate

func (m *ClusterStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster status based on the context it is used

func (*ClusterStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterStatus) Validate

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

Validate validates this cluster status

type GettableAlert

GettableAlert gettable alert

swagger:model gettableAlert

type GettableAlert struct {

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

    // ends at
    // Required: true
    // Format: date-time
    EndsAt *strfmt.DateTime `json:"endsAt"`

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

    // receivers
    // Required: true
    Receivers []*Receiver `json:"receivers"`

    // starts at
    // Required: true
    // Format: date-time
    StartsAt *strfmt.DateTime `json:"startsAt"`

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

    // updated at
    // Required: true
    // Format: date-time
    UpdatedAt *strfmt.DateTime `json:"updatedAt"`

    Alert
}

func (*GettableAlert) ContextValidate

func (m *GettableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable alert based on the context it is used

func (*GettableAlert) MarshalBinary

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

MarshalBinary interface implementation

func (GettableAlert) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*GettableAlert) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GettableAlert) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*GettableAlert) Validate

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

Validate validates this gettable alert

type GettableAlerts

GettableAlerts gettable alerts

swagger:model gettableAlerts

type GettableAlerts []*GettableAlert

func (GettableAlerts) ContextValidate

func (m GettableAlerts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable alerts based on the context it is used

func (GettableAlerts) Validate

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

Validate validates this gettable alerts

type GettableSilence

GettableSilence gettable silence

swagger:model gettableSilence

type GettableSilence struct {

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

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

    // updated at
    // Required: true
    // Format: date-time
    UpdatedAt *strfmt.DateTime `json:"updatedAt"`

    Silence
}

func (*GettableSilence) ContextValidate

func (m *GettableSilence) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable silence based on the context it is used

func (*GettableSilence) MarshalBinary

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

MarshalBinary interface implementation

func (GettableSilence) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*GettableSilence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GettableSilence) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*GettableSilence) Validate

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

Validate validates this gettable silence

type GettableSilences

GettableSilences gettable silences

swagger:model gettableSilences

type GettableSilences []*GettableSilence

func (GettableSilences) ContextValidate

func (m GettableSilences) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable silences based on the context it is used

func (GettableSilences) Validate

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

Validate validates this gettable silences

type LabelSet

LabelSet label set

swagger:model labelSet

type LabelSet map[string]string

func (LabelSet) ContextValidate

func (m LabelSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label set based on context it is used

func (LabelSet) Validate

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

Validate validates this label set

type Matcher

Matcher matcher

swagger:model matcher

type Matcher struct {

    // is equal
    IsEqual *bool `json:"isEqual,omitempty"`

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

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

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

func (*Matcher) ContextValidate

func (m *Matcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this matcher based on context it is used

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 Matchers

Matchers matchers

swagger:model matchers

type Matchers []*Matcher

func (Matchers) ContextValidate

func (m Matchers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this matchers based on the context it is used

func (Matchers) Validate

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

Validate validates this matchers

type PeerStatus

PeerStatus peer status

swagger:model peerStatus

type PeerStatus struct {

    // address
    // Required: true
    Address *string `json:"address"`

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

func (*PeerStatus) ContextValidate

func (m *PeerStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this peer status based on context it is used

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

func (*PeerStatus) Validate

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

Validate validates this peer status

type PostableAlert

PostableAlert postable alert

swagger:model postableAlert

type PostableAlert struct {

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

    // ends at
    // Format: date-time
    EndsAt strfmt.DateTime `json:"endsAt,omitempty"`

    // starts at
    // Format: date-time
    StartsAt strfmt.DateTime `json:"startsAt,omitempty"`

    Alert
}

func (*PostableAlert) ContextValidate

func (m *PostableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable alert based on the context it is used

func (*PostableAlert) MarshalBinary

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

MarshalBinary interface implementation

func (PostableAlert) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*PostableAlert) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostableAlert) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*PostableAlert) Validate

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

Validate validates this postable alert

type PostableAlerts

PostableAlerts postable alerts

swagger:model postableAlerts

type PostableAlerts []*PostableAlert

func (PostableAlerts) ContextValidate

func (m PostableAlerts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable alerts based on the context it is used

func (PostableAlerts) Validate

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

Validate validates this postable alerts

type PostableSilence

PostableSilence postable silence

swagger:model postableSilence

type PostableSilence struct {

    // id
    ID string `json:"id,omitempty"`

    Silence
}

func (*PostableSilence) ContextValidate

func (m *PostableSilence) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable silence based on the context it is used

func (*PostableSilence) MarshalBinary

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

MarshalBinary interface implementation

func (PostableSilence) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*PostableSilence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostableSilence) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*PostableSilence) Validate

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

Validate validates this postable silence

type Receiver

Receiver receiver

swagger:model receiver

type Receiver struct {

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

func (*Receiver) ContextValidate

func (m *Receiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this receiver based on context it is used

func (*Receiver) MarshalBinary

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

MarshalBinary interface implementation

func (*Receiver) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Receiver) Validate

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

Validate validates this receiver

type Silence

Silence silence

swagger:model silence

type Silence struct {

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

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

    // ends at
    // Required: true
    // Format: date-time
    EndsAt *strfmt.DateTime `json:"endsAt"`

    // matchers
    // Required: true
    Matchers Matchers `json:"matchers"`

    // starts at
    // Required: true
    // Format: date-time
    StartsAt *strfmt.DateTime `json:"startsAt"`
}

func (*Silence) ContextValidate

func (m *Silence) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this silence based on the context it is used

func (*Silence) MarshalBinary

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

MarshalBinary interface implementation

func (*Silence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Silence) Validate

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

Validate validates this silence

type SilenceStatus

SilenceStatus silence status

swagger:model silenceStatus

type SilenceStatus struct {

    // state
    // Required: true
    // Enum: [expired active pending]
    State *string `json:"state"`
}

func (*SilenceStatus) ContextValidate

func (m *SilenceStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this silence status based on context it is used

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

func (*SilenceStatus) Validate

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

Validate validates this silence status

type VersionInfo

VersionInfo version info

swagger:model versionInfo

type VersionInfo struct {

    // branch
    // Required: true
    Branch *string `json:"branch"`

    // build date
    // Required: true
    BuildDate *string `json:"buildDate"`

    // build user
    // Required: true
    BuildUser *string `json:"buildUser"`

    // go version
    // Required: true
    GoVersion *string `json:"goVersion"`

    // revision
    // Required: true
    Revision *string `json:"revision"`

    // version
    // Required: true
    Version *string `json:"version"`
}

func (*VersionInfo) ContextValidate

func (m *VersionInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version info based on context it is used

func (*VersionInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*VersionInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VersionInfo) Validate

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

Validate validates this version info