Documentation ¶
Index ¶
- func NewLoggingService(logger *zap.Logger, underlying influxdb.NotebookService) *loggingService
- func NewMetricCollectingService(reg prometheus.Registerer, underlying influxdb.NotebookService, ...) *metricsService
- type Service
- func (s *Service) CreateNotebook(ctx context.Context, create *influxdb.NotebookReqBody) (*influxdb.Notebook, error)
- func (s *Service) DeleteNotebook(ctx context.Context, id platform.ID) error
- func (s *Service) GetNotebook(ctx context.Context, id platform.ID) (*influxdb.Notebook, error)
- func (s *Service) ListNotebooks(ctx context.Context, filter influxdb.NotebookListFilter) ([]*influxdb.Notebook, error)
- func (s *Service) UpdateNotebook(ctx context.Context, id platform.ID, update *influxdb.NotebookReqBody) (*influxdb.Notebook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingService ¶
func NewMetricCollectingService ¶
func NewMetricCollectingService(reg prometheus.Registerer, underlying influxdb.NotebookService, opts ...metric.ClientOptFn) *metricsService
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateNotebook ¶
func (s *Service) CreateNotebook(ctx context.Context, create *influxdb.NotebookReqBody) (*influxdb.Notebook, error)
CreateNotebook creates a notebook. Note that this and all "write" operations on the database need to use the Mutex lock, since sqlite can only handle 1 concurrent write operation at a time.
func (*Service) DeleteNotebook ¶
DeleteNotebook deletes a notebook.
func (*Service) GetNotebook ¶
func (*Service) ListNotebooks ¶
func (s *Service) ListNotebooks(ctx context.Context, filter influxdb.NotebookListFilter) ([]*influxdb.Notebook, error)
ListNotebooks lists notebooks matching the provided filter. Currently, only org_id is used in the filter. Future uses may support pagination via this filter as well.
Click to show internal directories.
Click to hide internal directories.