@@ -21867,6 +21867,13 @@ components:
2186721867 type: string
2186821868 x-enum-varnames:
2186921869 - 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
2187021877 WidgetLegendSize:
2187121878 description: Available legend sizes for a widget. Should be one of "0", "2",
2187221879 "4", "8", "16", or "auto".
@@ -21933,6 +21940,24 @@ components:
2193321940 - MONTH_TO_DATE
2193421941 - PAST_ONE_YEAR
2193521942 - 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
2193621961 WidgetMargin:
2193721962 description: 'Size of the margins around the image.
2193821963
@@ -22037,6 +22062,62 @@ components:
2203722062 - TRIGGERED_DESCENDING
2203822063 - PRIORITY_ASCENDING
2203922064 - 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
2204022121 WidgetNodeType:
2204122122 description: Which type of node to use in the map.
2204222123 enum:
@@ -22209,10 +22290,10 @@ components:
2220922290 - TOP
2221022291 WidgetTime:
2221122292 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'
2221622297 WidgetTimeWindows:
2221722298 description: Define a time window.
2221822299 enum:
0 commit comments