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
func GetIssueAggregatedMetrics ¶ added in v0.3.0
func GetIssueAggregatedMetrics(org string, repo string) (IssueAggregatedMetric, error)
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)
type LastRunMetric ¶ added in v0.2.0
LastRunMetric is a struct that implements the ValueSaver interface for saving to BigQuery
type PullRequestAggregatedMetric ¶ added in v0.3.0
func GetPullRequestAggregatedMetrics ¶ added in v0.3.0
func GetPullRequestAggregatedMetrics(org string, repo string) (PullRequestAggregatedMetric, error)
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)
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)