metrics

package
v0.0.0-...-f12f10f Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DeploymentFrequencyCommand = "deployment-frequency"
View Source
const (
	LeadTimeForChangesCommand = "ltc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	DeploymentFrequency *DeploymentFrequencyArgs
}

type Command

type Command interface {
	Run(CommandArgs) CommandReturnValues
	Name() string
}

func NewDeploymentFrequencyCmd

func NewDeploymentFrequencyCmd(client *client.AuthClient) Command

func NewLeadTimeForChangesCmd

func NewLeadTimeForChangesCmd(cli *client.AuthClient) Command

type CommandArgs

type CommandArgs interface{}

type CommandReturnValues

type CommandReturnValues interface{}

type DeploymentFrequency

type DeploymentFrequency struct {
	// contains filtered or unexported fields
}

DeploymentFrequency counts how many PR from the team (in the specified timeframe) reached master

func (*DeploymentFrequency) Name

func (d *DeploymentFrequency) Name() string

func (*DeploymentFrequency) Run

type DeploymentFrequencyArgs

type DeploymentFrequencyArgs struct {
	Ctx                context.Context
	Repositories       []string
	Owner              string
	MetricStartingDate time.Time
	Team               []string
}

type LTC

type LTC struct {
	// contains filtered or unexported fields
}

LTC lead time for changes: how long does it take to release changes to prod

func (*LTC) Name

func (l *LTC) Name() string

func (*LTC) Run

func (l *LTC) Run(args CommandArgs) CommandReturnValues

type LtcArgs

type LtcArgs struct {
	Ctx   context.Context
	Repos []string
}

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, owner, token string) (*Metrics, error)

func (*Metrics) Run

Jump to

Keyboard shortcuts

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