statusv1

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageKind_name = map[int32]string{
		0: "MESSAGE_KIND_UNSPECIFIED",
		1: "MESSAGE_KIND_INFO",
		2: "MESSAGE_KIND_INCIDENT",
		3: "MESSAGE_KIND_CHANGE",
		4: "MESSAGE_KIND_RESOLVED",
		5: "MESSAGE_KIND_UPDATE",
	}
	MessageKind_value = map[string]int32{
		"MESSAGE_KIND_UNSPECIFIED": 0,
		"MESSAGE_KIND_INFO":        1,
		"MESSAGE_KIND_INCIDENT":    2,
		"MESSAGE_KIND_CHANGE":      3,
		"MESSAGE_KIND_RESOLVED":    4,
		"MESSAGE_KIND_UPDATE":      5,
	}
)

Enum value maps for MessageKind.

View Source
var File_status_v1_message_proto protoreflect.FileDescriptor
View Source
var File_status_v1_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {

	// Id of the message
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Text of the message
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Kind of the message, this is to distinguish between the importance of a message
	Kind MessageKind `protobuf:"varint,3,opt,name=kind,proto3,enum=status.v1.MessageKind" json:"kind,omitempty"`
	// Timestamp when this message was created
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Replies are messages which are followups to the initial message
	Replies []*ReplyMessage `protobuf:"bytes,5,rep,name=replies,proto3" json:"replies,omitempty"`
	// contains filtered or unexported fields
}

Message is a test message to be displayed in the status

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetKind

func (x *Message) GetKind() MessageKind

func (*Message) GetReplies

func (x *Message) GetReplies() []*ReplyMessage

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) GetTimestamp

func (x *Message) GetTimestamp() *timestamppb.Timestamp

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MessageKind

type MessageKind int32

MessageKind defines what type of message it is

const (
	// MESSAGE_KIND_UNSPECIFIED is not specified
	MessageKind_MESSAGE_KIND_UNSPECIFIED MessageKind = 0
	// MESSAGE_KIND_INFO is a informational message
	MessageKind_MESSAGE_KIND_INFO MessageKind = 1
	// MESSAGE_KIND_INCIDENT is a incident message
	MessageKind_MESSAGE_KIND_INCIDENT MessageKind = 2
	// MESSAGE_KIND_CHANGE is a change message
	MessageKind_MESSAGE_KIND_CHANGE MessageKind = 3
	// MESSAGE_KIND_RESOLVED is a resolved message
	MessageKind_MESSAGE_KIND_RESOLVED MessageKind = 4
	// MESSAGE_KIND_UPDATE is a update message
	MessageKind_MESSAGE_KIND_UPDATE MessageKind = 5
)

func (MessageKind) Descriptor

func (MessageKind) Enum

func (x MessageKind) Enum() *MessageKind

func (MessageKind) EnumDescriptor deprecated

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

Deprecated: Use MessageKind.Descriptor instead.

func (MessageKind) Number

func (x MessageKind) Number() protoreflect.EnumNumber

func (MessageKind) String

func (x MessageKind) String() string

func (MessageKind) Type

type MessageServiceWatchRequest added in v0.15.1

type MessageServiceWatchRequest struct {
	// contains filtered or unexported fields
}

MessageServiceWatchRequest is the request payload to watch the messages

func (*MessageServiceWatchRequest) Descriptor deprecated added in v0.15.1

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

Deprecated: Use MessageServiceWatchRequest.ProtoReflect.Descriptor instead.

func (*MessageServiceWatchRequest) ProtoMessage added in v0.15.1

func (*MessageServiceWatchRequest) ProtoMessage()

func (*MessageServiceWatchRequest) ProtoReflect added in v0.15.1

func (*MessageServiceWatchRequest) Reset added in v0.15.1

func (x *MessageServiceWatchRequest) Reset()

func (*MessageServiceWatchRequest) String added in v0.15.1

func (x *MessageServiceWatchRequest) String() string

type MessageServiceWatchResponse added in v0.15.1

