pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_details_proto protoreflect.FileDescriptor

Functions

func AlertDetailServiceClientType

func AlertDetailServiceClientType() reflect.Type

AlertDetailServiceClientType .

func AlertDetailServiceHandlerType

func AlertDetailServiceHandlerType() reflect.Type

AlertDetailServiceHandlerType .

func AlertDetailServiceServerType

func AlertDetailServiceServerType() reflect.Type

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)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use PodInfo.ProtoReflect.Descriptor instead.

func (*PodInfo) GetInstances

func (x *PodInfo) GetInstances() []*PodInfoInstanse

func (*PodInfo) GetSummary

func (x *PodInfo) GetSummary() *PodInfoSummary

func (*PodInfo) MarshalJSON

func (m *PodInfo) MarshalJSON() ([]byte, error)

PodInfo implement json.Marshaler.

func (*PodInfo) ProtoMessage

func (*PodInfo) ProtoMessage()

func (*PodInfo) ProtoReflect

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

func (*PodInfo) Reset

func (x *PodInfo) Reset()

func (*PodInfo) String

func (x *PodInfo) String() string

func (*PodInfo) UnmarshalJSON

func (m *PodInfo) UnmarshalJSON(b []byte) error

PodInfo implement json.Marshaler.

func (*PodInfo) UnmarshalURLValues

func (m *PodInfo) UnmarshalURLValues(prefix string, values url.Values) error

PodInfo implement urlenc.URLValuesUnmarshaler.

func (*PodInfo) Validate

func (this *PodInfo) Validate() error

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 (*QuerySystemPodMetricsRequest) Reset

func (x *QuerySystemPodMetricsRequest) Reset()

func (*QuerySystemPodMetricsRequest) 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 (*QuerySystemPodMetricsResponse) Reset

func (x *QuerySystemPodMetricsResponse) Reset()

func (*QuerySystemPodMetricsResponse) 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

Jump to

Keyboard shortcuts

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