mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
package savedview
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
v3 "github.com/hanzoai/o11y/pkg/query-service/model/v3"
|
|
"github.com/hanzoai/o11y/pkg/statsreporter"
|
|
"github.com/hanzoai/o11y/pkg/valuer"
|
|
)
|
|
|
|
type Module interface {
|
|
GetViewsForFilters(ctx context.Context, orgID string, sourcePage string, name string, category string) ([]*v3.SavedView, error)
|
|
|
|
CreateView(ctx context.Context, orgID string, view v3.SavedView) (valuer.UUID, error)
|
|
|
|
GetView(ctx context.Context, orgID string, uuid valuer.UUID) (*v3.SavedView, error)
|
|
|
|
UpdateView(ctx context.Context, orgID string, uuid valuer.UUID, view v3.SavedView) error
|
|
|
|
DeleteView(ctx context.Context, orgID string, uuid valuer.UUID) error
|
|
|
|
statsreporter.StatsCollector
|
|
}
|
|
|
|
type Handler interface {
|
|
// Creates the saved view
|
|
Create(http.ResponseWriter, *http.Request)
|
|
|
|
// Gets the saved view
|
|
Get(http.ResponseWriter, *http.Request)
|
|
|
|
// Updates the saved view
|
|
Update(http.ResponseWriter, *http.Request)
|
|
|
|
// Deletes the saved view
|
|
Delete(http.ResponseWriter, *http.Request)
|
|
|
|
// Lists the saved views
|
|
List(http.ResponseWriter, *http.Request)
|
|
}
|