@@ -21800,6 +21800,13 @@ components:
21800
21800
type: string
21801
21801
x-enum-varnames:
21802
21802
- ORDERED
21803
+ WidgetLegacyLiveSpan:
21804
+ additionalProperties: false
21805
+ description: Wrapper for live span
21806
+ properties:
21807
+ live_span:
21808
+ $ref: '#/components/schemas/WidgetLiveSpan'
21809
+ type: object
21803
21810
WidgetLegendSize:
21804
21811
description: Available legend sizes for a widget. Should be one of "0", "2",
21805
21812
"4", "8", "16", or "auto".
@@ -21866,6 +21873,24 @@ components:
21866
21873
- MONTH_TO_DATE
21867
21874
- PAST_ONE_YEAR
21868
21875
- ALERT
21876
+ WidgetLiveSpanUnit:
21877
+ description: Unit of the time span.
21878
+ enum:
21879
+ - minute
21880
+ - hour
21881
+ - day
21882
+ - week
21883
+ - month
21884
+ - year
21885
+ example: minute
21886
+ type: string
21887
+ x-enum-varnames:
21888
+ - MINUTE
21889
+ - HOUR
21890
+ - DAY
21891
+ - WEEK
21892
+ - MONTH
21893
+ - YEAR
21869
21894
WidgetMargin:
21870
21895
description: 'Size of the margins around the image.
21871
21896
@@ -21970,6 +21995,62 @@ components:
21970
21995
- TRIGGERED_DESCENDING
21971
21996
- PRIORITY_ASCENDING
21972
21997
- PRIORITY_DESCENDING
21998
+ WidgetNewFixedSpan:
21999
+ description: Used for fixed span times, such as 'March 1 to March 7'.
22000
+ properties:
22001
+ from:
22002
+ description: Start time in seconds since epoch.
22003
+ example: 1712080128
22004
+ format: int64
22005
+ minimum: 0
22006
+ type: integer
22007
+ to:
22008
+ description: End time in seconds since epoch.
22009
+ example: 1712083128
22010
+ format: int64
22011
+ minimum: 0
22012
+ type: integer
22013
+ type:
22014
+ $ref: '#/components/schemas/WidgetNewFixedSpanType'
22015
+ required:
22016
+ - type
22017
+ - from
22018
+ - to
22019
+ type: object
22020
+ WidgetNewFixedSpanType:
22021
+ description: Type "fixed" denotes a fixed span.
22022
+ enum:
22023
+ - fixed
22024
+ example: fixed
22025
+ type: string
22026
+ x-enum-varnames:
22027
+ - FIXED
22028
+ WidgetNewLiveSpan:
22029
+ description: Used for arbitrary live span times, such as 17 minutes or 6 hours.
22030
+ properties:
22031
+ type:
22032
+ $ref: '#/components/schemas/WidgetNewLiveSpanType'
22033
+ unit:
22034
+ $ref: '#/components/schemas/WidgetLiveSpanUnit'
22035
+ value:
22036
+ description: Value of the time span.
22037
+ example: 4
22038
+ format: int64
22039
+ minimum: 1
22040
+ type: integer
22041
+ required:
22042
+ - type
22043
+ - value
22044
+ - unit
22045
+ type: object
22046
+ WidgetNewLiveSpanType:
22047
+ description: Type "live" denotes a live span in the new format.
22048
+ enum:
22049
+ - live
22050
+ example: live
22051
+ type: string
22052
+ x-enum-varnames:
22053
+ - LIVE
21973
22054
WidgetNodeType:
21974
22055
description: Which type of node to use in the map.
21975
22056
enum:
@@ -22142,10 +22223,10 @@ components:
22142
22223
- TOP
22143
22224
WidgetTime:
22144
22225
description: Time setting for the widget.
22145
- properties :
22146
- live_span:
22147
- $ref: '#/components/schemas/WidgetLiveSpan '
22148
- type: object
22226
+ oneOf :
22227
+ - $ref: '#/components/schemas/WidgetLegacyLiveSpan'
22228
+ - $ref: '#/components/schemas/WidgetNewLiveSpan '
22229
+ - $ref: '#/components/schemas/WidgetNewFixedSpan'
22149
22230
WidgetTimeWindows:
22150
22231
description: Define a time window.
22151
22232
enum:
0 commit comments