models

package
v0.0.0-...-b464eee Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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"
)
View Source
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

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

func (*AlertStatus) Validate

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

Validate validates this alert status

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

func (*AlertmanagerStatus) Validate

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

Validate validates this alertmanager status

type Alerts

type Alerts []*Alert

Alerts alerts swagger:model alerts

func (Alerts) Validate

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

Validate validates this alerts

type LabelSet

type LabelSet map[string]string

LabelSet label set swagger:model labelSet

func (LabelSet) Validate

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

Validate validates this label set

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

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

type Matchers []*Matcher

Matchers matchers swagger:model matchers

func (Matchers) Validate

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

Validate validates this matchers

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

func (*PeerStatus) Validate

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

Validate validates this peer status

type Receiver

type Receiver struct {

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

Receiver receiver swagger:model receiver

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

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

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

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

func (*SilenceStatus) Validate

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

Validate validates this silence status

type Silences

type Silences []*Silence

Silences silences swagger:model silences

func (Silences) Validate

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

Validate validates this silences

Jump to

Keyboard shortcuts

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