Package codes.grow.packages.loki
Class VolumeOptions.Builder
java.lang.Object
codes.grow.packages.loki.VolumeOptions.Builder
- Enclosing class:
VolumeOptions
Builder of
VolumeOptions.-
Method Summary
Modifier and TypeMethodDescriptionaggregateBy(VolumeOptions.AggregateBy aggregateBy) Sets the grouping.build()Builds the options.Sets the window end.limit(int limit) Sets the maximum number of series.Sets the window start.Sets the resolution ofLokiClient.volumeRange(java.lang.String).targetLabels(List<String> labels) Sets the labels to aggregate on.
-
Method Details
-
start
Sets the window start.- Parameters:
start- start- Returns:
- this builder
-
end
Sets the window end.- Parameters:
end- end- Returns:
- this builder
-
limit
Sets the maximum number of series.- Parameters:
limit- limit (≥ 1)- Returns:
- this builder
-
targetLabels
Sets the labels to aggregate on.- Parameters:
labels- label names- Returns:
- this builder
-
aggregateBy
Sets the grouping.- Parameters:
aggregateBy- grouping- Returns:
- this builder
-
step
Sets the resolution ofLokiClient.volumeRange(java.lang.String).- Parameters:
step- positive duration- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-