Package su.onno.ui
Record Class WidgetBuckets.Request
java.lang.Object
java.lang.Record
su.onno.ui.WidgetBuckets.Request
- Enclosing class:
WidgetBuckets
public static record WidgetBuckets.Request(String metric, String field, String metric2, String field2, String groupBy, String groupByDate, String seriesBy, String filter, String dateField, String from, String to)
extends Record
The widget's aggregate request, straight from the query string.
metric/field
are the primary measure (WidgetAggregate semantics); metric2/field2
add the optional secondary measure of a combo chart. groupBy is the x-axis column
(blank → one grand-total bucket, the gauge/metric case); groupByDate buckets a
timestamp column by unit. dateField+from/to window the rows to the
dashboard's shared time range before aggregating.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedateFieldrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.field2()Returns the value of thefield2record component.filter()Returns the value of thefilterrecord component.from()Returns the value of thefromrecord component.groupBy()Returns the value of thegroupByrecord component.Returns the value of thegroupByDaterecord component.booleangrouped()final inthashCode()Returns a hash code value for this object.booleanbooleanmetric()Returns the value of themetricrecord component.metric2()Returns the value of themetric2record component.seriesBy()Returns the value of theseriesByrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.booleanwindowed()
-
Constructor Details
-
Request
public Request(String metric, String field, String metric2, String field2, String groupBy, String groupByDate, String seriesBy, String filter, String dateField, String from, String to) Creates an instance of aRequestrecord class.- Parameters:
metric- the value for themetricrecord componentfield- the value for thefieldrecord componentmetric2- the value for themetric2record componentfield2- the value for thefield2record componentgroupBy- the value for thegroupByrecord componentgroupByDate- the value for thegroupByDaterecord componentseriesBy- the value for theseriesByrecord componentfilter- the value for thefilterrecord componentdateField- the value for thedateFieldrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord component
-
-
Method Details
-
grouped
public boolean grouped() -
hasSeries
public boolean hasSeries() -
hasSecondary
public boolean hasSecondary() -
windowed
public boolean windowed() -
dateBucketed
public boolean dateBucketed() -
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). -
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
metric2
Returns the value of themetric2record component.- Returns:
- the value of the
metric2record component
-
field2
Returns the value of thefield2record component.- Returns:
- the value of the
field2record component
-
groupBy
Returns the value of thegroupByrecord component.- Returns:
- the value of the
groupByrecord component
-
groupByDate
Returns the value of thegroupByDaterecord component.- Returns:
- the value of the
groupByDaterecord component
-
seriesBy
Returns the value of theseriesByrecord component.- Returns:
- the value of the
seriesByrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
dateField
Returns the value of thedateFieldrecord component.- Returns:
- the value of the
dateFieldrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-