events

package
v4.2.789+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventLevel_name = map[int32]string{
	0: "EVENT_LEVEL_UNDEFINED",
	1: "EVENT_LEVEL_DEBUG",
	2: "EVENT_LEVEL_INFO",
	3: "EVENT_LEVEL_WARNING",
	4: "EVENT_LEVEL_ERROR",
	5: "EVENT_LEVEL_FATAL",
}
View Source
var EventLevel_value = map[string]int32{
	"EVENT_LEVEL_UNDEFINED": 0,
	"EVENT_LEVEL_DEBUG":     1,
	"EVENT_LEVEL_INFO":      2,
	"EVENT_LEVEL_WARNING":   3,
	"EVENT_LEVEL_ERROR":     4,
	"EVENT_LEVEL_FATAL":     5,
}
View Source
var EventType_name = map[int32]string{
	0:  "EVENT_TYPE_UNDEFINED",
	1:  "EVENT_TYPE_ALAMEDA_SCALER_CREATE",
	2:  "EVENT_TYPE_ALAMEDA_SCALER_DELETE",
	3:  "EVENT_TYPE_NODE_REGISTER",
	4:  "EVENT_TYPE_DEPLOYMENT_REGISTER",
	5:  "EVENT_TYPE_DEPLOYMENT_CONFIG_REGISTER",
	6:  "EVENT_TYPE_POD_REGISTER",
	7:  "EVENT_TYPE_NODE_DEREGISTER",
	8:  "EVENT_TYPE_DEPLOYMENT_DEREGISTER",
	9:  "EVENT_TYPE_DEPLOYMENT_CONFIG_DEREGISTER",
	10: "EVENT_TYPE_POD_DEREGISTER",
	11: "EVENT_TYPE_NODE_PREDICTION_CREATE",
	12: "EVENT_TYPE_POD_PREDICTION_CREATE",
	13: "EVENT_TYPE_VPA_RECOMMENDATION_CREATE",
	14: "EVENT_TYPE_HPA_RECOMMENDATION_CREATE",
	15: "EVENT_TYPE_VPA_RECOMMENDATION_EXECUTE",
	16: "EVENT_TYPE_HPA_RECOMMENDATION_EXECUTE",
	17: "EVENT_TYPE_ANOMALY_METRIC_DETECT",
	18: "EVENT_TYPE_ANOMALY_ANALYSIS_CREATE",
	19: "EVENT_TYPE_LICENSE",
	20: "EVENT_TYPE_EMAIL_NOTIFICATION",
	21: "EVENT_TYPE_ANOMALY_FORECAST_DETECT",
	22: "EVENT_TYPE_ANOMALY_REALTIME_DETECT",
}
View Source
var EventType_value = map[string]int32{
	"EVENT_TYPE_UNDEFINED":                    0,
	"EVENT_TYPE_ALAMEDA_SCALER_CREATE":        1,
	"EVENT_TYPE_ALAMEDA_SCALER_DELETE":        2,
	"EVENT_TYPE_NODE_REGISTER":                3,
	"EVENT_TYPE_DEPLOYMENT_REGISTER":          4,
	"EVENT_TYPE_DEPLOYMENT_CONFIG_REGISTER":   5,
	"EVENT_TYPE_POD_REGISTER":                 6,
	"EVENT_TYPE_NODE_DEREGISTER":              7,
	"EVENT_TYPE_DEPLOYMENT_DEREGISTER":        8,
	"EVENT_TYPE_DEPLOYMENT_CONFIG_DEREGISTER": 9,
	"EVENT_TYPE_POD_DEREGISTER":               10,
	"EVENT_TYPE_NODE_PREDICTION_CREATE":       11,
	"EVENT_TYPE_POD_PREDICTION_CREATE":        12,
	"EVENT_TYPE_VPA_RECOMMENDATION_CREATE":    13,
	"EVENT_TYPE_HPA_RECOMMENDATION_CREATE":    14,
	"EVENT_TYPE_VPA_RECOMMENDATION_EXECUTE":   15,
	"EVENT_TYPE_HPA_RECOMMENDATION_EXECUTE":   16,
	"EVENT_TYPE_ANOMALY_METRIC_DETECT":        17,
	"EVENT_TYPE_ANOMALY_ANALYSIS_CREATE":      18,
	"EVENT_TYPE_LICENSE":                      19,
	"EVENT_TYPE_EMAIL_NOTIFICATION":           20,
	"EVENT_TYPE_ANOMALY_FORECAST_DETECT":      21,
	"EVENT_TYPE_ANOMALY_REALTIME_DETECT":      22,
}
View Source
var EventVersion_name = map[int32]string{
	0: "EVENT_VERSION_UNDEFINED",
	1: "EVENT_VERSION_V1",
}
View Source
var EventVersion_value = map[string]int32{
	"EVENT_VERSION_UNDEFINED": 0,
	"EVENT_VERSION_V1":        1,
}

Functions

This section is empty.

Types

type CreateEventsRequest

type CreateEventsRequest struct {
	Events               []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateEventsRequest) Descriptor

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

func (*CreateEventsRequest) GetEvents

