silencepb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package silencepb is a generated protocol buffer package.

It is generated from these files:

silence/silencepb/silence.proto

It has these top-level messages:

Matcher
Comment
Silence
MeshSilence

Index

Constants

This section is empty.

Variables

View Source
var Matcher_Type_name = map[int32]string{
	0: "EQUAL",
	1: "REGEXP",
}
View Source
var Matcher_Type_value = map[string]int32{
	"EQUAL":  0,
	"REGEXP": 1,
}

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Author    string                     `protobuf:"bytes,1,opt,name=author" json:"author,omitempty"`
	Comment   string                     `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
	Timestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
}

A comment can be attached to a silence.

func (*Comment) Descriptor

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

func (*Comment) GetTimestamp

func (m *Comment) GetTimestamp() *google_protobuf.Timestamp

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

type Matcher

type Matcher struct {
	Type Matcher_Type `protobuf:"varint,1,opt,name=type,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" json:"name,omitempty"`
	// The pattern being checked according to the matcher's type.
	Pattern string `protobuf:"bytes,3,opt,name=pattern" json:"pattern,omitempty"`
}

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

func (*Matcher) Descriptor

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

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) Reset

func (m *Matcher) Reset()

func (*Matcher) String

func (m *Matcher) String() string

type Matcher_Type

type Matcher_Type int32

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

const (
	Matcher_EQUAL  Matcher_Type = 0
	Matcher_REGEXP Matcher_Type = 1
)

func (Matcher_Type) EnumDescriptor

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

func (Matcher_Type) String

func (x Matcher_Type) String() string

type MeshSilence

type MeshSilence struct {
	Silence   *Silence                   `protobuf:"bytes,1,opt,name=silence" json:"silence,omitempty"`
	ExpiresAt *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"`
}

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

func (*MeshSilence) Descriptor

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

func (*MeshSilence) GetExpiresAt

func (m *MeshSilence) GetExpiresAt() *google_protobuf.Timestamp

func (*MeshSilence) GetSilence

func (m *MeshSilence) GetSilence() *Silence

func (*MeshSilence) ProtoMessage

func (*MeshSilence) ProtoMessage()

func (*MeshSilence) Reset

func (m *MeshSilence) Reset()

func (*MeshSilence) String

func (m *MeshSilence) String() string

type Silence

type Silence struct {
	// A globally unique identifier.
	Id string `protobuf:"bytes,1,opt,name=id" 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" json:"matchers,omitempty"`
	// The time range during which the silence is active.
	StartsAt *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=starts_at,json=startsAt" json:"starts_at,omitempty"`
	EndsAt   *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=ends_at,json=endsAt" json:"ends_at,omitempty"`
	// The last motification made to the silence.
	UpdatedAt *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	// A set of comments made on the silence.
	Comments []*Comment `protobuf:"bytes,7,rep,name=comments" json:"comments,omitempty"`
}

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

func (*Silence) Descriptor

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

func (*Silence) GetComments

func (m *Silence) GetComments() []*Comment

func (*Silence) GetEndsAt

func (m *Silence) GetEndsAt() *google_protobuf.Timestamp

func (*Silence) GetMatchers

func (m *Silence) GetMatchers() []*Matcher

func (*Silence) GetStartsAt

func (m *Silence) GetStartsAt() *google_protobuf.Timestamp

func (*Silence) GetUpdatedAt

func (m *Silence) GetUpdatedAt() *google_protobuf.Timestamp

func (*Silence) ProtoMessage

func (*Silence) ProtoMessage()

func (*Silence) Reset

func (m *Silence) Reset()

func (*Silence) String

func (m *Silence) String() string

Jump to

Keyboard shortcuts

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