...

Package silencepb

import "github.com/prometheus/alertmanager/silence/silencepb"
Overview
Index

Overview ▾

Index ▾

Variables
type Comment
    func (*Comment) Descriptor() ([]byte, []int)
    func (m *Comment) Marshal() (dAtA []byte, err error)
    func (m *Comment) MarshalTo(dAtA []byte) (int, error)
    func (m *Comment) MarshalToSizedBuffer(dAtA []byte) (int, error)
    func (*Comment) ProtoMessage()
    func (m *Comment) Reset()
    func (m *Comment) Size() (n int)
    func (m *Comment) String() string
    func (m *Comment) Unmarshal(dAtA []byte) error
    func (m *Comment) XXX_DiscardUnknown()
    func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *Comment) XXX_Merge(src proto.Message)
    func (m *Comment) XXX_Size() int
    func (m *Comment) XXX_Unmarshal(b []byte) error
type Matcher
    func (*Matcher) Descriptor() ([]byte, []int)
    func (m *Matcher) Marshal() (dAtA []byte, err error)
    func (m *Matcher) MarshalTo(dAtA []byte) (int, error)
    func (m *Matcher) MarshalToSizedBuffer(dAtA []byte) (int, error)
    func (*Matcher) ProtoMessage()
    func (m *Matcher) Reset()
    func (m *Matcher) Size() (n int)
    func (m *Matcher) String() string
    func (m *Matcher) Unmarshal(dAtA []byte) error
    func (m *Matcher) XXX_DiscardUnknown()
    func (m *Matcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *Matcher) XXX_Merge(src proto.Message)
    func (m *Matcher) XXX_Size() int
    func (m *Matcher) XXX_Unmarshal(b []byte) error
type Matcher_Type
    func (Matcher_Type) EnumDescriptor() ([]byte, []int)
    func (x Matcher_Type) String() string
type MeshSilence
    func (*MeshSilence) Descriptor() ([]byte, []int)
    func (m *MeshSilence) Marshal() (dAtA []byte, err error)
    func (m *MeshSilence) MarshalTo(dAtA []byte) (int, error)
    func (m *MeshSilence) MarshalToSizedBuffer(dAtA []byte) (int, error)
    func (*MeshSilence) ProtoMessage()
    func (m *MeshSilence) Reset()
    func (m *MeshSilence) Size() (n int)
    func (m *MeshSilence) String() string
    func (m *MeshSilence) Unmarshal(dAtA []byte) error
    func (m *MeshSilence) XXX_DiscardUnknown()
    func (m *MeshSilence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *MeshSilence) XXX_Merge(src proto.Message)
    func (m *MeshSilence) XXX_Size() int
    func (m *MeshSilence) XXX_Unmarshal(b []byte) error
type Silence
    func (*Silence) Descriptor() ([]byte, []int)
    func (m *Silence) Marshal() (dAtA []byte, err error)
    func (m *Silence) MarshalTo(dAtA []byte) (int, error)
    func (m *Silence) MarshalToSizedBuffer(dAtA []byte) (int, error)
    func (*Silence) ProtoMessage()
    func (m *Silence) Reset()
    func (m *Silence) Size() (n int)
    func (m *Silence) String() string
    func (m *Silence) Unmarshal(dAtA []byte) error
    func (m *Silence) XXX_DiscardUnknown()
    func (m *Silence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *Silence) XXX_Merge(src proto.Message)
    func (m *Silence) XXX_Size() int
    func (m *Silence) XXX_Unmarshal(b []byte) error

Package files

silence.pb.go

Variables

var (
    ErrInvalidLengthSilence        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowSilence          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupSilence = fmt.Errorf("proto: unexpected end of group")
)
var Matcher_Type_name = map[int32]string{
    0: "EQUAL",
    1: "REGEXP",
    2: "NOT_EQUAL",
    3: "NOT_REGEXP",
}
var Matcher_Type_value = map[string]int32{
    "EQUAL":      0,
    "REGEXP":     1,
    "NOT_EQUAL":  2,
    "NOT_REGEXP": 3,
}

type Comment

DEPRECATED: A comment can be attached to a silence.