func (m *CreateEventsRequest) GetEvents() []*Event

func (*CreateEventsRequest) ProtoMessage

func (*CreateEventsRequest) ProtoMessage()

func (*CreateEventsRequest) Reset

func (m *CreateEventsRequest) Reset()

func (*CreateEventsRequest) String

func (m *CreateEventsRequest) String() string

func (*CreateEventsRequest) XXX_DiscardUnknown

func (m *CreateEventsRequest) XXX_DiscardUnknown()

func (*CreateEventsRequest) XXX_Marshal

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

func (*CreateEventsRequest) XXX_Merge

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

func (*CreateEventsRequest) XXX_Size

func (m *CreateEventsRequest) XXX_Size() int

func (*CreateEventsRequest) XXX_Unmarshal

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

type Event

type Event struct {
	Time                 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Id                   string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	ClusterId            string               `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	Source               *EventSource         `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Type                 EventType            `protobuf:"varint,5,opt,name=type,proto3,enum=containersai.alameda.v1alpha1.datahub.events.EventType" json:"type,omitempty"`
	Version              EventVersion         `` /* 131-byte string literal not displayed */
	Level                EventLevel           `protobuf:"varint,7,opt,name=level,proto3,enum=containersai.alameda.v1alpha1.datahub.events.EventLevel" json:"level,omitempty"`
	Subject              *K8SObjectReference  `protobuf:"bytes,8,opt,name=subject,proto3" json:"subject,omitempty"`
	Message              string               `protobuf:"bytes,9,opt,name=message,proto3" json:"message,omitempty"`
	Data                 string               `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetClusterId

func (m *Event) GetClusterId() string

func (*Event) GetData

func (m *Event) GetData() string

func (*Event) GetId

func (m *Event) GetId() string

func (*Event) GetLevel

func (m *Event) GetLevel() EventLevel

func (*Event) GetMessage

func (m *Event) GetMessage() string

func (*Event) GetSource

func (m *Event) GetSource() *EventSource

func (*Event) GetSubject

func (m *Event) GetSubject() *K8SObjectReference

func (*Event) GetTime

func (m *Event) GetTime() *timestamp.Timestamp

func (*Event) GetType

func (m *Event) GetType() EventType

func (*Event) GetVersion

func (m *Event) GetVersion() EventVersion

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

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

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type EventLevel

type EventLevel int32
const (
	EventLevel_EVENT_LEVEL_UNDEFINED EventLevel = 0
	EventLevel_EVENT_LEVEL_DEBUG     EventLevel = 1
	EventLevel_EVENT_LEVEL_INFO      EventLevel = 2
	EventLevel_EVENT_LEVEL_WARNING   EventLevel = 3
	EventLevel_EVENT_LEVEL_ERROR     EventLevel = 4
	EventLevel_EVENT_LEVEL_FATAL     EventLevel = 5
)

func (EventLevel) EnumDescriptor

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

func (EventLevel) String

func (x EventLevel) String() string

type EventSource

type EventSource struct {
	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Component            string   `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EventSource) Descriptor

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

func (*EventSource) GetComponent

func (m *EventSource) GetComponent() string

func (*EventSource) GetHost

func (m *EventSource) GetHost() string

func (*EventSource) ProtoMessage

func (*EventSource) ProtoMessage()

func (*EventSource) Reset

func (m *EventSource) Reset()

func (*EventSource) String

func (m *EventSource) String() string

func (*EventSource) XXX_DiscardUnknown

func (m *EventSource) XXX_DiscardUnknown()

func (*EventSource) XXX_Marshal

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

func (*EventSource) XXX_Merge

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

func (*EventSource) XXX_Size

func (m *EventSource) XXX_Size() int

func (*EventSource) XXX_Unmarshal

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

type EventType

type EventType int32
const (
	EventType_EVENT_TYPE_UNDEFINED                    EventType = 0
	EventType_EVENT_TYPE_ALAMEDA_SCALER_CREATE        EventType = 1
	EventType_EVENT_TYPE_ALAMEDA_SCALER_DELETE        EventType = 2
	EventType_EVENT_TYPE_NODE_REGISTER                EventType = 3
	EventType_EVENT_TYPE_DEPLOYMENT_REGISTER          EventType = 4
	EventType_EVENT_TYPE_DEPLOYMENT_CONFIG_REGISTER   EventType = 5
	EventType_EVENT_TYPE_POD_REGISTER                 EventType = 6
	EventType_EVENT_TYPE_NODE_DEREGISTER              EventType = 7
	EventType_EVENT_TYPE_DEPLOYMENT_DEREGISTER        EventType = 8
	EventType_EVENT_TYPE_DEPLOYMENT_CONFIG_DEREGISTER EventType = 9
	EventType_EVENT_TYPE_POD_DEREGISTER               EventType = 10
	EventType_EVENT_TYPE_NODE_PREDICTION_CREATE       EventType = 11
	EventType_EVENT_TYPE_POD_PREDICTION_CREATE        EventType = 12
	EventType_EVENT_TYPE_VPA_RECOMMENDATION_CREATE    EventType = 13
	EventType_EVENT_TYPE_HPA_RECOMMENDATION_CREATE    EventType = 14
	EventType_EVENT_TYPE_VPA_RECOMMENDATION_EXECUTE   EventType = 15
	EventType_EVENT_TYPE_HPA_RECOMMENDATION_EXECUTE   EventType = 16
	EventType_EVENT_TYPE_ANOMALY_METRIC_DETECT        EventType = 17
	EventType_EVENT_TYPE_ANOMALY_ANALYSIS_CREATE      EventType = 18
	EventType_EVENT_TYPE_LICENSE                      EventType = 19
	EventType_EVENT_TYPE_EMAIL_NOTIFICATION           EventType = 20
	EventType_EVENT_TYPE_ANOMALY_FORECAST_DETECT      EventType = 21
	EventType_EVENT_TYPE_ANOMALY_REALTIME_DETECT      EventType = 22
)

