2022-05-03 15:26:32 +05:30
|
|
|
package dao
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2025-03-20 21:01:41 +05:30
|
|
|
"github.com/SigNoz/signoz/pkg/query-service/model"
|
|
|
|
|
"github.com/SigNoz/signoz/pkg/types"
|
2022-05-03 15:26:32 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ModelDao interface {
|
|
|
|
|
Queries
|
|
|
|
|
Mutations
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Queries interface {
|
2025-03-06 15:39:45 +05:30
|
|
|
GetApdexSettings(ctx context.Context, orgID string, services []string) ([]types.ApdexSettings, *model.ApiError)
|
2022-05-03 15:26:32 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Mutations interface {
|
2025-05-14 23:12:55 +05:30
|
|
|
UpdateUserRole(ctx context.Context, userId string, role types.Role) *model.ApiError
|
2025-03-06 15:39:45 +05:30
|
|
|
SetApdexSettings(ctx context.Context, orgID string, set *types.ApdexSettings) *model.ApiError
|
2022-05-03 15:26:32 +05:30
|
|
|
}
|