metrics

package
v3.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_strmprivacy_api_metrics_v1_metrics_proto protoreflect.FileDescriptor
View Source
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.

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) 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

type UnimplementedMetricsServiceServer

type UnimplementedMetricsServiceServer struct {
}

UnimplementedMetricsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMetricsServiceServer) GetSystemState

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.

Jump to

Keyboard shortcuts

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