Documentation ¶
Index ¶
- Variables
- func AlertDetailServiceClientType() reflect.Type
- func AlertDetailServiceHandlerType() reflect.Type
- func AlertDetailServiceServerType() reflect.Type
- func RegisterAlertDetailServiceHandler(r http.Router, srv AlertDetailServiceHandler, opts ...http.HandleOption)
- func RegisterAlertDetailServiceImp(regester transport.Register, srv AlertDetailServiceServer, ...)
- func RegisterAlertDetailServiceServer(s grpc1.ServiceRegistrar, srv AlertDetailServiceServer, ...)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type AlertDetailServiceClient
- type AlertDetailServiceHandler
- type AlertDetailServiceServer
- type PodInfo
- func (*PodInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PodInfo) GetInstances() []*PodInfoInstanse
- func (x *PodInfo) GetSummary() *PodInfoSummary
- func (m *PodInfo) MarshalJSON() ([]byte, error)
- func (*PodInfo) ProtoMessage()
- func (x *PodInfo) ProtoReflect() protoreflect.Message
- func (x *PodInfo) Reset()
- func (x *PodInfo) String() string
- func (m *PodInfo) UnmarshalJSON(b []byte) error
- func (m *PodInfo) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *PodInfo) Validate() error
- type PodInfoInstanse
- func (*PodInfoInstanse) Descriptor() ([]byte, []int)deprecated
- func (x *PodInfoInstanse) GetContainerId() string
- func (x *PodInfoInstanse) GetExitCode() int64
- func (x *PodInfoInstanse) GetFinishedAt() string
- func (x *PodInfoInstanse) GetHostIP() string
- func (x *PodInfoInstanse) GetOomKilled() bool
- func (x *PodInfoInstanse) GetStartedAt() string
- func (m *PodInfoInstanse) MarshalJSON() ([]byte, error)
- func (*PodInfoInstanse) ProtoMessage()
- func (x *PodInfoInstanse) ProtoReflect() protoreflect.Message
- func (x *PodInfoInstanse) Reset()
- func (x *PodInfoInstanse) String() string
- func (m *PodInfoInstanse) UnmarshalJSON(b []byte) error
- func (m *PodInfoInstanse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *PodInfoInstanse) Validate() error
- type PodInfoSummary
- func (*PodInfoSummary) Descriptor() ([]byte, []int)deprecated
- func (x *PodInfoSummary) GetClusterName() string
- func (x *PodInfoSummary) GetHostIP() string
- func (x *PodInfoSummary) GetNamespace() string
- func (x *PodInfoSummary) GetNodeName() string
- func (x *PodInfoSummary) GetPodName() string
- func (x *PodInfoSummary) GetRestartTotal() int64
- func (x *PodInfoSummary) GetStateCode() int64
- func (x *PodInfoSummary) GetTerminatedReason() string
- func (m *PodInfoSummary) MarshalJSON() ([]byte, error)
- func (*PodInfoSummary) ProtoMessage()
- func (x *PodInfoSummary) ProtoReflect() protoreflect.Message
- func (x *PodInfoSummary) Reset()
- func (x *PodInfoSummary) String() string
- func (m *PodInfoSummary) UnmarshalJSON(b []byte) error
- func (m *PodInfoSummary) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *PodInfoSummary) Validate() error
- type QuerySystemPodMetricsRequest
- func (*QuerySystemPodMetricsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySystemPodMetricsRequest) GetClusterName() string
- func (x *QuerySystemPodMetricsRequest) GetName() string
- func (x *QuerySystemPodMetricsRequest) GetTimestamp() int64
- func (m *QuerySystemPodMetricsRequest) MarshalJSON() ([]byte, error)
- func (*QuerySystemPodMetricsRequest) ProtoMessage()
- func (x *QuerySystemPodMetricsRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySystemPodMetricsRequest) Reset()
- func (x *QuerySystemPodMetricsRequest) String() string
- func (m *QuerySystemPodMetricsRequest) UnmarshalJSON(b []byte) error
- func (m *QuerySystemPodMetricsRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *QuerySystemPodMetricsRequest) Validate() error
- type QuerySystemPodMetricsResponse
- func (*QuerySystemPodMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySystemPodMetricsResponse) GetData() *PodInfo
- func (m *QuerySystemPodMetricsResponse) MarshalJSON() ([]byte, error)
- func (*QuerySystemPodMetricsResponse) ProtoMessage()
- func (x *QuerySystemPodMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySystemPodMetricsResponse) Reset()
- func (x *QuerySystemPodMetricsResponse) String() string
- func (m *QuerySystemPodMetricsResponse) UnmarshalJSON(b []byte) error
- func (m *QuerySystemPodMetricsResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *QuerySystemPodMetricsResponse) Validate() error
- type UnimplementedAlertDetailServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_details_proto protoreflect.FileDescriptor
Functions ¶
func AlertDetailServiceClientType ¶
AlertDetailServiceClientType .
func AlertDetailServiceHandlerType ¶
AlertDetailServiceHandlerType .
func AlertDetailServiceServerType ¶
AlertDetailServiceServerType .
func RegisterAlertDetailServiceHandler ¶
func RegisterAlertDetailServiceHandler(r http.Router, srv AlertDetailServiceHandler, opts ...http.HandleOption)
RegisterAlertDetailServiceHandler register AlertDetailServiceHandler to http.Router.
func RegisterAlertDetailServiceImp ¶
func RegisterAlertDetailServiceImp(regester transport.Register, srv AlertDetailServiceServer, opts ...transport.ServiceOption)
RegisterAlertDetailServiceImp details.proto
func RegisterAlertDetailServiceServer ¶
func RegisterAlertDetailServiceServer(s grpc1.ServiceRegistrar, srv AlertDetailServiceServer, opts ...grpc1.HandleOption)
Types ¶
type AlertDetailServiceClient ¶
type AlertDetailServiceClient interface {
QuerySystemPodMetrics(ctx context.Context, in *QuerySystemPodMetricsRequest, opts ...grpc.CallOption) (*QuerySystemPodMetricsResponse, error)
}
AlertDetailServiceClient is the client API for AlertDetailService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAlertDetailServiceClient ¶
func NewAlertDetailServiceClient(cc grpc1.ClientConnInterface) AlertDetailServiceClient
type AlertDetailServiceHandler ¶
type AlertDetailServiceHandler interface { // GET /api/system/pod/status QuerySystemPodMetrics(context.Context, *QuerySystemPodMetricsRequest) (*QuerySystemPodMetricsResponse, error) }
AlertDetailServiceHandler is the server API for AlertDetailService service.
type AlertDetailServiceServer ¶
type AlertDetailServiceServer interface {
QuerySystemPodMetrics(context.Context, *QuerySystemPodMetricsRequest) (*QuerySystemPodMetricsResponse, error)
}
AlertDetailServiceServer is the server API for AlertDetailService service. All implementations should embed UnimplementedAlertDetailServiceServer for forward compatibility
type PodInfo ¶
type PodInfo struct { Summary *PodInfoSummary `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` Instances []*PodInfoInstanse `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // contains filtered or unexported fields }
func (*PodInfo) Descriptor
deprecated
func (*PodInfo) GetInstances ¶
func (x *PodInfo) GetInstances() []*PodInfoInstanse
func (*PodInfo) GetSummary ¶
func (x *PodInfo) GetSummary() *PodInfoSummary
func (*PodInfo) MarshalJSON ¶
PodInfo implement json.Marshaler.
func (*PodInfo) ProtoMessage ¶
func (*PodInfo) ProtoMessage()
func (*PodInfo) ProtoReflect ¶
func (x *PodInfo) ProtoReflect() protoreflect.Message
func (*PodInfo) UnmarshalJSON ¶
PodInfo implement json.Marshaler.
func (*PodInfo) UnmarshalURLValues ¶
PodInfo implement urlenc.URLValuesUnmarshaler.
type PodInfoInstanse ¶
type PodInfoInstanse struct { ContainerId string `protobuf:"bytes,1,opt,name=containerId,proto3" json:"containerId,omitempty"` HostIP string `protobuf:"bytes,2,opt,name=hostIP,proto3" json:"hostIP,omitempty"` StartedAt string `protobuf:"bytes,3,opt,name=startedAt,proto3" json:"startedAt,omitempty"` FinishedAt string `protobuf:"bytes,4,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"` ExitCode int64 `protobuf:"varint,5,opt,name=exitCode,proto3" json:"exitCode,omitempty"` OomKilled bool `protobuf:"varint,6,opt,name=oomKilled,proto3" json:"oomKilled,omitempty"` // contains filtered or unexported fields }
func (*PodInfoInstanse) Descriptor
deprecated
func (*PodInfoInstanse) Descriptor() ([]byte, []int)
Deprecated: Use PodInfoInstanse.ProtoReflect.Descriptor instead.
func (*PodInfoInstanse) GetContainerId ¶
func (x *PodInfoInstanse) GetContainerId() string
func (*PodInfoInstanse) GetExitCode ¶
func (x *PodInfoInstanse) GetExitCode() int64
func (*PodInfoInstanse) GetFinishedAt ¶
func (x *PodInfoInstanse) GetFinishedAt() string
func (*PodInfoInstanse) GetHostIP ¶
func (x *PodInfoInstanse) GetHostIP() string
func (*PodInfoInstanse) GetOomKilled ¶
func (x *PodInfoInstanse) GetOomKilled() bool
func (*PodInfoInstanse) GetStartedAt ¶
func (x *PodInfoInstanse) GetStartedAt() string
func (*PodInfoInstanse) MarshalJSON ¶
func (m *PodInfoInstanse) MarshalJSON() ([]byte, error)
PodInfoInstanse implement json.Marshaler.
func (*PodInfoInstanse) ProtoMessage ¶
func (*PodInfoInstanse) ProtoMessage()
func (*PodInfoInstanse) ProtoReflect ¶
func (x *PodInfoInstanse) ProtoReflect() protoreflect.Message
func (*PodInfoInstanse) Reset ¶
func (x *PodInfoInstanse) Reset()
func (*PodInfoInstanse) String ¶
func (x *PodInfoInstanse) String() string
func (*PodInfoInstanse) UnmarshalJSON ¶
func (m *PodInfoInstanse) UnmarshalJSON(b []byte) error
PodInfoInstanse implement json.Marshaler.
func (*PodInfoInstanse) UnmarshalURLValues ¶
func (m *PodInfoInstanse) UnmarshalURLValues(prefix string, values url.Values) error
PodInfoInstanse implement urlenc.URLValuesUnmarshaler.
func (*PodInfoInstanse) Validate ¶
func (this *PodInfoInstanse) Validate() error
type PodInfoSummary ¶
type PodInfoSummary struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"` HostIP string `protobuf:"bytes,3,opt,name=hostIP,proto3" json:"hostIP,omitempty"` Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` PodName string `protobuf:"bytes,5,opt,name=podName,proto3" json:"podName,omitempty"` RestartTotal int64 `protobuf:"varint,6,opt,name=restartTotal,proto3" json:"restartTotal,omitempty"` StateCode int64 `protobuf:"varint,7,opt,name=stateCode,proto3" json:"stateCode,omitempty"` TerminatedReason string `protobuf:"bytes,8,opt,name=terminatedReason,proto3" json:"terminatedReason,omitempty"` // contains filtered or unexported fields }
func (*PodInfoSummary) Descriptor
deprecated
func (*PodInfoSummary) Descriptor() ([]byte, []int)
Deprecated: Use PodInfoSummary.ProtoReflect.Descriptor instead.
func (*PodInfoSummary) GetClusterName ¶
func (x *PodInfoSummary) GetClusterName() string
func (*PodInfoSummary) GetHostIP ¶
func (x *PodInfoSummary) GetHostIP() string
func (*PodInfoSummary) GetNamespace ¶
func (x *PodInfoSummary) GetNamespace() string
func (*PodInfoSummary) GetNodeName ¶
func (x *PodInfoSummary) GetNodeName() string
func (*PodInfoSummary) GetPodName ¶
func (x *PodInfoSummary) GetPodName() string
func (*PodInfoSummary) GetRestartTotal ¶
func (x *PodInfoSummary) GetRestartTotal() int64
func (*PodInfoSummary) GetStateCode ¶
func (x *PodInfoSummary) GetStateCode() int64
func (*PodInfoSummary) GetTerminatedReason ¶
func (x *PodInfoSummary) GetTerminatedReason() string
func (*PodInfoSummary) MarshalJSON ¶
func (m *PodInfoSummary) MarshalJSON() ([]byte, error)
PodInfoSummary implement json.Marshaler.
func (*PodInfoSummary) ProtoMessage ¶
func (*PodInfoSummary) ProtoMessage()
func (*PodInfoSummary) ProtoReflect ¶
func (x *PodInfoSummary) ProtoReflect() protoreflect.Message
func (*PodInfoSummary) Reset ¶
func (x *PodInfoSummary) Reset()
func (*PodInfoSummary) String ¶
func (x *PodInfoSummary) String() string
func (*PodInfoSummary) UnmarshalJSON ¶
func (m *PodInfoSummary) UnmarshalJSON(b []byte) error
PodInfoSummary implement json.Marshaler.
func (*PodInfoSummary) UnmarshalURLValues ¶
func (m *PodInfoSummary) UnmarshalURLValues(prefix string, values url.Values) error
PodInfoSummary implement urlenc.URLValuesUnmarshaler.
func (*PodInfoSummary) Validate ¶
func (this *PodInfoSummary) Validate() error
type QuerySystemPodMetricsRequest ¶
type QuerySystemPodMetricsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*QuerySystemPodMetricsRequest) Descriptor
deprecated
func (*QuerySystemPodMetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySystemPodMetricsRequest.ProtoReflect.Descriptor instead.
func (*QuerySystemPodMetricsRequest) GetClusterName ¶
func (x *QuerySystemPodMetricsRequest) GetClusterName() string
func (*QuerySystemPodMetricsRequest) GetName ¶
func (x *QuerySystemPodMetricsRequest) GetName() string
func (*QuerySystemPodMetricsRequest) GetTimestamp ¶
func (x *QuerySystemPodMetricsRequest) GetTimestamp() int64
func (*QuerySystemPodMetricsRequest) MarshalJSON ¶
func (m *QuerySystemPodMetricsRequest) MarshalJSON() ([]byte, error)
QuerySystemPodMetricsRequest implement json.Marshaler.
func (*QuerySystemPodMetricsRequest) ProtoMessage ¶
func (*QuerySystemPodMetricsRequest) ProtoMessage()
func (*QuerySystemPodMetricsRequest) ProtoReflect ¶
func (x *QuerySystemPodMetricsRequest) ProtoReflect() protoreflect.Message
func (*QuerySystemPodMetricsRequest) Reset ¶
func (x *QuerySystemPodMetricsRequest) Reset()
func (*QuerySystemPodMetricsRequest) String ¶
func (x *QuerySystemPodMetricsRequest) String() string
func (*QuerySystemPodMetricsRequest) UnmarshalJSON ¶
func (m *QuerySystemPodMetricsRequest) UnmarshalJSON(b []byte) error
QuerySystemPodMetricsRequest implement json.Marshaler.
func (*QuerySystemPodMetricsRequest) UnmarshalURLValues ¶
func (m *QuerySystemPodMetricsRequest) UnmarshalURLValues(prefix string, values url.Values) error
QuerySystemPodMetricsRequest implement urlenc.URLValuesUnmarshaler.
func (*QuerySystemPodMetricsRequest) Validate ¶
func (this *QuerySystemPodMetricsRequest) Validate() error
type QuerySystemPodMetricsResponse ¶
type QuerySystemPodMetricsResponse struct { Data *PodInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*QuerySystemPodMetricsResponse) Descriptor
deprecated
func (*QuerySystemPodMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySystemPodMetricsResponse.ProtoReflect.Descriptor instead.
func (*QuerySystemPodMetricsResponse) GetData ¶
func (x *QuerySystemPodMetricsResponse) GetData() *PodInfo
func (*QuerySystemPodMetricsResponse) MarshalJSON ¶
func (m *QuerySystemPodMetricsResponse) MarshalJSON() ([]byte, error)
QuerySystemPodMetricsResponse implement json.Marshaler.
func (*QuerySystemPodMetricsResponse) ProtoMessage ¶
func (*QuerySystemPodMetricsResponse) ProtoMessage()
func (*QuerySystemPodMetricsResponse) ProtoReflect ¶
func (x *QuerySystemPodMetricsResponse) ProtoReflect() protoreflect.Message
func (*QuerySystemPodMetricsResponse) Reset ¶
func (x *QuerySystemPodMetricsResponse) Reset()
func (*QuerySystemPodMetricsResponse) String ¶
func (x *QuerySystemPodMetricsResponse) String() string
func (*QuerySystemPodMetricsResponse) UnmarshalJSON ¶
func (m *QuerySystemPodMetricsResponse) UnmarshalJSON(b []byte) error
QuerySystemPodMetricsResponse implement json.Marshaler.
func (*QuerySystemPodMetricsResponse) UnmarshalURLValues ¶
func (m *QuerySystemPodMetricsResponse) UnmarshalURLValues(prefix string, values url.Values) error
QuerySystemPodMetricsResponse implement urlenc.URLValuesUnmarshaler.
func (*QuerySystemPodMetricsResponse) Validate ¶
func (this *QuerySystemPodMetricsResponse) Validate() error
type UnimplementedAlertDetailServiceServer ¶
type UnimplementedAlertDetailServiceServer struct { }
UnimplementedAlertDetailServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedAlertDetailServiceServer) QuerySystemPodMetrics ¶
func (*UnimplementedAlertDetailServiceServer) QuerySystemPodMetrics(context.Context, *QuerySystemPodMetricsRequest) (*QuerySystemPodMetricsResponse, error)