data_registry

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateMode_name = map[int32]string{
		0: "MERGE",
		1: "REPLACE",
		2: "REPLACEALL",
	}
	UpdateMode_value = map[string]int32{
		"MERGE":      0,
		"REPLACE":    1,
		"REPLACEALL": 2,
	}
)

Enum value maps for UpdateMode.

View Source
var File_zenoss_cloud_data_registry_proto protoreflect.FileDescriptor

Functions

func RegisterDataRegistryServiceServer

func RegisterDataRegistryServiceServer(s *grpc.Server, srv DataRegistryServiceServer)

Types

type DataRegistryServiceClient

type DataRegistryServiceClient interface {
	CreateOrUpdateMetric(ctx context.Context, in *RegisterMetricRequest, opts ...grpc.CallOption) (*RegisterMetricResponse, error)
	CreateOrUpdateMetrics(ctx context.Context, opts ...grpc.CallOption) (DataRegistryService_CreateOrUpdateMetricsClient, error)
	UpdateMetric(ctx context.Context, in *UpdateMetricRequest, opts ...grpc.CallOption) (*RegisterMetricResponse, error)
	RegisterDefinition(ctx context.Context, in *Definition, opts ...grpc.CallOption) (*DefinitionResponse, error)
	UpdateDefinition(ctx context.Context, in *DefinitionUpdate, opts ...grpc.CallOption) (*DefinitionResponse, error)
	GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*GetMetricResponse, error)
}

DataRegistryServiceClient is the client API for DataRegistryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DataRegistryServiceServer

DataRegistryServiceServer is the server API for DataRegistryService service.

type DataRegistryService_CreateOrUpdateMetricsClient

type DataRegistryService_CreateOrUpdateMetricsClient interface {
	Send(*RegisterMetricRequest) error
	CloseAndRecv() (*RegisterMetricsResponse, error)
	grpc.ClientStream
}

type DataRegistryService_CreateOrUpdateMetricsServer

type DataRegistryService_CreateOrUpdateMetricsServer interface {
	SendAndClose(*RegisterMetricsResponse) error
	Recv() (*RegisterMetricRequest, error)
	grpc.ServerStream
}

type Definition

