Record Class AggregationRequestSpec
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.rest.scriptingapi.request.AggregationRequestSpec
- All Implemented Interfaces:
SearchRequestSpec
-
Field Summary
Fields inherited from interface org.graylog.plugins.views.search.rest.scriptingapi.request.SearchRequestSpec
DEFAULT_QUERY_STRING, DEFAULT_TIMERANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegroupings
record component.boolean
final int
hashCode()
Returns a hash code value for this object.metrics()
Returns the value of themetrics
record component.Returns the value of thequeryString
record component.streams()
Returns the value of thestreams
record component.Returns the value of thetimerange
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AggregationRequestSpec
public AggregationRequestSpec(String queryString, Set<String> streams, TimeRange timerange, @Valid @NotEmpty @Valid @NotEmpty List<Grouping> groupings, @Valid @NotEmpty @Valid @NotEmpty List<Metric> metrics) Creates an instance of aAggregationRequestSpec
record class.- Parameters:
queryString
- the value for thequeryString
record componentstreams
- the value for thestreams
record componenttimerange
- the value for thetimerange
record componentgroupings
- the value for thegroupings
record componentmetrics
- the value for themetrics
record component
-
-
Method Details
-
hasCustomSort
public boolean hasCustomSort() -
getSchema
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
queryString
Returns the value of thequeryString
record component.- Specified by:
queryString
in interfaceSearchRequestSpec
- Returns:
- the value of the
queryString
record component
-
streams
Returns the value of thestreams
record component.- Specified by:
streams
in interfaceSearchRequestSpec
- Returns:
- the value of the
streams
record component
-
timerange
Returns the value of thetimerange
record component.- Specified by:
timerange
in interfaceSearchRequestSpec
- Returns:
- the value of the
timerange
record component
-
groupings
Returns the value of thegroupings
record component.- Returns:
- the value of the
groupings
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-