Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServiceServer(s grpc.ServiceRegistrar, srv MetricsServiceServer)
- type GetSystemStateRequest
- type GetSystemStateResponse
- func (*GetSystemStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemStateResponse) GetOverallState() SystemState
- func (*GetSystemStateResponse) ProtoMessage()
- func (x *GetSystemStateResponse) ProtoReflect() protoreflect.Message
- func (x *GetSystemStateResponse) Reset()
- func (x *GetSystemStateResponse) String() string
- type MetricsServiceClient
- type MetricsServiceServer
- type SystemState
- func (SystemState) Descriptor() protoreflect.EnumDescriptor
- func (x SystemState) Enum() *SystemState
- func (SystemState) EnumDescriptor() ([]byte, []int)deprecated
- func (x SystemState) Number() protoreflect.EnumNumber
- func (x SystemState) String() string
- func (SystemState) Type() protoreflect.EnumType
- type UnimplementedMetricsServiceServer
- type UnsafeMetricsServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( SystemState_name = map[int32]string{ 0: "SYSTEM_STATE_UNSPECIFIED", 1: "UP", 2: "MAJOR_DOWN", 3: "MINOR_DOWN", } SystemState_value = map[string]int32{ "SYSTEM_STATE_UNSPECIFIED": 0, "UP": 1, "MAJOR_DOWN": 2, "MINOR_DOWN": 3, } )
Enum value maps for SystemState.
var File_strmprivacy_api_metrics_v1_metrics_proto protoreflect.FileDescriptor
var MetricsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.metrics.v1.MetricsService", HandlerType: (*MetricsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSystemState", Handler: _MetricsService_GetSystemState_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/metrics/v1/metrics.proto", }
MetricsService_ServiceDesc is the grpc.ServiceDesc for MetricsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetricsServiceServer ¶
func RegisterMetricsServiceServer(s grpc.ServiceRegistrar, srv MetricsServiceServer)
Types ¶
type GetSystemStateRequest ¶
type GetSystemStateRequest struct {
// contains filtered or unexported fields
}
func (*GetSystemStateRequest) Descriptor
deprecated
func (*GetSystemStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemStateRequest.ProtoReflect.Descriptor instead.
func (*GetSystemStateRequest) ProtoMessage ¶
func (*GetSystemStateRequest) ProtoMessage()
func (*GetSystemStateRequest) ProtoReflect ¶
func (x *GetSystemStateRequest) ProtoReflect() protoreflect.Message
func (*GetSystemStateRequest) Reset ¶
func (x *GetSystemStateRequest) Reset()
func (*GetSystemStateRequest) String ¶
func (x *GetSystemStateRequest) String() string
type GetSystemStateResponse ¶
type GetSystemStateResponse struct { OverallState SystemState `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSystemStateResponse) Descriptor
deprecated
func (*GetSystemStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemStateResponse.ProtoReflect.Descriptor instead.
func (*GetSystemStateResponse) GetOverallState ¶
func (x *GetSystemStateResponse) GetOverallState() SystemState
func (*GetSystemStateResponse) ProtoMessage ¶
func (*GetSystemStateResponse) ProtoMessage()
func (*GetSystemStateResponse) ProtoReflect ¶
func (x *GetSystemStateResponse) ProtoReflect() protoreflect.Message
func (*GetSystemStateResponse) Reset ¶
func (x *GetSystemStateResponse) Reset()
func (*GetSystemStateResponse) String ¶
func (x *GetSystemStateResponse) String() string
type MetricsServiceClient ¶
type MetricsServiceClient interface {
GetSystemState(ctx context.Context, in *GetSystemStateRequest, opts ...grpc.CallOption) (*GetSystemStateResponse, error)
}
MetricsServiceClient is the client API for MetricsService 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 NewMetricsServiceClient ¶
func NewMetricsServiceClient(cc grpc.ClientConnInterface) MetricsServiceClient
type MetricsServiceServer ¶
type MetricsServiceServer interface { GetSystemState(context.Context, *GetSystemStateRequest) (*GetSystemStateResponse, error) // contains filtered or unexported methods }
MetricsServiceServer is the server API for MetricsService service. All implementations must embed UnimplementedMetricsServiceServer for forward compatibility
type SystemState ¶
type SystemState int32
const ( SystemState_SYSTEM_STATE_UNSPECIFIED SystemState = 0 // Everything is working fine (green). SystemState_UP SystemState = 1 // One or more major parts of the system are down/unusable (red). SystemState_MAJOR_DOWN SystemState = 2 // Small parts of the system are down/unusable, but the core is not affected. (orange). SystemState_MINOR_DOWN SystemState = 3 )
func (SystemState) Descriptor ¶
func (SystemState) Descriptor() protoreflect.EnumDescriptor
func (SystemState) Enum ¶
func (x SystemState) Enum() *SystemState
func (SystemState) EnumDescriptor
deprecated
func (SystemState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SystemState.Descriptor instead.
func (SystemState) Number ¶
func (x SystemState) Number() protoreflect.EnumNumber
func (SystemState) String ¶
func (x SystemState) String() string
func (SystemState) Type ¶
func (SystemState) Type() protoreflect.EnumType
type UnimplementedMetricsServiceServer ¶
type UnimplementedMetricsServiceServer struct { }
UnimplementedMetricsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMetricsServiceServer) GetSystemState ¶
func (UnimplementedMetricsServiceServer) GetSystemState(context.Context, *GetSystemStateRequest) (*GetSystemStateResponse, error)
type UnsafeMetricsServiceServer ¶
type UnsafeMetricsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetricsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricsServiceServer will result in compilation errors.