Documentation ¶
Index ¶
- Variables
- type CreateEventsRequest
- func (*CreateEventsRequest) Descriptor() ([]byte, []int)
- func (m *CreateEventsRequest) GetEvents() []*Event
- func (*CreateEventsRequest) ProtoMessage()
- func (m *CreateEventsRequest) Reset()
- func (m *CreateEventsRequest) String() string
- func (m *CreateEventsRequest) XXX_DiscardUnknown()
- func (m *CreateEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateEventsRequest) XXX_Merge(src proto.Message)
- func (m *CreateEventsRequest) XXX_Size() int
- func (m *CreateEventsRequest) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetClusterId() string
- func (m *Event) GetData() string
- func (m *Event) GetId() string
- func (m *Event) GetLevel() EventLevel
- func (m *Event) GetMessage() string
- func (m *Event) GetSource() *EventSource
- func (m *Event) GetSubject() *K8SObjectReference
- func (m *Event) GetTime() *timestamp.Timestamp
- func (m *Event) GetType() EventType
- func (m *Event) GetVersion() EventVersion
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventLevel
- type EventSource
- func (*EventSource) Descriptor() ([]byte, []int)
- func (m *EventSource) GetComponent() string
- func (m *EventSource) GetHost() string
- func (*EventSource) ProtoMessage()
- func (m *EventSource) Reset()
- func (m *EventSource) String() string
- func (m *EventSource) XXX_DiscardUnknown()
- func (m *EventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSource) XXX_Merge(src proto.Message)
- func (m *EventSource) XXX_Size() int
- func (m *EventSource) XXX_Unmarshal(b []byte) error
- type EventType
- type EventVersion
- type K8SObjectReference
- func (*K8SObjectReference) Descriptor() ([]byte, []int)
- func (m *K8SObjectReference) GetApiVersion() string
- func (m *K8SObjectReference) GetKind() string
- func (m *K8SObjectReference) GetName() string
- func (m *K8SObjectReference) GetNamespace() string
- func (*K8SObjectReference) ProtoMessage()
- func (m *K8SObjectReference) Reset()
- func (m *K8SObjectReference) String() string
- func (m *K8SObjectReference) XXX_DiscardUnknown()
- func (m *K8SObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *K8SObjectReference) XXX_Merge(src proto.Message)
- func (m *K8SObjectReference) XXX_Size() int
- func (m *K8SObjectReference) XXX_Unmarshal(b []byte) error
- type ListEventsRequest
- func (*ListEventsRequest) Descriptor() ([]byte, []int)
- func (m *ListEventsRequest) GetClusterId() []string
- func (m *ListEventsRequest) GetId() []string
- func (m *ListEventsRequest) GetLevel() []EventLevel
- func (m *ListEventsRequest) GetQueryCondition() *common.QueryCondition
- func (m *ListEventsRequest) GetType() []EventType
- func (m *ListEventsRequest) GetVersion() []EventVersion
- func (*ListEventsRequest) ProtoMessage()
- func (m *ListEventsRequest) Reset()
- func (m *ListEventsRequest) String() string
- func (m *ListEventsRequest) XXX_DiscardUnknown()
- func (m *ListEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListEventsRequest) XXX_Merge(src proto.Message)
- func (m *ListEventsRequest) XXX_Size() int
- func (m *ListEventsRequest) XXX_Unmarshal(b []byte) error
- type ListEventsResponse
- func (*ListEventsResponse) Descriptor() ([]byte, []int)
- func (m *ListEventsResponse) GetEvents() []*Event
- func (m *ListEventsResponse) GetStatus() *status.Status
- func (*ListEventsResponse) ProtoMessage()
- func (m *ListEventsResponse) Reset()
- func (m *ListEventsResponse) String() string
- func (m *ListEventsResponse) XXX_DiscardUnknown()
- func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListEventsResponse) XXX_Merge(src proto.Message)
- func (m *ListEventsResponse) XXX_Size() int
- func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error
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) GetClusterId ¶
func (*Event) GetLevel ¶
func (m *Event) GetLevel() EventLevel
func (*Event) GetMessage ¶
func (*Event) GetSource ¶
func (m *Event) GetSource() *EventSource
func (*Event) GetSubject ¶
func (m *Event) GetSubject() *K8SObjectReference
func (*Event) GetVersion ¶
func (m *Event) GetVersion() EventVersion
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.