Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateData ¶
type AggregateData struct { Projects []*ProjectData `bson:"projects"` Pagination []Pagination `bson:"pagination"` TotalCount []TotalCount `bson:"totalCount"` }
type Pagination ¶
type Pagination struct {
TotalEntries int `bson:"totalEntries"`
}
type ProjectData ¶
type ProjectData struct { Workflows *WorkflowStat `bson:"workflows"` Agents *AgentStat `bson:"agents"` ProjectID string `bson:"_id"` }
type Service ¶
type Service interface {
GetUsageData(ctx context.Context, query model.UsageDataRequest) (*model.UsageDataResponse, error)
}
func NewService ¶
func NewService(clusterOperator *dbOperationsProject.Operator) Service
NewService returns a new instance of usage service
type TotalCount ¶
type TotalCount struct { Projects int `bson:"projects"` Agents *AgentStat `bson:"agents"` Workflows *WorkflowStat `bson:"workflows"` }
type WorkflowStat ¶
Click to show internal directories.
Click to hide internal directories.