service

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnalyticsCache = utils.NewCache()

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateDataSource(datasource *model.DSInput) (*model.DSResponse, error)
	CreateDashboard(dashboard *model.CreateDBInput) (*model.ListDashboardResponse, error)
	UpdateDataSource(datasource model.DSInput) (*model.DSResponse, error)
	UpdateDashBoard(projectID string, dashboard model.UpdateDBInput, chaosQueryUpdate bool) (string, error)
	UpdatePanel(panels []*model.Panel) (string, error)
	DeleteDashboard(projectID string, dbID *string) (bool, error)
	DeleteDataSource(projectID string, input model.DeleteDSInput) (bool, error)
	ListHeatmapData(workflowId string, projectId string, year int) ([]*model.HeatmapDataResponse, error)
	ListWorkflowStats(projectID string, filter model.TimeFrequency, showWorkflowRuns bool) ([]*model.WorkflowStatsResponse, error)
	GetWorkflowRunStats(workflowRunStatsRequest model.WorkflowRunStatsRequest) (*model.WorkflowRunStatsResponse, error)
	QueryListDataSource(projectID string) ([]*model.DSResponse, error)
	GetPrometheusData(promInput *model.PrometheusDataRequest) (*model.PrometheusDataResponse, map[string]*model.MetricsPromResponse, error)
	GetLabelNamesAndValues(promSeriesInput *model.PromSeriesInput) (*model.PromSeriesResponse, error)
	GetPromSeriesList(promSeriesListInput *model.DsDetails) (*model.PromSeriesListResponse, error)
	QueryListDashboard(projectID string, clusterID *string, dbID *string) ([]*model.ListDashboardResponse, error)
	ListPortalDashboardData(projectID string, hubname string) ([]*model.PortalDashboardDataResponse, error)
	DashboardViewer(viewID string, dashboardID *string, promQueries []*model.PromQueryInput, dashboardQueryMap []*model.QueryMapForPanelGroup, dataVariables model.DataVars, r store.StateData)
	UpdateViewedAt(dashboardID *string, viewID string)
}

Service is the interface for the analytics service

func NewService

func NewService(analyticsOperator *dbSchemaAnalytics.Operator, chaosWorkFlowOperator *dbSchemaWorkflow.Operator, clusterService cluster.Service) Service

NewService returns a new instance of the analytics service

Jump to

Keyboard shortcuts

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