mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
29 lines
805 B
Go
29 lines
805 B
Go
|
|
package dashboard
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
"github.com/SigNoz/signoz/pkg/types"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Module interface {
|
||
|
|
Create(ctx context.Context, orgID string, email string, data map[string]interface{}) (*types.Dashboard, error)
|
||
|
|
|
||
|
|
List(ctx context.Context, orgID string) ([]*types.Dashboard, error)
|
||
|
|
|
||
|
|
Delete(ctx context.Context, orgID, uuid string) error
|
||
|
|
|
||
|
|
Get(ctx context.Context, orgID, uuid string) (*types.Dashboard, error)
|
||
|
|
|
||
|
|
GetByMetricNames(ctx context.Context, orgID string, metricNames []string) (map[string][]map[string]string, error)
|
||
|
|
|
||
|
|
Update(ctx context.Context, orgID, userEmail, uuid string, data map[string]interface{}) (*types.Dashboard, error)
|
||
|
|
|
||
|
|
LockUnlock(ctx context.Context, orgID, uuid string, lock bool) error
|
||
|
|
}
|
||
|
|
|
||
|
|
type Handler interface {
|
||
|
|
Delete(http.ResponseWriter, *http.Request)
|
||
|
|
}
|