2020@ JsonPropertyOrder ({
2121 WidgetRequestStyle .JSON_PROPERTY_LINE_TYPE ,
2222 WidgetRequestStyle .JSON_PROPERTY_LINE_WIDTH ,
23+ WidgetRequestStyle .JSON_PROPERTY_ORDER_BY ,
2324 WidgetRequestStyle .JSON_PROPERTY_PALETTE
2425})
2526@ jakarta .annotation .Generated (
@@ -32,6 +33,9 @@ public class WidgetRequestStyle {
3233 public static final String JSON_PROPERTY_LINE_WIDTH = "line_width" ;
3334 private WidgetLineWidth lineWidth ;
3435
36+ public static final String JSON_PROPERTY_ORDER_BY = "order_by" ;
37+ private WidgetStyleOrderBy orderBy ;
38+
3539 public static final String JSON_PROPERTY_PALETTE = "palette" ;
3640 private String palette ;
3741
@@ -85,6 +89,33 @@ public void setLineWidth(WidgetLineWidth lineWidth) {
8589 this .lineWidth = lineWidth ;
8690 }
8791
92+ public WidgetRequestStyle orderBy (WidgetStyleOrderBy orderBy ) {
93+ this .orderBy = orderBy ;
94+ this .unparsed |= !orderBy .isValid ();
95+ return this ;
96+ }
97+
98+ /**
99+ * How to order series in timeseries visualizations. - <code>tags</code>: Order series
100+ * alphabetically by tag name (default behavior) - <code>values</code>: Order series by their
101+ * current metric values (typically descending)
102+ *
103+ * @return orderBy
104+ */
105+ @ jakarta .annotation .Nullable
106+ @ JsonProperty (JSON_PROPERTY_ORDER_BY )
107+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
108+ public WidgetStyleOrderBy getOrderBy () {
109+ return orderBy ;
110+ }
111+
112+ public void setOrderBy (WidgetStyleOrderBy orderBy ) {
113+ if (!orderBy .isValid ()) {
114+ this .unparsed = true ;
115+ }
116+ this .orderBy = orderBy ;
117+ }
118+
88119 public WidgetRequestStyle palette (String palette ) {
89120 this .palette = palette ;
90121 return this ;
@@ -164,13 +195,14 @@ public boolean equals(Object o) {
164195 WidgetRequestStyle widgetRequestStyle = (WidgetRequestStyle ) o ;
165196 return Objects .equals (this .lineType , widgetRequestStyle .lineType )
166197 && Objects .equals (this .lineWidth , widgetRequestStyle .lineWidth )
198+ && Objects .equals (this .orderBy , widgetRequestStyle .orderBy )
167199 && Objects .equals (this .palette , widgetRequestStyle .palette )
168200 && Objects .equals (this .additionalProperties , widgetRequestStyle .additionalProperties );
169201 }
170202
171203 @ Override
172204 public int hashCode () {
173- return Objects .hash (lineType , lineWidth , palette , additionalProperties );
205+ return Objects .hash (lineType , lineWidth , orderBy , palette , additionalProperties );
174206 }
175207
176208 @ Override
@@ -179,6 +211,7 @@ public String toString() {
179211 sb .append ("class WidgetRequestStyle {\n " );
180212 sb .append (" lineType: " ).append (toIndentedString (lineType )).append ("\n " );
181213 sb .append (" lineWidth: " ).append (toIndentedString (lineWidth )).append ("\n " );
214+ sb .append (" orderBy: " ).append (toIndentedString (orderBy )).append ("\n " );
182215 sb .append (" palette: " ).append (toIndentedString (palette )).append ("\n " );
183216 sb .append (" additionalProperties: " )
184217 .append (toIndentedString (additionalProperties ))
0 commit comments