public static class RepositoryMetricSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RepositoryMetricSummary |
build() |
RepositoryMetricSummary.Builder |
copy(RepositoryMetricSummary model) |
RepositoryMetricSummary.Builder |
count(Double count)
Represents the total number of the metric being calculated.
|
RepositoryMetricSummary.Builder |
dimensions(Map<String,String> dimensions)
The qualifiers provided in the definition of the returned metric.
|
RepositoryMetricSummary.Builder |
durationInSeconds(Long durationInSeconds)
The duration of the returned aggregated data in seconds.
|
RepositoryMetricSummary.Builder |
metricName(MetricName metricName)
Type of metric
|
RepositoryMetricSummary.Builder |
startTimestampInEpochSeconds(Long startTimestampInEpochSeconds)
The start time associated with the value of the metric.
|
RepositoryMetricSummary.Builder |
sum(Double sum)
Represents the total duration in days calculated corresponding to the total no.
|
public RepositoryMetricSummary.Builder metricName(MetricName metricName)
Type of metric
metricName
- the value to setpublic RepositoryMetricSummary.Builder durationInSeconds(Long durationInSeconds)
The duration of the returned aggregated data in seconds.
durationInSeconds
- the value to setpublic RepositoryMetricSummary.Builder dimensions(Map<String,String> dimensions)
The qualifiers provided in the definition of the returned metric.
dimensions
- the value to setpublic RepositoryMetricSummary.Builder startTimestampInEpochSeconds(Long startTimestampInEpochSeconds)
The start time associated with the value of the metric.
startTimestampInEpochSeconds
- the value to setpublic RepositoryMetricSummary.Builder count(Double count)
Represents the total number of the metric being calculated.
count
- the value to setpublic RepositoryMetricSummary.Builder sum(Double sum)
Represents the total duration in days calculated corresponding to the total no. of PRs. This is used only for “PULL_REQUEST_REVIEW_START_DURATION_IN_DAYS” and “PULL_REQUEST_REVIEW_DURATION_IN_DAYS” metrics.
sum
- the value to setpublic RepositoryMetricSummary build()
public RepositoryMetricSummary.Builder copy(RepositoryMetricSummary model)
Copyright © 2016–2024. All rights reserved.