servicelog

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadReply

type BadReply struct {
	ID          string `json:"id"`
	Kind        string `json:"kind"`
	Href        string `json:"href"`
	Code        string `json:"code"`
	Reason      string `json:"reason"`
	OperationID string `json:"operation_id"`
}

type ClusterListGoodReply added in v0.4.2

type ClusterListGoodReply struct {
	Kind  string      `json:"kind"`
	Page  int         `json:"page"`
	Size  int         `json:"size"`
	Total int         `json:"total"`
	Items []GoodReply `json:"items"`
}

type ClustersFile added in v0.8.0

type ClustersFile struct {
	Clusters []string `json:"clusters"`
}

type GoodReply

type GoodReply struct {
	ID            string    `json:"id"`
	Kind          string    `json:"kind"`
	Href          string    `json:"href"`
	Timestamp     time.Time `json:"timestamp"`
	Severity      string    `json:"severity"`
	ServiceName   string    `json:"service_name"`
	ClusterUUID   string    `json:"cluster_uuid"`
	Summary       string    `json:"summary"`
	Description   string    `json:"description"`
	EventStreamID string    `json:"event_stream_id"`
	CreatedAt     time.Time `json:"created_at"`
}

type Message

type Message struct {
	Severity       string   `json:"severity"`
	ServiceName    string   `json:"service_name"`
	ClusterUUID    string   `json:"cluster_uuid,omitempty"`
	ClusterID      string   `json:"cluster_id,omitempty"`
	Summary        string   `json:"summary"`
	Description    string   `json:"description"`
	InternalOnly   bool     `json:"internal_only"`
	EventStreamID  string   `json:"event_stream_id"`
	SubscriptionID string   `json:"subscription_id,omitempty"`
	DocReferences  []string `json:"doc_references"`
}

Message is the base template structure

func (*Message) FindLeftovers

func (m *Message) FindLeftovers() (matches []string, found bool)

func (*Message) GetClusterID added in v0.9.0

func (m *Message) GetClusterID() string

func (*Message) GetClusterUUID

func (m *Message) GetClusterUUID() string

func (*Message) GetDescription

func (m *Message) GetDescription() string

func (*Message) GetDocReferences added in v0.25.0

func (m *Message) GetDocReferences() []string

func (*Message) GetEventStreamID added in v0.4.4

func (m *Message) GetEventStreamID() string

func (*Message) GetInternalOnly

func (m *Message) GetInternalOnly() bool

func (*Message) GetServiceName

func (m *Message) GetServiceName() string

func (*Message) GetSeverity

func (m *Message) GetSeverity() string

func (*Message) GetSubscriptionID added in v0.9.0

func (m *Message) GetSubscriptionID() string

func (*Message) GetSummary

func (m *Message) GetSummary() string

func (*Message) ReplaceWithFlag

func (m *Message) ReplaceWithFlag(variable, value string)

func (*Message) SearchFlag

func (m *Message) SearchFlag(placeholder string) (found bool)

Jump to

Keyboard shortcuts

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