type Comment struct {
    Author               string    `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
    Comment              string    `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
    Timestamp            time.Time `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*Comment) Descriptor

func (*Comment) Descriptor() ([]byte, []int)

func (*Comment) Marshal

func (m *Comment) Marshal() (dAtA []byte, err error)

func (*Comment) MarshalTo

func (m *Comment) MarshalTo(dAtA []byte) (int, error)

func (*Comment) MarshalToSizedBuffer

func (m *Comment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) Size

func (m *Comment) Size() (n int)

func (*Comment) String

func (m *Comment) String() string

func (*Comment) Unmarshal

func (m *Comment) Unmarshal(dAtA []byte) error

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Comment) XXX_Merge

func (m *Comment) XXX_Merge(src proto.Message)

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

func (m *Comment) XXX_Unmarshal(b []byte) error

type Matcher

Matcher specifies a rule, which can match or set of labels or not.

type Matcher struct {
    Type Matcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=silencepb.Matcher_Type" json:"type,omitempty"`
    // The label name in a label set to against which the matcher
    // checks the pattern.
    Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    // The pattern being checked according to the matcher's type.
    Pattern              string   `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Matcher) Descriptor

func (*Matcher) Descriptor() ([]byte, []int)

func (*Matcher) Marshal

func (m *Matcher) Marshal() (dAtA []byte, err error)

func (*Matcher) MarshalTo

func (m *Matcher) MarshalTo(dAtA []byte) (int, error)

func (*Matcher) MarshalToSizedBuffer

func (m *Matcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) Reset

func (m *Matcher) Reset()

func (*Matcher) Size

func (m *Matcher) Size() (n int)

func (*Matcher) String

func (m *Matcher) String() string

func (*Matcher) Unmarshal

func (m *Matcher) Unmarshal(dAtA []byte) error

func (*Matcher) XXX_DiscardUnknown

func (m *Matcher) XXX_DiscardUnknown()

func (*Matcher) XXX_Marshal

func (m *Matcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Matcher) XXX_Merge

func (m *Matcher) XXX_Merge(src proto.Message)

func (*Matcher) XXX_Size

func (m *Matcher) XXX_Size() int

func (*Matcher) XXX_Unmarshal

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

type Matcher_Type

Type specifies how the given name and pattern are matched against a label set.

type Matcher_Type int32
const (
    Matcher_EQUAL      Matcher_Type = 0
    Matcher_REGEXP     Matcher_Type = 1
    Matcher_NOT_EQUAL  Matcher_Type = 2
    Matcher_NOT_REGEXP Matcher_Type = 3
)

func (Matcher_Type) EnumDescriptor

func (Matcher_Type) EnumDescriptor() ([]byte, []int)

func (Matcher_Type) String

func (x Matcher_Type) String() string

type MeshSilence

MeshSilence wraps a regular silence with an expiration timestamp after which the silence may be garbage collected.

type MeshSilence struct {
    Silence              *Silence  `protobuf:"bytes,1,opt,name=silence,proto3" json:"silence,omitempty"`
    ExpiresAt            time.Time `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3,stdtime" json:"expires_at"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*MeshSilence) Descriptor

func (*MeshSilence) Descriptor() ([]byte, []int)

func (*MeshSilence) Marshal

func (m *MeshSilence) Marshal() (dAtA []byte, err error)

func (*MeshSilence) MarshalTo

func (m *MeshSilence) MarshalTo(dAtA []byte) (int, error)

func (*MeshSilence) MarshalToSizedBuffer

func (m *MeshSilence) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MeshSilence) ProtoMessage

func (*MeshSilence) ProtoMessage()

func (*MeshSilence) Reset

func (m *MeshSilence) Reset()

func (*MeshSilence) Size

func (m *MeshSilence) Size() (n int)

func (*MeshSilence) String

func (m *MeshSilence) String() string

func (*MeshSilence) Unmarshal

func (m *MeshSilence) Unmarshal(dAtA []byte) error

func (*MeshSilence) XXX_DiscardUnknown

func (m *MeshSilence) XXX_DiscardUnknown()

func (*MeshSilence) XXX_Marshal

func (m *MeshSilence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MeshSilence) XXX_Merge

func (m *MeshSilence) XXX_Merge(src proto.Message)

func (*MeshSilence) XXX_Size

func (m *MeshSilence) XXX_Size() int

func (*MeshSilence) XXX_Unmarshal

func (m *MeshSilence) XXX_Unmarshal(b []byte) error

type Silence

Silence specifies an object that ignores alerts based on a set of matchers during a given time frame.

type Silence struct {
    // A globally unique identifier.
    Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // A set of matchers all of which have to be true for a silence
    // to affect a given label set.
    Matchers []*Matcher `protobuf:"bytes,2,rep,name=matchers,proto3" json:"matchers,omitempty"`
    // The time range during which the silence is active.
    StartsAt time.Time `protobuf:"bytes,3,opt,name=starts_at,json=startsAt,proto3,stdtime" json:"starts_at"`
    EndsAt   time.Time `protobuf:"bytes,4,opt,name=ends_at,json=endsAt,proto3,stdtime" json:"ends_at"`
    // The last notification made to the silence.
    UpdatedAt time.Time `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
    // DEPRECATED: A set of comments made on the silence.
    Comments []*Comment `protobuf:"bytes,7,rep,name=comments,proto3" json:"comments,omitempty"`
    // Comment for the silence.
    CreatedBy            string   `protobuf:"bytes,8,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
    Comment              string   `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Silence) Descriptor

func (*Silence) Descriptor() ([]byte, []int)

func (*Silence) Marshal

func (m *Silence) Marshal() (dAtA []byte, err error)

func (*Silence) MarshalTo

func (m *Silence) MarshalTo(dAtA []byte) (int, error)

func (*Silence) MarshalToSizedBuffer

func (m *Silence) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Silence) ProtoMessage

func (*Silence) ProtoMessage()

func (*Silence) Reset

func (m *Silence) Reset()

func (*Silence) Size

func (m *Silence) Size() (n int)

func (*Silence) String

func (m *Silence) String() string

func (*Silence) Unmarshal

func (m *Silence) Unmarshal(dAtA []byte) error

func (*Silence) XXX_DiscardUnknown

func (m *Silence) XXX_DiscardUnknown()

func (*Silence) XXX_Marshal

func (m *Silence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Silence) XXX_Merge

func (m *Silence) XXX_Merge(src proto.Message)

func (*Silence) XXX_Size

func (m *Silence) XXX_Size() int

func (*Silence) XXX_Unmarshal

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