type Definition struct {

	// The metric name
	Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	// Dimensions associated with this datapoint.
	Dimensions []string `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// Metadata for the datapoint. Note: using Struct as it is easier than AnyArray when using json representations
	MetadataFields *structpb.Struct `protobuf:"bytes,3,opt,name=metadataFields,proto3" json:"metadataFields,omitempty"`
	// Determines what happens to the existing definition metadata fields.  If MERGE (default), the provided metadata
	// is merged with the existing metadata.  If REPLACE, the provided metadata replaces the metadata on the existing
	// definition.
	UpdateMode UpdateMode `protobuf:"varint,4,opt,name=update_mode,json=updateMode,proto3,enum=zenoss.cloud.UpdateMode" json:"update_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*Definition) Descriptor deprecated

func (*Definition) Descriptor() ([]byte, []int)

Deprecated: Use Definition.ProtoReflect.Descriptor instead.

func (*Definition) GetDimensions

func (x *Definition) GetDimensions() []string

func (*Definition) GetMetadataFields

func (x *Definition) GetMetadataFields() *structpb.Struct

func (*Definition) GetMetric

func (x *Definition) GetMetric() string

func (*Definition) GetUpdateMode

func (x *Definition) GetUpdateMode() UpdateMode

func (*Definition) ProtoMessage

func (*Definition) ProtoMessage()

func (*Definition) ProtoReflect added in v1.4.0

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

func (*Definition) Reset

func (x *Definition) Reset()

func (*Definition) String

func (x *Definition) String() string

type DefinitionResponse

type DefinitionResponse struct {
	DefinitionId string `protobuf:"bytes,1,opt,name=definitionId,proto3" json:"definitionId,omitempty"`
	// contains filtered or unexported fields
}

func (*DefinitionResponse) Descriptor deprecated

func (*DefinitionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DefinitionResponse.ProtoReflect.Descriptor instead.

func (*DefinitionResponse) GetDefinitionId

func (x *DefinitionResponse) GetDefinitionId() string

func (*DefinitionResponse) ProtoMessage

func (*DefinitionResponse) ProtoMessage()

func (*DefinitionResponse) ProtoReflect added in v1.4.0

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

func (*DefinitionResponse) Reset

func (x *DefinitionResponse) Reset()

func (*DefinitionResponse) String

func (x *DefinitionResponse) String() string

type DefinitionUpdate

type DefinitionUpdate struct {

	// The metric name
	DefinitionId string `protobuf:"bytes,1,opt,name=definition_id,json=definitionId,proto3" json:"definition_id,omitempty"`
	// Metadata for the datapoint. Note: using Struct as it is easier than AnyArray when using json representations
	MetadataFields *structpb.Struct `protobuf:"bytes,2,opt,name=metadataFields,proto3" json:"metadataFields,omitempty"`
	// Determines what happens to the existing definition metadata fields.  If MERGE (default), the provided metadata
	// is merged with the existing metadata.  If REPLACE, the provided metadata replaces the metadata on the existing
	// definition.
	UpdateMode UpdateMode `protobuf:"varint,3,opt,name=update_mode,json=updateMode,proto3,enum=zenoss.cloud.UpdateMode" json:"update_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*DefinitionUpdate) Descriptor deprecated

func (*DefinitionUpdate) Descriptor() ([]byte, []int)

Deprecated: Use DefinitionUpdate.ProtoReflect.Descriptor instead.

func (*DefinitionUpdate) GetDefinitionId

func (x *DefinitionUpdate) GetDefinitionId() string

func (*DefinitionUpdate) GetMetadataFields

func (x *DefinitionUpdate) GetMetadataFields() *structpb.Struct

func (*DefinitionUpdate) GetUpdateMode

func (x *DefinitionUpdate) GetUpdateMode() UpdateMode

func (*DefinitionUpdate) ProtoMessage

func (*DefinitionUpdate) ProtoMessage()

func (*DefinitionUpdate) ProtoReflect added in v1.4.0

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

func (*DefinitionUpdate) Reset

func (x *DefinitionUpdate) Reset()

func (*DefinitionUpdate) String

func (x *DefinitionUpdate) String() string

type GetMetricRequest

type GetMetricRequest struct {
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricRequest) Descriptor deprecated

func (*GetMetricRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMetricRequest.ProtoReflect.Descriptor instead.

func (*GetMetricRequest) GetInstanceId

func (x *GetMetricRequest) GetInstanceId() string

func (*GetMetricRequest) ProtoMessage

func (*GetMetricRequest) ProtoMessage()

func (*GetMetricRequest) ProtoReflect added in v1.4.0

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

func (*GetMetricRequest) Reset

func (x *GetMetricRequest) Reset()

func (*GetMetricRequest) String

func (x *GetMetricRequest) String() string

type GetMetricResponse

type GetMetricResponse struct {
	Metric *data_receiver.Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricResponse) Descriptor deprecated

func (*GetMetricResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMetricResponse.ProtoReflect.Descriptor instead.

func (*GetMetricResponse) GetMetric

func (x *GetMetricResponse) GetMetric() *data_receiver.Metric

func (*GetMetricResponse) ProtoMessage

func (*GetMetricResponse) ProtoMessage()

func (*GetMetricResponse) ProtoReflect added in v1.4.0

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

func (*GetMetricResponse) Reset

func (x *GetMetricResponse) Reset()

func (*GetMetricResponse) String

func (x *GetMetricResponse) String() string

type MockDataRegistryServiceClient

type MockDataRegistryServiceClient struct {
	mock.Mock
}

MockDataRegistryServiceClient is an autogenerated mock type for the DataRegistryServiceClient type

func NewMockDataRegistryServiceClient added in v1.4.0

func NewMockDataRegistryServiceClient(t testing.TB) *MockDataRegistryServiceClient

NewMockDataRegistryServiceClient creates a new instance of MockDataRegistryServiceClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockDataRegistryServiceClient) CreateOrUpdateMetric

CreateOrUpdateMetric provides a mock function with given fields: ctx, in, opts

func (*MockDataRegistryServiceClient) CreateOrUpdateMetrics

CreateOrUpdateMetrics provides a mock function with given fields: ctx, opts

func (*MockDataRegistryServiceClient) EXPECT added in v1.4.0

func (*MockDataRegistryServiceClient) GetMetric

GetMetric provides a mock function with given fields: ctx, in, opts

func (*MockDataRegistryServiceClient) RegisterDefinition

func (_m *MockDataRegistryServiceClient) RegisterDefinition(ctx context.Context, in *Definition, opts ...grpc.CallOption) (*DefinitionResponse, error)

RegisterDefinition provides a mock function with given fields: ctx, in, opts

func (*MockDataRegistryServiceClient) UpdateDefinition

UpdateDefinition provides a mock function with given fields: ctx, in, opts

func (*MockDataRegistryServiceClient) UpdateMetric

UpdateMetric provides a mock function with given fields: ctx, in, opts

type MockDataRegistryServiceClient_CreateOrUpdateMetric_Call added in v1.4.0

type MockDataRegistryServiceClient_CreateOrUpdateMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_CreateOrUpdateMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateMetric'

func (*MockDataRegistryServiceClient_CreateOrUpdateMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_CreateOrUpdateMetric_Call) Run added in v1.4.0

type MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call added in v1.4.0

type MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateMetrics'

func (*MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call) Run added in v1.4.0

type MockDataRegistryServiceClient_Expecter added in v1.4.0

type MockDataRegistryServiceClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDataRegistryServiceClient_Expecter) CreateOrUpdateMetric added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) CreateOrUpdateMetric(ctx interface{}, in interface{}, opts ...interface{}) *MockDataRegistryServiceClient_CreateOrUpdateMetric_Call

CreateOrUpdateMetric is a helper method to define mock.On call

  • ctx context.Context
  • in *RegisterMetricRequest
  • opts ...grpc.CallOption

func (*MockDataRegistryServiceClient_Expecter) CreateOrUpdateMetrics added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) CreateOrUpdateMetrics(ctx interface{}, opts ...interface{}) *MockDataRegistryServiceClient_CreateOrUpdateMetrics_Call

CreateOrUpdateMetrics is a helper method to define mock.On call

  • ctx context.Context
  • opts ...grpc.CallOption

func (*MockDataRegistryServiceClient_Expecter) GetMetric added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) GetMetric(ctx interface{}, in interface{}, opts ...interface{}) *MockDataRegistryServiceClient_GetMetric_Call

GetMetric is a helper method to define mock.On call

  • ctx context.Context
  • in *GetMetricRequest
  • opts ...grpc.CallOption

func (*MockDataRegistryServiceClient_Expecter) RegisterDefinition added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) RegisterDefinition(ctx interface{}, in interface{}, opts ...interface{}) *MockDataRegistryServiceClient_RegisterDefinition_Call

RegisterDefinition is a helper method to define mock.On call

  • ctx context.Context
  • in *Definition
  • opts ...grpc.CallOption

func (*MockDataRegistryServiceClient_Expecter) UpdateDefinition added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) UpdateDefinition(ctx interface{}, in interface{}, opts ...interface{}) *MockDataRegistryServiceClient_UpdateDefinition_Call

UpdateDefinition is a helper method to define mock.On call

  • ctx context.Context
  • in *DefinitionUpdate
  • opts ...grpc.CallOption

func (*MockDataRegistryServiceClient_Expecter) UpdateMetric added in v1.4.0

func (_e *MockDataRegistryServiceClient_Expecter) UpdateMetric(ctx interface{}, in interface{}, opts ...interface{}) *MockDataRegistryServiceClient_UpdateMetric_Call

UpdateMetric is a helper method to define mock.On call

  • ctx context.Context
  • in *UpdateMetricRequest
  • opts ...grpc.CallOption

type MockDataRegistryServiceClient_GetMetric_Call added in v1.4.0

type MockDataRegistryServiceClient_GetMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_GetMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetric'

func (*MockDataRegistryServiceClient_GetMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_GetMetric_Call) Run added in v1.4.0

type MockDataRegistryServiceClient_RegisterDefinition_Call added in v1.4.0

type MockDataRegistryServiceClient_RegisterDefinition_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_RegisterDefinition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterDefinition'

func (*MockDataRegistryServiceClient_RegisterDefinition_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_RegisterDefinition_Call) Run added in v1.4.0

type MockDataRegistryServiceClient_UpdateDefinition_Call added in v1.4.0

type MockDataRegistryServiceClient_UpdateDefinition_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_UpdateDefinition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDefinition'

func (*MockDataRegistryServiceClient_UpdateDefinition_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_UpdateDefinition_Call) Run added in v1.4.0

type MockDataRegistryServiceClient_UpdateMetric_Call added in v1.4.0

type MockDataRegistryServiceClient_UpdateMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceClient_UpdateMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMetric'

func (*MockDataRegistryServiceClient_UpdateMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceClient_UpdateMetric_Call) Run added in v1.4.0

type MockDataRegistryServiceServer

type MockDataRegistryServiceServer struct {
	mock.Mock
}

MockDataRegistryServiceServer is an autogenerated mock type for the DataRegistryServiceServer type

func NewMockDataRegistryServiceServer added in v1.4.0

func NewMockDataRegistryServiceServer(t testing.TB) *MockDataRegistryServiceServer

NewMockDataRegistryServiceServer creates a new instance of MockDataRegistryServiceServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockDataRegistryServiceServer) CreateOrUpdateMetric

CreateOrUpdateMetric provides a mock function with given fields: _a0, _a1

func (*MockDataRegistryServiceServer) CreateOrUpdateMetrics

CreateOrUpdateMetrics provides a mock function with given fields: _a0

func (*MockDataRegistryServiceServer) EXPECT added in v1.4.0

func (*MockDataRegistryServiceServer) GetMetric

GetMetric provides a mock function with given fields: _a0, _a1

func (*MockDataRegistryServiceServer) RegisterDefinition

func (_m *MockDataRegistryServiceServer) RegisterDefinition(_a0 context.Context, _a1 *Definition) (*DefinitionResponse, error)

RegisterDefinition provides a mock function with given fields: _a0, _a1

func (*MockDataRegistryServiceServer) UpdateDefinition

UpdateDefinition provides a mock function with given fields: _a0, _a1

func (*MockDataRegistryServiceServer) UpdateMetric

UpdateMetric provides a mock function with given fields: _a0, _a1

type MockDataRegistryServiceServer_CreateOrUpdateMetric_Call added in v1.4.0

type MockDataRegistryServiceServer_CreateOrUpdateMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_CreateOrUpdateMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateMetric'

func (*MockDataRegistryServiceServer_CreateOrUpdateMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_CreateOrUpdateMetric_Call) Run added in v1.4.0

type MockDataRegistryServiceServer_CreateOrUpdateMetrics_Call added in v1.4.0

type MockDataRegistryServiceServer_CreateOrUpdateMetrics_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_CreateOrUpdateMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateMetrics'

func (*MockDataRegistryServiceServer_CreateOrUpdateMetrics_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_CreateOrUpdateMetrics_Call) Run added in v1.4.0

type MockDataRegistryServiceServer_Expecter added in v1.4.0

type MockDataRegistryServiceServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDataRegistryServiceServer_Expecter) CreateOrUpdateMetric added in v1.4.0

func (_e *MockDataRegistryServiceServer_Expecter) CreateOrUpdateMetric(_a0 interface{}, _a1 interface{}) *MockDataRegistryServiceServer_CreateOrUpdateMetric_Call

CreateOrUpdateMetric is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *RegisterMetricRequest

func (*MockDataRegistryServiceServer_Expecter) CreateOrUpdateMetrics added in v1.4.0

CreateOrUpdateMetrics is a helper method to define mock.On call

  • _a0 DataRegistryService_CreateOrUpdateMetricsServer

func (*MockDataRegistryServiceServer_Expecter) GetMetric added in v1.4.0

func (_e *MockDataRegistryServiceServer_Expecter) GetMetric(_a0 interface{}, _a1 interface{}) *MockDataRegistryServiceServer_GetMetric_Call

GetMetric is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *GetMetricRequest

func (*MockDataRegistryServiceServer_Expecter) RegisterDefinition added in v1.4.0

func (_e *MockDataRegistryServiceServer_Expecter) RegisterDefinition(_a0 interface{}, _a1 interface{}) *MockDataRegistryServiceServer_RegisterDefinition_Call

RegisterDefinition is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *Definition

func (*MockDataRegistryServiceServer_Expecter) UpdateDefinition added in v1.4.0

func (_e *MockDataRegistryServiceServer_Expecter) UpdateDefinition(_a0 interface{}, _a1 interface{}) *MockDataRegistryServiceServer_UpdateDefinition_Call

UpdateDefinition is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *DefinitionUpdate

func (*MockDataRegistryServiceServer_Expecter) UpdateMetric added in v1.4.0

func (_e *MockDataRegistryServiceServer_Expecter) UpdateMetric(_a0 interface{}, _a1 interface{}) *MockDataRegistryServiceServer_UpdateMetric_Call

UpdateMetric is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *UpdateMetricRequest

type MockDataRegistryServiceServer_GetMetric_Call added in v1.4.0

type MockDataRegistryServiceServer_GetMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_GetMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetric'

func (*MockDataRegistryServiceServer_GetMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_GetMetric_Call) Run added in v1.4.0

type MockDataRegistryServiceServer_RegisterDefinition_Call added in v1.4.0

type MockDataRegistryServiceServer_RegisterDefinition_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_RegisterDefinition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterDefinition'

func (*MockDataRegistryServiceServer_RegisterDefinition_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_RegisterDefinition_Call) Run added in v1.4.0

type MockDataRegistryServiceServer_UpdateDefinition_Call added in v1.4.0

type MockDataRegistryServiceServer_UpdateDefinition_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_UpdateDefinition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDefinition'

func (*MockDataRegistryServiceServer_UpdateDefinition_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_UpdateDefinition_Call) Run added in v1.4.0

type MockDataRegistryServiceServer_UpdateMetric_Call added in v1.4.0

type MockDataRegistryServiceServer_UpdateMetric_Call struct {
	*mock.Call
}

MockDataRegistryServiceServer_UpdateMetric_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMetric'

func (*MockDataRegistryServiceServer_UpdateMetric_Call) Return added in v1.4.0

func (*MockDataRegistryServiceServer_UpdateMetric_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient

type MockDataRegistryService_CreateOrUpdateMetricsClient struct {
	mock.Mock
}

MockDataRegistryService_CreateOrUpdateMetricsClient is an autogenerated mock type for the DataRegistryService_CreateOrUpdateMetricsClient type

func NewMockDataRegistryService_CreateOrUpdateMetricsClient added in v1.4.0

func NewMockDataRegistryService_CreateOrUpdateMetricsClient(t testing.TB) *MockDataRegistryService_CreateOrUpdateMetricsClient

NewMockDataRegistryService_CreateOrUpdateMetricsClient creates a new instance of MockDataRegistryService_CreateOrUpdateMetricsClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) CloseAndRecv

CloseAndRecv provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) CloseSend

CloseSend provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) Context

Context provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) EXPECT added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) Header

Header provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) RecvMsg

RecvMsg provides a mock function with given fields: m

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) Send

Send provides a mock function with given fields: _a0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) SendMsg

SendMsg provides a mock function with given fields: m

func (*MockDataRegistryService_CreateOrUpdateMetricsClient) Trailer

Trailer provides a mock function with given fields:

type MockDataRegistryService_CreateOrUpdateMetricsClient_CloseAndRecv_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_CloseAndRecv_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_CloseAndRecv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseAndRecv'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_CloseAndRecv_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_CloseAndRecv_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_CloseSend_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_CloseSend_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_CloseSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseSend'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_CloseSend_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_CloseSend_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Context_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Context_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Context_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Context_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) CloseAndRecv added in v1.4.0

CloseAndRecv is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) CloseSend added in v1.4.0

CloseSend is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) Context added in v1.4.0

Context is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) Header added in v1.4.0

Header is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) RecvMsg added in v1.4.0

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) Send added in v1.4.0

Send is a helper method to define mock.On call

  • _a0 *RegisterMetricRequest

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) SendMsg added in v1.4.0

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Expecter) Trailer added in v1.4.0

Trailer is a helper method to define mock.On call

type MockDataRegistryService_CreateOrUpdateMetricsClient_Header_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Header_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Header_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Header_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_RecvMsg_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_RecvMsg_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_RecvMsg_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_RecvMsg_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_SendMsg_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_SendMsg_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_SendMsg_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_SendMsg_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Send_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Send_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Send_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Send_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Trailer_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsClient_Trailer_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsClient_Trailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trailer'

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Trailer_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsClient_Trailer_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer

type MockDataRegistryService_CreateOrUpdateMetricsServer struct {
	mock.Mock
}

MockDataRegistryService_CreateOrUpdateMetricsServer is an autogenerated mock type for the DataRegistryService_CreateOrUpdateMetricsServer type

func NewMockDataRegistryService_CreateOrUpdateMetricsServer added in v1.4.0

func NewMockDataRegistryService_CreateOrUpdateMetricsServer(t testing.TB) *MockDataRegistryService_CreateOrUpdateMetricsServer

NewMockDataRegistryService_CreateOrUpdateMetricsServer creates a new instance of MockDataRegistryService_CreateOrUpdateMetricsServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) Context

Context provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) EXPECT added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) Recv

Recv provides a mock function with given fields:

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) RecvMsg

RecvMsg provides a mock function with given fields: m

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) SendAndClose

SendAndClose provides a mock function with given fields: _a0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) SendMsg

SendMsg provides a mock function with given fields: m

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer) SetTrailer

SetTrailer provides a mock function with given fields: _a0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Context_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Context_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Context_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Context_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) Context added in v1.4.0

Context is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) Recv added in v1.4.0

Recv is a helper method to define mock.On call

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) RecvMsg added in v1.4.0

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) SendAndClose added in v1.4.0

SendAndClose is a helper method to define mock.On call

  • _a0 *RegisterMetricsResponse

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) SendHeader added in v1.4.0

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) SendMsg added in v1.4.0

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) SetHeader added in v1.4.0

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Expecter) SetTrailer added in v1.4.0

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockDataRegistryService_CreateOrUpdateMetricsServer_RecvMsg_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_RecvMsg_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_RecvMsg_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_RecvMsg_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Recv_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_Recv_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_Recv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recv'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Recv_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_Recv_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendAndClose_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendAndClose_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_SendAndClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendAndClose'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendAndClose_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendAndClose_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendHeader_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendHeader_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_SendHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHeader'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendHeader_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendHeader_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendMsg_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SendMsg_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendMsg_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SendMsg_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SetHeader_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SetHeader_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_SetHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeader'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SetHeader_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SetHeader_Call) Run added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SetTrailer_Call added in v1.4.0

type MockDataRegistryService_CreateOrUpdateMetricsServer_SetTrailer_Call struct {
	*mock.Call
}

MockDataRegistryService_CreateOrUpdateMetricsServer_SetTrailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTrailer'

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SetTrailer_Call) Return added in v1.4.0

func (*MockDataRegistryService_CreateOrUpdateMetricsServer_SetTrailer_Call) Run added in v1.4.0

type RegisterMetricRequest

type RegisterMetricRequest struct {
	Metric     *data_receiver.MetricWrapper `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	UpdateMode UpdateMode                   `protobuf:"varint,2,opt,name=update_mode,json=updateMode,proto3,enum=zenoss.cloud.UpdateMode" json:"update_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterMetricRequest) Descriptor deprecated

func (*RegisterMetricRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterMetricRequest.ProtoReflect.Descriptor instead.

func (*RegisterMetricRequest) GetMetric

func (*RegisterMetricRequest) GetUpdateMode

func (x *RegisterMetricRequest) GetUpdateMode() UpdateMode

func (*RegisterMetricRequest) ProtoMessage

func (*RegisterMetricRequest) ProtoMessage()

func (*RegisterMetricRequest) ProtoReflect added in v1.4.0

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

func (*RegisterMetricRequest) Reset

func (x *RegisterMetricRequest) Reset()

func (*RegisterMetricRequest) String

func (x *RegisterMetricRequest) String() string

type RegisterMetricResponse

type RegisterMetricResponse struct {
	InstanceId   string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"`
	DefinitionId string `protobuf:"bytes,2,opt,name=definitionId,proto3" json:"definitionId,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterMetricResponse) Descriptor deprecated

func (*RegisterMetricResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterMetricResponse.ProtoReflect.Descriptor instead.

func (*RegisterMetricResponse) GetDefinitionId

func (x *RegisterMetricResponse) GetDefinitionId() string

func (*RegisterMetricResponse) GetInstanceId

func (x *RegisterMetricResponse) GetInstanceId() string

func (*RegisterMetricResponse) GetName

func (x *RegisterMetricResponse) GetName() string

func (*RegisterMetricResponse) ProtoMessage

func (*RegisterMetricResponse) ProtoMessage()

func (*RegisterMetricResponse) ProtoReflect added in v1.4.0

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

func (*RegisterMetricResponse) Reset

func (x *RegisterMetricResponse) Reset()

func (*RegisterMetricResponse) String

func (x *RegisterMetricResponse) String() string

type RegisterMetricVerboseResponse

type RegisterMetricVerboseResponse struct {
	Response *RegisterMetricResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	Error    string                  `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterMetricVerboseResponse) Descriptor deprecated

func (*RegisterMetricVerboseResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterMetricVerboseResponse.ProtoReflect.Descriptor instead.

func (*RegisterMetricVerboseResponse) GetError

func (x *RegisterMetricVerboseResponse) GetError() string

func (*RegisterMetricVerboseResponse) GetResponse

func (*RegisterMetricVerboseResponse) ProtoMessage

func (*RegisterMetricVerboseResponse) ProtoMessage()

func (*RegisterMetricVerboseResponse) ProtoReflect added in v1.4.0

func (*RegisterMetricVerboseResponse) Reset

func (x *RegisterMetricVerboseResponse) Reset()

func (*RegisterMetricVerboseResponse) String

type RegisterMetricsResponse

type RegisterMetricsResponse struct {
	Responses []*RegisterMetricVerboseResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterMetricsResponse) Descriptor deprecated

func (*RegisterMetricsResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterMetricsResponse.ProtoReflect.Descriptor instead.

func (*RegisterMetricsResponse) GetResponses

func (*RegisterMetricsResponse) ProtoMessage

func (*RegisterMetricsResponse) ProtoMessage()

func (*RegisterMetricsResponse) ProtoReflect added in v1.4.0

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

func (*RegisterMetricsResponse) Reset

func (x *RegisterMetricsResponse) Reset()

func (*RegisterMetricsResponse) String

func (x *RegisterMetricsResponse) String() string

type UnimplementedDataRegistryServiceServer

type UnimplementedDataRegistryServiceServer struct {
}

UnimplementedDataRegistryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDataRegistryServiceServer) CreateOrUpdateMetric

func (*UnimplementedDataRegistryServiceServer) CreateOrUpdateMetrics

func (*UnimplementedDataRegistryServiceServer) GetMetric

func (*UnimplementedDataRegistryServiceServer) RegisterDefinition

func (*UnimplementedDataRegistryServiceServer) UpdateDefinition

func (*UnimplementedDataRegistryServiceServer) UpdateMetric

type UpdateMetricRequest

type UpdateMetricRequest struct {
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"`
	// Metadata for the datapoint
	MetadataFields *structpb.Struct `protobuf:"bytes,2,opt,name=metadataFields,proto3" json:"metadataFields,omitempty"`
	UpdateMode     UpdateMode       `protobuf:"varint,3,opt,name=update_mode,json=updateMode,proto3,enum=zenoss.cloud.UpdateMode" json:"update_mode,omitempty"`
	Timestamp      int64            `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMetricRequest) Descriptor deprecated

func (*UpdateMetricRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMetricRequest.ProtoReflect.Descriptor instead.

func (*UpdateMetricRequest) GetInstanceId

func (x *UpdateMetricRequest) GetInstanceId() string

func (*UpdateMetricRequest) GetMetadataFields

func (x *UpdateMetricRequest) GetMetadataFields() *structpb.Struct

func (*UpdateMetricRequest) GetTimestamp

func (x *UpdateMetricRequest) GetTimestamp() int64

func (*UpdateMetricRequest) GetUpdateMode

func (x *UpdateMetricRequest) GetUpdateMode() UpdateMode

func (*UpdateMetricRequest) ProtoMessage

func (*UpdateMetricRequest) ProtoMessage()

func (*UpdateMetricRequest) ProtoReflect added in v1.4.0

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

func (*UpdateMetricRequest) Reset

func (x *UpdateMetricRequest) Reset()

func (*UpdateMetricRequest) String

func (x *UpdateMetricRequest) String() string

type UpdateMode

type UpdateMode int32
const (
	UpdateMode_MERGE      UpdateMode = 0
	UpdateMode_REPLACE    UpdateMode = 1
	UpdateMode_REPLACEALL UpdateMode = 2
)

func (UpdateMode) Descriptor added in v1.4.0

func (UpdateMode) Descriptor() protoreflect.EnumDescriptor

func (UpdateMode) Enum added in v1.4.0

func (x UpdateMode) Enum() *UpdateMode

func (UpdateMode) EnumDescriptor deprecated

func (UpdateMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateMode.Descriptor instead.

func (UpdateMode) Number added in v1.4.0

func (x UpdateMode) Number() protoreflect.EnumNumber

func (UpdateMode) String

func (x UpdateMode) String() string

func (UpdateMode) Type added in v1.4.0

Jump to

Keyboard shortcuts

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