public static class ClusterCompareCommandDescriptor.Builder extends Object
Constructor and Description |
---|
Builder() |
public ClusterCompareCommandDescriptor.Builder displayQueryString(String displayQueryString)
public ClusterCompareCommandDescriptor.Builder internalQueryString(String internalQueryString)
public ClusterCompareCommandDescriptor.Builder category(String category)
public ClusterCompareCommandDescriptor.Builder referencedFields(List<AbstractField> referencedFields)
public ClusterCompareCommandDescriptor.Builder declaredFields(List<AbstractField> declaredFields)
public ClusterCompareCommandDescriptor.Builder isHidden(Boolean isHidden)
public ClusterCompareCommandDescriptor.Builder timeShift(String timeShift)
To shift time range of main query backwards using a relative time expression e.g -24hrs. E.g compare against the previous 24 hrs.
timeShift
- the value to setpublic ClusterCompareCommandDescriptor.Builder timeStart(Long timeStart)
Start time to apply to base line query if specified.
timeStart
- the value to setpublic ClusterCompareCommandDescriptor.Builder timeEnd(Long timeEnd)
End time to apply to base line query if specified.
timeEnd
- the value to setpublic ClusterCompareCommandDescriptor.Builder shouldIncludeTrends(Boolean shouldIncludeTrends)
Option to calculate trends of each cluster if specified.
shouldIncludeTrends
- the value to setpublic ClusterCompareCommandDescriptor.Builder span(String span)
Option to control the size of buckets in the histogram e.g 8hrs - each bar other than first and last should represent 8hr time span. Will be adjusted to a larger span if time range is very large.
span
- the value to setpublic ClusterCompareCommandDescriptor.Builder baselineQuery(String baselineQuery)
Query to use to compute base line to compare top level query results against to identify differences if specified.
baselineQuery
- the value to setpublic ClusterCompareCommandDescriptor build()
public ClusterCompareCommandDescriptor.Builder copy(ClusterCompareCommandDescriptor model)
Copyright © 2016–2024. All rights reserved.