@@ -21867,6 +21867,13 @@ components:
21867
21867
type: string
21868
21868
x-enum-varnames:
21869
21869
- ORDERED
21870
+ WidgetLegacyLiveSpan:
21871
+ additionalProperties: false
21872
+ description: Wrapper for live span
21873
+ properties:
21874
+ live_span:
21875
+ $ref: '#/components/schemas/WidgetLiveSpan'
21876
+ type: object
21870
21877
WidgetLegendSize:
21871
21878
description: Available legend sizes for a widget. Should be one of "0", "2",
21872
21879
"4", "8", "16", or "auto".
@@ -21933,6 +21940,24 @@ components:
21933
21940
- MONTH_TO_DATE
21934
21941
- PAST_ONE_YEAR
21935
21942
- ALERT
21943
+ WidgetLiveSpanUnit:
21944
+ description: Unit of the time span.
21945
+ enum:
21946
+ - minute
21947
+ - hour
21948
+ - day
21949
+ - week
21950
+ - month
21951
+ - year
21952
+ example: minute
21953
+ type: string
21954
+ x-enum-varnames:
21955
+ - MINUTE
21956
+ - HOUR
21957
+ - DAY
21958
+ - WEEK
21959
+ - MONTH
21960
+ - YEAR
21936
21961
WidgetMargin:
21937
21962
description: 'Size of the margins around the image.
21938
21963
@@ -22037,6 +22062,62 @@ components:
22037
22062
- TRIGGERED_DESCENDING
22038
22063
- PRIORITY_ASCENDING
22039
22064
- PRIORITY_DESCENDING
22065
+ WidgetNewFixedSpan:
22066
+ description: Used for fixed span times, such as 'March 1 to March 7'.
22067
+ properties:
22068
+ from:
22069
+ description: Start time in seconds since epoch.
22070
+ example: 1712080128
22071
+ format: int64
22072
+ minimum: 0
22073
+ type: integer
22074
+ to:
22075
+ description: End time in seconds since epoch.
22076
+ example: 1712083128
22077
+ format: int64
22078
+ minimum: 0
22079
+ type: integer
22080
+ type:
22081
+ $ref: '#/components/schemas/WidgetNewFixedSpanType'
22082
+ required:
22083
+ - type
22084
+ - from
22085
+ - to
22086
+ type: object
22087
+ WidgetNewFixedSpanType:
22088
+ description: Type "fixed" denotes a fixed span.
22089
+ enum:
22090
+ - fixed
22091
+ example: fixed
22092
+ type: string
22093
+ x-enum-varnames:
22094
+ - FIXED
22095
+ WidgetNewLiveSpan:
22096
+ description: Used for arbitrary live span times, such as 17 minutes or 6 hours.
22097
+ properties:
22098
+ type:
22099
+ $ref: '#/components/schemas/WidgetNewLiveSpanType'
22100
+ unit:
22101
+ $ref: '#/components/schemas/WidgetLiveSpanUnit'
22102
+ value:
22103
+ description: Value of the time span.
22104
+ example: 4
22105
+ format: int64
22106
+ minimum: 1
22107
+ type: integer
22108
+ required:
22109
+ - type
22110
+ - value
22111
+ - unit
22112
+ type: object
22113
+ WidgetNewLiveSpanType:
22114
+ description: Type "live" denotes a live span in the new format.
22115
+ enum:
22116
+ - live
22117
+ example: live
22118
+ type: string
22119
+ x-enum-varnames:
22120
+ - LIVE
22040
22121
WidgetNodeType:
22041
22122
description: Which type of node to use in the map.
22042
22123
enum:
@@ -22209,10 +22290,10 @@ components:
22209
22290
- TOP
22210
22291
WidgetTime:
22211
22292
description: Time setting for the widget.
22212
- properties :
22213
- live_span:
22214
- $ref: '#/components/schemas/WidgetLiveSpan '
22215
- type: object
22293
+ oneOf :
22294
+ - $ref: '#/components/schemas/WidgetLegacyLiveSpan'
22295
+ - $ref: '#/components/schemas/WidgetNewLiveSpan '
22296
+ - $ref: '#/components/schemas/WidgetNewFixedSpan'
22216
22297
WidgetTimeWindows:
22217
22298
description: Define a time window.
22218
22299
enum:
0 commit comments