metrics

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var DatadogCmd = &cobra.Command{
	Hidden: true,
	Use:    "datadog",
	Short:  "Datadog operational metrics",
	Long: `Generate operational metrics from Datadog.

Required:
  em metrics datadog config`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

DatadogCmd is the parent command for all Datadog metrics.

View Source
var GithubCmd = &cobra.Command{
	Use:   "github",
	Short: "GitHub metrics",
	Long: `Generate DORA metrics from GitHub Actions.

Required:
  em metrics github config`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

GithubCmd is the parent command for all GitHub metrics.

View Source
var JiraCmd = &cobra.Command{
	Use:   "jira",
	Short: "JIRA metrics",
	Long: `Generate metrics from JIRA Cloud.

Required:
  em metrics jira config`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

JiraCmd is the parent command for all JIRA metrics.

View Source
var MetricsCmd = &cobra.Command{
	Use:   "metrics",
	Short: "Generate engineering metrics and reports",
	Long:  `Generate engineering metrics and reports from JIRA, GitHub, and Snyk.`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		if mockUpstreamFlag {
			return startMockUpstream()
		}
		return nil
	},
	PersistentPostRunE: func(cmd *cobra.Command, args []string) error {
		if mockUpstreamFlag {
			stopMockUpstream()
		}
		return nil
	},
}

MetricsCmd represents the metrics command

View Source
var SnykCmd = &cobra.Command{
	Use:   "snyk",
	Short: "Snyk security metrics",
	Long: `Generate security metrics from Snyk.

Required:
  em metrics snyk config`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

SnykCmd is the parent command for all Snyk metrics.

Functions

func EnsureTeamSelected

func EnsureTeamSelected(cmd *cobra.Command, args []string) error

EnsureTeamSelected checks that at least one team exists and one is selected. If not, it runs the select-team flow inline before returning.

Types

type EpicForecast

type EpicForecast struct {
	EpicKey        string
	EpicSummary    string
	TotalItems     int
	RemainingItems int
	CompletedItems int
	Progress       float64
	Forecast50     time.Time
	Forecast85     time.Time
	Forecast95     time.Time
	Days85         int
	Error          string
}

EpicForecast holds forecast results for a single epic.

Jump to

Keyboard shortcuts

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