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
Click to show internal directories.
Click to hide internal directories.