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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupingsrecord component.booleanfinal inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.Returns the value of thequeryStringrecord component.streams()Returns the value of thestreamsrecord component.Returns the value of thetimerangerecord component.final StringtoString()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 aAggregationRequestSpecrecord class.- Parameters:
queryString- the value for thequeryStringrecord componentstreams- the value for thestreamsrecord componenttimerange- the value for thetimerangerecord componentgroupings- the value for thegroupingsrecord componentmetrics- the value for themetricsrecord 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 thequeryStringrecord component.- Specified by:
queryStringin interfaceSearchRequestSpec- Returns:
- the value of the
queryStringrecord component
-
streams
Returns the value of thestreamsrecord component.- Specified by:
streamsin interfaceSearchRequestSpec- Returns:
- the value of the
streamsrecord component
-
timerange
Returns the value of thetimerangerecord component.- Specified by:
timerangein interfaceSearchRequestSpec- Returns:
- the value of the
timerangerecord component
-
groupings
Returns the value of thegroupingsrecord component.- Returns:
- the value of the
groupingsrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-