statusv1

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 6 Imported by: ? modules, 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

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 MessageServiceListRequest

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

MessageServiceListRequest is the request payload to get the messages

func (*MessageServiceListRequest) Descriptor deprecated

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

Deprecated: Use MessageServiceListRequest.ProtoReflect.Descriptor instead.

func (*MessageServiceListRequest) ProtoMessage

func (*MessageServiceListRequest) ProtoMessage()

func (*MessageServiceListRequest) ProtoReflect

func (*MessageServiceListRequest) Reset

func (x *MessageServiceListRequest) Reset()

func (*MessageServiceListRequest) String

func (x *MessageServiceListRequest) String() string

type MessageServiceListResponse

type MessageServiceListResponse 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
}

MessageServiceListResponse is the response payload with the messages

func (*MessageServiceListResponse) Descriptor deprecated

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

Deprecated: Use MessageServiceListResponse.ProtoReflect.Descriptor instead.

func (*MessageServiceListResponse) GetItems

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

func (*MessageServiceListResponse) GetPinnedItems

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

func (*MessageServiceListResponse) ProtoMessage

func (*MessageServiceListResponse) ProtoMessage()

func (*MessageServiceListResponse) ProtoReflect

func (*MessageServiceListResponse) Reset

func (x *MessageServiceListResponse) Reset()

func (*MessageServiceListResponse) String

func (x *MessageServiceListResponse) 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 StatusServiceGetRequest

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

StatusServiceGetRequest is the request payload to get the status

func (*StatusServiceGetRequest) Descriptor deprecated

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

Deprecated: Use StatusServiceGetRequest.ProtoReflect.Descriptor instead.

func (*StatusServiceGetRequest) ProtoMessage

func (*StatusServiceGetRequest) ProtoMessage()

func (*StatusServiceGetRequest) ProtoReflect

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

func (*StatusServiceGetRequest) Reset

func (x *StatusServiceGetRequest) Reset()

func (*StatusServiceGetRequest) String

func (x *StatusServiceGetRequest) String() string

type StatusServiceGetResponse

type StatusServiceGetResponse 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
}

StatusServiceGetResponse is the response payload which describes the system status

func (*StatusServiceGetResponse) Descriptor deprecated

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

Deprecated: Use StatusServiceGetResponse.ProtoReflect.Descriptor instead.

func (*StatusServiceGetResponse) GetApiVersion

func (x *StatusServiceGetResponse) GetApiVersion() string

func (*StatusServiceGetResponse) GetConnectionBroken

func (x *StatusServiceGetResponse) GetConnectionBroken() bool

func (*StatusServiceGetResponse) GetHealth

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

func (*StatusServiceGetResponse) GetOverallStatus

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

func (*StatusServiceGetResponse) ProtoMessage

func (*StatusServiceGetResponse) ProtoMessage()

func (*StatusServiceGetResponse) ProtoReflect

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

func (*StatusServiceGetResponse) Reset

func (x *StatusServiceGetResponse) Reset()

func (*StatusServiceGetResponse) String

func (x *StatusServiceGetResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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