func (EventType) EnumDescriptor

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

func (EventType) String

func (x EventType) String() string

type EventVersion

type EventVersion int32
const (
	EventVersion_EVENT_VERSION_UNDEFINED EventVersion = 0
	EventVersion_EVENT_VERSION_V1        EventVersion = 1
)

func (EventVersion) EnumDescriptor

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

func (EventVersion) String

func (x EventVersion) String() string

type K8SObjectReference

type K8SObjectReference struct {
	Kind                 string   `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ApiVersion           string   `protobuf:"bytes,4,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*K8SObjectReference) Descriptor

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

func (*K8SObjectReference) GetApiVersion

func (m *K8SObjectReference) GetApiVersion() string

func (*K8SObjectReference) GetKind

func (m *K8SObjectReference) GetKind() string

func (*K8SObjectReference) GetName

func (m *K8SObjectReference) GetName() string

func (*K8SObjectReference) GetNamespace

func (m *K8SObjectReference) GetNamespace() string

func (*K8SObjectReference) ProtoMessage

func (*K8SObjectReference) ProtoMessage()

func (*K8SObjectReference) Reset

func (m *K8SObjectReference) Reset()

func (*K8SObjectReference) String

func (m *K8SObjectReference) String() string

func (*K8SObjectReference) XXX_DiscardUnknown

func (m *K8SObjectReference) XXX_DiscardUnknown()

func (*K8SObjectReference) XXX_Marshal

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

func (*K8SObjectReference) XXX_Merge

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

func (*K8SObjectReference) XXX_Size

func (m *K8SObjectReference) XXX_Size() int

func (*K8SObjectReference) XXX_Unmarshal

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

type ListEventsRequest

type ListEventsRequest struct {
	QueryCondition       *common.QueryCondition `protobuf:"bytes,1,opt,name=query_condition,json=queryCondition,proto3" json:"query_condition,omitempty"`
	Id                   []string               `protobuf:"bytes,2,rep,name=id,proto3" json:"id,omitempty"`
	ClusterId            []string               `protobuf:"bytes,3,rep,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	Type                 []EventType            `` /* 129-byte string literal not displayed */
	Version              []EventVersion         `` /* 138-byte string literal not displayed */
	Level                []EventLevel           `` /* 132-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*ListEventsRequest) Descriptor

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

func (*ListEventsRequest) GetClusterId

func (m *ListEventsRequest) GetClusterId() []string

func (*ListEventsRequest) GetId

func (m *ListEventsRequest) GetId() []string

func (*ListEventsRequest) GetLevel

func (m *ListEventsRequest) GetLevel() []EventLevel

func (*ListEventsRequest) GetQueryCondition

func (m *ListEventsRequest) GetQueryCondition() *common.QueryCondition

func (*ListEventsRequest) GetType

func (m *ListEventsRequest) GetType() []EventType

func (*ListEventsRequest) GetVersion

func (m *ListEventsRequest) GetVersion() []EventVersion

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) Reset

func (m *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (m *ListEventsRequest) String() string

func (*ListEventsRequest) XXX_DiscardUnknown

func (m *ListEventsRequest) XXX_DiscardUnknown()

func (*ListEventsRequest) XXX_Marshal

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

func (*ListEventsRequest) XXX_Merge

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

func (*ListEventsRequest) XXX_Size

func (m *ListEventsRequest) XXX_Size() int

func (*ListEventsRequest) XXX_Unmarshal

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

type ListEventsResponse

type ListEventsResponse struct {
	Status               *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Events               []*Event       `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ListEventsResponse) Descriptor

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

func (*ListEventsResponse) GetEvents

func (m *ListEventsResponse) GetEvents() []*Event

func (*ListEventsResponse) GetStatus

func (m *ListEventsResponse) GetStatus() *status.Status

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) Reset

func (m *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (m *ListEventsResponse) String() string

func (*ListEventsResponse) XXX_DiscardUnknown

func (m *ListEventsResponse) XXX_DiscardUnknown()

func (*ListEventsResponse) XXX_Marshal

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

func (*ListEventsResponse) XXX_Merge

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

func (*ListEventsResponse) XXX_Size

func (m *ListEventsResponse) XXX_Size() int

func (*ListEventsResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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