Class CombinedMetricData.Builder
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<CombinedMetricData>
com.arpnetworking.clusteraggregator.models.CombinedMetricData.Builder
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<CombinedMetricData>
- Enclosing class:
- CombinedMetricData
public static class CombinedMetricData.Builder
extends com.arpnetworking.commons.builder.OvalBuilder<CombinedMetricData>
Builder
implementationfor
CombinedMetricData
.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CombinedMetricData.Builder
fromStatisticSetRecord
(com.arpnetworking.metrics.aggregation.protocol.Messages.StatisticSetRecord record) Initializes the builder with fields from aMessages.StatisticSetRecord
.setCluster
(String value) Set the name of the cluster.setMetricName
(String value) Set the name of the metric.setMinRequestTime
(ZonedDateTime minRequestTime) Set the minimum request time.Set the period.setPeriodStart
(ZonedDateTime value) Set the start of the period.setService
(String value) Set the name of the service.Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
build, clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
setService
Set the name of the service. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This
CombinedMetricData.Builder
instance.
-
setMetricName
Set the name of the metric. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This
CombinedMetricData.Builder
instance.
-
setCluster
Set the name of the cluster. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This
CombinedMetricData.Builder
instance.
-
setPeriodStart
Set the start of the period. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This
CombinedMetricData.Builder
instance.
-
setPeriod
Set the period. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This
CombinedMetricData.Builder
instance.
-
setMinRequestTime
Set the minimum request time. May be null.- Parameters:
minRequestTime
- The value to set- Returns:
- This
CombinedMetricData.Builder
instance.
-
fromStatisticSetRecord
public static CombinedMetricData.Builder fromStatisticSetRecord(com.arpnetworking.metrics.aggregation.protocol.Messages.StatisticSetRecord record) Initializes the builder with fields from aMessages.StatisticSetRecord
.- Parameters:
record
- The record.- Returns:
- This
CombinedMetricData.Builder
.
-