Documentation ¶
Index ¶
- func BuildDetailedCycleTimeQuery(weeks []string, team *int64) string
- type AggregatedCycleTimeStatistics
- type AggregatedStatistics
- type AggregatedStatisticsQuery
- func BuildCodingTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildCycleTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildDeployTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildHandoverQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildMRSizeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildPickupTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildReviewDepthQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- func BuildTimeToMergeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
- type AggregatedValues
- type AggregatedValuesQuery
- func BuildCodeChangeQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildCommitsQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildDeployFrequencyQuery(weeks []string) AggregatedValuesQuery
- func BuildMRsMergedWithoutReviewQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildMRsOpenedQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildMergeFrequencyQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildReviewQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildReviewTimeQuery(weeks []string, team *int64) AggregatedValuesQuery
- func BuildSmallMRsQuery(weeks []string, team *int64) AggregatedValuesQuery
- type CycleTimeStatistics
- type DB
- func (d DB) GetAggregatedStatistics(ctx context.Context, query AggregatedStatisticsQuery, namespace string, ...) (*AggregatedStatistics, error)
- func (d DB) GetAggregatedValues(ctx context.Context, query AggregatedValuesQuery, namespace string, ...) (*AggregatedValues, error)
- func (d DB) GetDetailedCycleTime(ctx context.Context, query string, namespace string, repository string, ...) (*AggregatedCycleTimeStatistics, error)
- func (d DB) GetTeams(ctx context.Context) ([]Team, error)
- type OverallWeeklyData
- type Repo
- type Statistics
- type Team
- type TenantRepo
- type Value
- type WeeklyCycleTimeStatistics
- type WeeklyData
- type WeeklyStatisticsData
- type WeeklyValueData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatedCycleTimeStatistics ¶
type AggregatedCycleTimeStatistics = OverallWeeklyData[CycleTimeStatistics]
type AggregatedStatistics ¶
type AggregatedStatistics = OverallWeeklyData[Statistics]
func ScanAggregatedStatisticsRows ¶
func ScanAggregatedStatisticsRows(rows *sql.Rows, weeks []string) (*AggregatedStatistics, error)
type AggregatedStatisticsQuery ¶
type AggregatedStatisticsQuery = string
func BuildCodingTimeQuery ¶
func BuildCodingTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildCycleTimeQuery ¶
func BuildCycleTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildDeployTimeQuery ¶
func BuildDeployTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildHandoverQuery ¶
func BuildHandoverQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildMRSizeQuery ¶
func BuildMRSizeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildPickupTimeQuery ¶
func BuildPickupTimeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildReviewDepthQuery ¶
func BuildReviewDepthQuery(weeks []string, team *int64) AggregatedStatisticsQuery
func BuildTimeToMergeQuery ¶
func BuildTimeToMergeQuery(weeks []string, team *int64) AggregatedStatisticsQuery
type AggregatedValues ¶
type AggregatedValues = OverallWeeklyData[Value]
type AggregatedValuesQuery ¶
type AggregatedValuesQuery = string
func BuildCodeChangeQuery ¶
func BuildCodeChangeQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildCommitsQuery ¶
func BuildCommitsQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildDeployFrequencyQuery ¶
func BuildDeployFrequencyQuery(weeks []string) AggregatedValuesQuery
func BuildMRsMergedWithoutReviewQuery ¶
func BuildMRsMergedWithoutReviewQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildMRsOpenedQuery ¶
func BuildMRsOpenedQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildMergeFrequencyQuery ¶
func BuildMergeFrequencyQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildReviewQuery ¶
func BuildReviewQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildReviewTimeQuery ¶
func BuildReviewTimeQuery(weeks []string, team *int64) AggregatedValuesQuery
func BuildSmallMRsQuery ¶
func BuildSmallMRsQuery(weeks []string, team *int64) AggregatedValuesQuery
type CycleTimeStatistics ¶
type CycleTimeStatistics struct { CodingTime Statistics `json:"coding_time"` PickupTime Statistics `json:"pickup_time"` ReviewTime Statistics `json:"review_time"` DeployTime Statistics `json:"deploy_time"` }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (DB) GetAggregatedStatistics ¶
func (d DB) GetAggregatedStatistics(ctx context.Context, query AggregatedStatisticsQuery, namespace string, repository string, weeks []string, team *int64) (*AggregatedStatistics, error)
func (DB) GetAggregatedValues ¶
func (d DB) GetAggregatedValues(ctx context.Context, query AggregatedValuesQuery, namespace string, repository string, weeks []string, team *int64) (*AggregatedValues, error)
func (DB) GetDetailedCycleTime ¶
type OverallWeeklyData ¶
type OverallWeeklyData[T any] struct { Overall T `json:"overall"` Weekly []WeeklyData[T] `json:"weekly"` }
type Repo ¶
type Statistics ¶
type TenantRepo ¶
func GetTenantRepo ¶
type WeeklyCycleTimeStatistics ¶
type WeeklyCycleTimeStatistics = WeeklyData[CycleTimeStatistics]
type WeeklyData ¶
type WeeklyStatisticsData ¶
type WeeklyStatisticsData = WeeklyData[Statistics]
type WeeklyValueData ¶
type WeeklyValueData = WeeklyData[Value]
Source Files ¶
- aggregated_statistics.go
- aggregated_values.go
- code_change.go
- coding_time.go
- commits.go
- cycle_time.go
- datasets.go
- db.go
- deploy_freq.go
- deploy_time.go
- detailed_cycle_time.go
- handover.go
- merge_freq.go
- mr_merged_wo_review.go
- mr_pickup_time.go
- mr_size.go
- opened.go
- repos.go
- review.go
- review_depth.go
- review_time.go
- small_mrs.go
- teams.go
- time_to_merge.go
Click to show internal directories.
Click to hide internal directories.