type MessageServiceWatchResponse struct {

	// Items is a slice of all messages
	Items []*Message `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// PinnedItems are messages which are of special interest
	PinnedItems []*Message `protobuf:"bytes,2,rep,name=pinned_items,json=pinnedItems,proto3" json:"pinned_items,omitempty"`
	// contains filtered or unexported fields
}

MessageServiceWatchResponse is the response payload with the messages

func (*MessageServiceWatchResponse) Descriptor deprecated added in v0.15.1

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

Deprecated: Use MessageServiceWatchResponse.ProtoReflect.Descriptor instead.

func (*MessageServiceWatchResponse) GetItems added in v0.15.1

func (x *MessageServiceWatchResponse) GetItems() []*Message

func (*MessageServiceWatchResponse) GetPinnedItems added in v0.15.1

func (x *MessageServiceWatchResponse) GetPinnedItems() []*Message

func (*MessageServiceWatchResponse) ProtoMessage added in v0.15.1

func (*MessageServiceWatchResponse) ProtoMessage()

func (*MessageServiceWatchResponse) ProtoReflect added in v0.15.1

func (*MessageServiceWatchResponse) Reset added in v0.15.1

func (x *MessageServiceWatchResponse) Reset()

func (*MessageServiceWatchResponse) String added in v0.15.1

func (x *MessageServiceWatchResponse) String() string

type ReplyMessage

type ReplyMessage struct {

	// Id of the message
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Text of the message
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Kind of the message, this is to distinguish between the importance of a message
	Kind MessageKind `protobuf:"varint,3,opt,name=kind,proto3,enum=status.v1.MessageKind" json:"kind,omitempty"`
	// Timestamp when this message was created
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

ReplyMessage is a message as a followup of a initial message

func (*ReplyMessage) Descriptor deprecated

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

Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead.

func (*ReplyMessage) GetId

func (x *ReplyMessage) GetId() string

func (*ReplyMessage) GetKind

func (x *ReplyMessage) GetKind() MessageKind

func (*ReplyMessage) GetText

func (x *ReplyMessage) GetText() string

func (*ReplyMessage) GetTimestamp

func (x *ReplyMessage) GetTimestamp() *timestamppb.Timestamp

func (*ReplyMessage) ProtoMessage

func (*ReplyMessage) ProtoMessage()

func (*ReplyMessage) ProtoReflect

func (x *ReplyMessage) ProtoReflect() protoreflect.Message

func (*ReplyMessage) Reset

func (x *ReplyMessage) Reset()

func (*ReplyMessage) String

func (x *ReplyMessage) String() string

type StatusServiceWatchRequest added in v0.15.1

type StatusServiceWatchRequest struct {
	// contains filtered or unexported fields
}

StatusServiceWatchRequest is the request payload to get the status

func (*StatusServiceWatchRequest) Descriptor deprecated added in v0.15.1

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

Deprecated: Use StatusServiceWatchRequest.ProtoReflect.Descriptor instead.

func (*StatusServiceWatchRequest) ProtoMessage added in v0.15.1

func (*StatusServiceWatchRequest) ProtoMessage()

func (*StatusServiceWatchRequest) ProtoReflect added in v0.15.1

func (*StatusServiceWatchRequest) Reset added in v0.15.1

func (x *StatusServiceWatchRequest) Reset()

func (*StatusServiceWatchRequest) String added in v0.15.1

func (x *StatusServiceWatchRequest) String() string

type StatusServiceWatchResponse added in v0.15.1

type StatusServiceWatchResponse struct {

	// Health of the individual services
	Health *v1.Health `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"`
	// OverallStatus is the status of the system
	OverallStatus v1.ServiceStatus `` /* 127-byte string literal not displayed */
	// ConnectionBroken shows if the connection to the system is broken
	ConnectionBroken bool `protobuf:"varint,3,opt,name=connection_broken,json=connectionBroken,proto3" json:"connection_broken,omitempty"`
	// ApiVersion of the system
	ApiVersion string `protobuf:"bytes,4,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

StatusServiceWatchResponse is the response payload which describes the system status

func (*StatusServiceWatchResponse) Descriptor deprecated added in v0.15.1

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

Deprecated: Use StatusServiceWatchResponse.ProtoReflect.Descriptor instead.

func (*StatusServiceWatchResponse) GetApiVersion added in v0.15.1

func (x *StatusServiceWatchResponse) GetApiVersion() string

func (*StatusServiceWatchResponse) GetConnectionBroken added in v0.15.1

func (x *StatusServiceWatchResponse) GetConnectionBroken() bool

func (*StatusServiceWatchResponse) GetHealth added in v0.15.1

func (x *StatusServiceWatchResponse) GetHealth() *v1.Health

func (*StatusServiceWatchResponse) GetOverallStatus added in v0.15.1

func (x *StatusServiceWatchResponse) GetOverallStatus() v1.ServiceStatus

func (*StatusServiceWatchResponse) ProtoMessage added in v0.15.1

func (*StatusServiceWatchResponse) ProtoMessage()

func (*StatusServiceWatchResponse) ProtoReflect added in v0.15.1

func (*StatusServiceWatchResponse) Reset added in v0.15.1

func (x *StatusServiceWatchResponse) Reset()

func (*StatusServiceWatchResponse) String added in v0.15.1

func (x *StatusServiceWatchResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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