metrics

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package metrics contains methods that are responsible for mapping responses to metrics that can be sent to BigQuery.

Package metrics contains methods that are responsible for mapping responses to metrics that can be sent to BigQuery.

Package metrics contains methods that are responsible for mapping responses to metrics that can be sent to BigQuery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueAggregatedMetric added in v0.3.0

type IssueAggregatedMetric struct {
	Repository     string
	Count          int
	CollectionTime time.Time
}

func GetIssueAggregatedMetrics added in v0.3.0

func GetIssueAggregatedMetrics(org string, repo string) (IssueAggregatedMetric, error)

func (*IssueAggregatedMetric) Save added in v0.3.0

type IssueMetric

type IssueMetric struct {
	Repository     string
	Number         int
	Title          string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Labels         []string
	Author         string
	State          string
	CollectionTime time.Time
}

IssueMetric is a struct that implements the ValueSaver interface for saving to BigQuery

func GetIssueMetrics

func GetIssueMetrics(org string, repo string) ([]IssueMetric, error)

func (*IssueMetric) Save

func (i *IssueMetric) Save() (map[string]bigquery.Value, string, error)

type LastRunMetric added in v0.2.0

type LastRunMetric struct {
	LastRunTime    time.Time
	CollectionTime time.Time
}

LastRunMetric is a struct that implements the ValueSaver interface for saving to BigQuery

func (*LastRunMetric) Save added in v0.2.0

func (i *LastRunMetric) Save() (map[string]bigquery.Value, string, error)

type PullRequestAggregatedMetric added in v0.3.0

type PullRequestAggregatedMetric struct {
	Repository     string
	Count          int
	CollectionTime time.Time
}

func GetPullRequestAggregatedMetrics added in v0.3.0

func GetPullRequestAggregatedMetrics(org string, repo string) (PullRequestAggregatedMetric, error)

func (*PullRequestAggregatedMetric) Save added in v0.3.0

type PullRequestMetric

type PullRequestMetric struct {
	Repository     string
	Number         int
	Title          string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Labels         []string
	Author         string
	State          string
	Merged         bool
	CollectionTime time.Time
}

PullRequestMetric is a struct that implements the ValueSaver interface for saving to BigQuery

func GetPullRequestMetrics

func GetPullRequestMetrics(org string, repo string) ([]PullRequestMetric, error)

func (*PullRequestMetric) Save

func (i *PullRequestMetric) Save() (map[string]bigquery.Value, string, error)

type ReleaseMetric

type ReleaseMetric struct {
	Repository     string
	Name           string
	PublishedAt    time.Time
	CollectionTime time.Time
}

ReleaseMetric is a struct that implements the ValueSaver interface for saving to BigQuery

func GetReleaseMetrics

func GetReleaseMetrics(org string, repo string) ([]ReleaseMetric, error)

func (*ReleaseMetric) Save

func (i *ReleaseMetric) Save() (map[string]bigquery.Value, string, error)

Jump to

Keyboard shortcuts

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