losant_rest 1.16.3 → 1.16.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1706 -407
  3. data/docs/dashboard.md +2 -0
  4. data/docs/dataTableRows.md +1 -1
  5. data/docs/device.md +4 -0
  6. data/docs/deviceRecipe.md +4 -0
  7. data/docs/deviceRecipes.md +4 -0
  8. data/docs/devices.md +4 -0
  9. data/docs/embeddedDeployments.md +1 -1
  10. data/docs/me.md +36 -0
  11. data/docs/notebook.md +44 -1
  12. data/docs/notebooks.md +1 -1
  13. data/lib/losant_rest/client.rb +2 -2
  14. data/lib/losant_rest/dashboard.rb +4 -0
  15. data/lib/losant_rest/data_table_rows.rb +1 -1
  16. data/lib/losant_rest/device.rb +8 -0
  17. data/lib/losant_rest/device_recipe.rb +8 -0
  18. data/lib/losant_rest/device_recipes.rb +8 -0
  19. data/lib/losant_rest/devices.rb +8 -0
  20. data/lib/losant_rest/embedded_deployments.rb +1 -1
  21. data/lib/losant_rest/me.rb +41 -0
  22. data/lib/losant_rest/notebook.rb +50 -1
  23. data/lib/losant_rest/notebooks.rb +1 -1
  24. data/lib/losant_rest/version.rb +1 -1
  25. data/schemas/advancedApplicationKeyQuery.json +1 -1
  26. data/schemas/advancedDeviceQuery.json +1 -1
  27. data/schemas/advancedEventQuery.json +1 -1
  28. data/schemas/advancedFlowByVersionQuery.json +1 -1
  29. data/schemas/advancedFlowQuery.json +1 -1
  30. data/schemas/advancedFlowVersionQuery.json +1 -1
  31. data/schemas/advancedQuery.json +1 -1
  32. data/schemas/apiToken.json +1 -1
  33. data/schemas/apiTokenPatch.json +1 -1
  34. data/schemas/apiTokenPost.json +2 -1
  35. data/schemas/apiTokens.json +1 -1
  36. data/schemas/application.json +1 -1
  37. data/schemas/applicationApplyTemplatePatch.json +1 -1
  38. data/schemas/applicationCertificate.json +1 -1
  39. data/schemas/applicationCertificateAuthorities.json +1 -1
  40. data/schemas/applicationCertificateAuthority.json +1 -1
  41. data/schemas/applicationCertificateAuthorityPatch.json +1 -1
  42. data/schemas/applicationCertificateAuthorityPost.json +1 -1
  43. data/schemas/applicationCertificatePatch.json +1 -1
  44. data/schemas/applicationCertificatePost.json +1 -1
  45. data/schemas/applicationCertificates.json +1 -1
  46. data/schemas/applicationCloneDryRunResult.json +1 -1
  47. data/schemas/applicationClonePost.json +5 -1
  48. data/schemas/applicationCreationByTemplateResult.json +1 -1
  49. data/schemas/applicationDashboardPost.json +185 -26
  50. data/schemas/applicationExportPost.json +1 -1
  51. data/schemas/applicationExportResult.json +1 -1
  52. data/schemas/applicationGlobalPatch.json +1 -1
  53. data/schemas/applicationKey.json +1 -1
  54. data/schemas/applicationKeyPatch.json +1 -1
  55. data/schemas/applicationKeyPost.json +1 -1
  56. data/schemas/applicationKeyPostResponse.json +1 -1
  57. data/schemas/applicationKeys.json +1 -1
  58. data/schemas/applicationPatch.json +1 -1
  59. data/schemas/applicationPost.json +1 -1
  60. data/schemas/applicationReadme.json +1 -1
  61. data/schemas/applicationReadmePatch.json +1 -1
  62. data/schemas/applicationSearchResult.json +1 -1
  63. data/schemas/applicationTemplate.json +1 -1
  64. data/schemas/applicationTemplateCategories.json +1 -1
  65. data/schemas/applicationTemplateCategory.json +1 -1
  66. data/schemas/applicationTemplates.json +1 -1
  67. data/schemas/applications.json +1 -1
  68. data/schemas/attributeNamesResponse.json +1 -1
  69. data/schemas/auditLog.json +1 -1
  70. data/schemas/auditLogFilter.json +1 -1
  71. data/schemas/auditLogs.json +1 -1
  72. data/schemas/authedDevice.json +1 -1
  73. data/schemas/authedUser.json +1 -1
  74. data/schemas/bulkDeleteResponse.json +1 -1
  75. data/schemas/changePassword.json +1 -1
  76. data/schemas/compositeDeviceState.json +1 -1
  77. data/schemas/dashboard.json +185 -26
  78. data/schemas/dashboardContextInstance.json +1 -1
  79. data/schemas/dashboardPatch.json +185 -26
  80. data/schemas/dashboardPost.json +185 -26
  81. data/schemas/dashboardSendReport.json +33 -2
  82. data/schemas/dashboardUpdateEvents.json +1 -1
  83. data/schemas/dashboards.json +185 -26
  84. data/schemas/dataExport.json +1 -1
  85. data/schemas/dataTable.json +1 -1
  86. data/schemas/dataTableColumn.json +1 -1
  87. data/schemas/dataTablePatch.json +1 -1
  88. data/schemas/dataTablePost.json +1 -1
  89. data/schemas/dataTableRow.json +1 -1
  90. data/schemas/dataTableRowInMultiple.json +1 -1
  91. data/schemas/dataTableRowInsert.json +1 -1
  92. data/schemas/dataTableRowInsertResult.json +1 -1
  93. data/schemas/dataTableRowInsertUpdate.json +1 -1
  94. data/schemas/dataTableRows.json +1 -1
  95. data/schemas/dataTableRowsDelete.json +1 -1
  96. data/schemas/dataTableRowsExport.json +1 -1
  97. data/schemas/dataTables.json +1 -1
  98. data/schemas/device.json +1 -1
  99. data/schemas/deviceAttributeDataTypeFilter.json +1 -1
  100. data/schemas/deviceClassFilter.json +1 -1
  101. data/schemas/deviceCommand.json +1 -1
  102. data/schemas/deviceCommands.json +1 -1
  103. data/schemas/deviceConnectionStatus.json +1 -1
  104. data/schemas/deviceCredentials.json +1 -1
  105. data/schemas/deviceLog.json +1 -1
  106. data/schemas/deviceNamesResponse.json +1 -1
  107. data/schemas/devicePatch.json +1 -1
  108. data/schemas/devicePayloadCounts.json +1 -1
  109. data/schemas/devicePost.json +1 -1
  110. data/schemas/deviceRecipe.json +1 -1
  111. data/schemas/deviceRecipeBulkCreate.json +1 -1
  112. data/schemas/deviceRecipeBulkCreateEnqueued.json +5 -1
  113. data/schemas/deviceRecipeBulkCreatePost.json +1 -1
  114. data/schemas/deviceRecipePatch.json +1 -1
  115. data/schemas/deviceRecipePost.json +1 -1
  116. data/schemas/deviceRecipes.json +1 -1
  117. data/schemas/deviceState.json +1 -1
  118. data/schemas/deviceStateOrStates.json +1 -1
  119. data/schemas/deviceStates.json +1 -1
  120. data/schemas/deviceTagFilter.json +1 -1
  121. data/schemas/devices.json +1 -1
  122. data/schemas/devicesDataRemoved.json +1 -1
  123. data/schemas/devicesDeletePost.json +1 -1
  124. data/schemas/devicesExportPayloadCountPost.json +1 -1
  125. data/schemas/devicesExportPost.json +1 -1
  126. data/schemas/devicesPatch.json +1 -1
  127. data/schemas/devicesRemoveDataPost.json +1 -1
  128. data/schemas/devicesUpdated.json +1 -1
  129. data/schemas/disableTwoFactorAuth.json +1 -1
  130. data/schemas/edgeDeployment.json +1 -1
  131. data/schemas/edgeDeploymentRelease.json +1 -1
  132. data/schemas/edgeDeploymentRemove.json +1 -1
  133. data/schemas/edgeDeploymentReplace.json +1 -1
  134. data/schemas/edgeDeployments.json +1 -1
  135. data/schemas/emailVerificationVerify.json +1 -1
  136. data/schemas/embeddedDeployment.json +1 -1
  137. data/schemas/embeddedDeploymentExport.json +1 -1
  138. data/schemas/embeddedDeploymentRelease.json +1 -1
  139. data/schemas/embeddedDeploymentRemove.json +1 -1
  140. data/schemas/embeddedDeploymentReplace.json +1 -1
  141. data/schemas/embeddedDeployments.json +1 -1
  142. data/schemas/enableTwoFactorAuth.json +6 -2
  143. data/schemas/error.json +1 -1
  144. data/schemas/event.json +1 -1
  145. data/schemas/eventPatch.json +1 -1
  146. data/schemas/eventPost.json +1 -1
  147. data/schemas/eventTagsSummary.json +1 -1
  148. data/schemas/events.json +1 -1
  149. data/schemas/eventsDeleted.json +1 -1
  150. data/schemas/eventsExport.json +1 -1
  151. data/schemas/experienceBootstrapOptions.json +1 -1
  152. data/schemas/experienceBootstrapResult.json +1 -1
  153. data/schemas/experienceDomain.json +1 -1
  154. data/schemas/experienceDomainPatch.json +1 -1
  155. data/schemas/experienceDomainPost.json +1 -1
  156. data/schemas/experienceDomains.json +1 -1
  157. data/schemas/experienceEndpoint.json +1 -1
  158. data/schemas/experienceEndpointPatch.json +1 -1
  159. data/schemas/experienceEndpointPost.json +1 -1
  160. data/schemas/experienceEndpointStats.json +1 -1
  161. data/schemas/experienceEndpoints.json +1 -1
  162. data/schemas/experienceGroup.json +1 -1
  163. data/schemas/experienceGroupPatch.json +1 -1
  164. data/schemas/experienceGroupPost.json +1 -1
  165. data/schemas/experienceGroups.json +1 -1
  166. data/schemas/experienceLinkedResources.json +4 -1
  167. data/schemas/experienceSlug.json +1 -1
  168. data/schemas/experienceSlugPatch.json +1 -1
  169. data/schemas/experienceSlugPost.json +1 -1
  170. data/schemas/experienceSlugs.json +1 -1
  171. data/schemas/experienceUser.json +1 -1
  172. data/schemas/experienceUserPatch.json +1 -1
  173. data/schemas/experienceUserPost.json +1 -1
  174. data/schemas/experienceUsers.json +1 -1
  175. data/schemas/experienceVersion.json +28 -1
  176. data/schemas/experienceVersionPatch.json +28 -1
  177. data/schemas/experienceVersionPost.json +40 -1
  178. data/schemas/experienceVersions.json +28 -1
  179. data/schemas/experienceView.json +1 -1
  180. data/schemas/experienceViewPatch.json +1 -1
  181. data/schemas/experienceViewPost.json +1 -1
  182. data/schemas/experienceViews.json +1 -1
  183. data/schemas/file.json +1 -1
  184. data/schemas/filePatch.json +1 -1
  185. data/schemas/filePost.json +1 -1
  186. data/schemas/fileUploadPostResponse.json +1 -1
  187. data/schemas/files.json +1 -1
  188. data/schemas/flow.json +2 -1
  189. data/schemas/flowErrors.json +1 -1
  190. data/schemas/flowLog.json +1 -1
  191. data/schemas/flowPatch.json +2 -1
  192. data/schemas/flowPost.json +2 -1
  193. data/schemas/flowStats.json +1 -1
  194. data/schemas/flowStorageEntries.json +1 -1
  195. data/schemas/flowStorageEntry.json +1 -1
  196. data/schemas/flowStorageMetadata.json +1 -1
  197. data/schemas/flowTriggerFilter.json +1 -1
  198. data/schemas/flowVersion.json +3 -1
  199. data/schemas/flowVersionPatch.json +1 -1
  200. data/schemas/flowVersionPost.json +2 -1
  201. data/schemas/flowVersions.json +3 -1
  202. data/schemas/flowVersionsDeletePost.json +1 -1
  203. data/schemas/flows.json +2 -1
  204. data/schemas/flowsImportPost.json +3 -1
  205. data/schemas/flowsImportResult.json +4 -1
  206. data/schemas/githubLogin.json +2 -1
  207. data/schemas/historicalSummaries.json +1 -1
  208. data/schemas/historicalSummary.json +1 -1
  209. data/schemas/importIntoApplicationOptions.json +9 -2
  210. data/schemas/importNewApplicationOptions.json +2 -1
  211. data/schemas/instance.json +1 -1
  212. data/schemas/instanceCustomNode.json +1 -1
  213. data/schemas/instanceCustomNodePatch.json +2 -1
  214. data/schemas/instanceCustomNodePost.json +2 -1
  215. data/schemas/instanceCustomNodes.json +1 -1
  216. data/schemas/instanceMember.json +1 -1
  217. data/schemas/instanceMemberPatch.json +1 -1
  218. data/schemas/instanceMemberPost.json +1 -1
  219. data/schemas/instanceMembers.json +1 -1
  220. data/schemas/instanceOrg.json +1 -1
  221. data/schemas/instanceOrgMember.json +1 -1
  222. data/schemas/instanceOrgMemberPatch.json +1 -1
  223. data/schemas/instanceOrgMemberPost.json +1 -1
  224. data/schemas/instanceOrgMembers.json +1 -1
  225. data/schemas/instanceOrgPatch.json +3 -2
  226. data/schemas/instanceOrgPost.json +3 -2
  227. data/schemas/instanceOrgs.json +1 -1
  228. data/schemas/instancePatch.json +1 -1
  229. data/schemas/instanceReportOptionsPost.json +1 -1
  230. data/schemas/instanceSandbox.json +1 -1
  231. data/schemas/instanceSandboxes.json +1 -1
  232. data/schemas/instances.json +1 -1
  233. data/schemas/integration.json +35 -2
  234. data/schemas/integrationPatch.json +35 -2
  235. data/schemas/integrationPost.json +35 -2
  236. data/schemas/integrations.json +35 -2
  237. data/schemas/jobEnqueuedResult.json +5 -1
  238. data/schemas/lastValueData.json +1 -1
  239. data/schemas/lastValueQuery.json +1 -1
  240. data/schemas/me.json +1 -1
  241. data/schemas/mePatch.json +1 -1
  242. data/schemas/mqttPublishBody.json +1 -1
  243. data/schemas/multiDeviceCommand.json +1 -1
  244. data/schemas/notebook.json +1 -1
  245. data/schemas/notebookDataExportOptions.json +1 -1
  246. data/schemas/notebookExecutionLogs.json +1 -1
  247. data/schemas/notebookExecutionOptions.json +1 -1
  248. data/schemas/notebookPatch.json +1 -1
  249. data/schemas/notebookPost.json +1 -1
  250. data/schemas/notebooks.json +1 -1
  251. data/schemas/org.json +1 -1
  252. data/schemas/orgInvite.json +1 -1
  253. data/schemas/orgInviteAction.json +1 -1
  254. data/schemas/orgInviteCollection.json +1 -1
  255. data/schemas/orgInviteInfo.json +1 -1
  256. data/schemas/orgInvitePost.json +1 -1
  257. data/schemas/orgInviteResult.json +1 -1
  258. data/schemas/orgInvites.json +1 -1
  259. data/schemas/orgMemberPatch.json +1 -1
  260. data/schemas/orgPatch.json +1 -1
  261. data/schemas/orgPost.json +1 -1
  262. data/schemas/orgRoleInfo.json +1 -1
  263. data/schemas/orgs.json +1 -1
  264. data/schemas/paletteResponse.json +1 -1
  265. data/schemas/passwordResetFinish.json +1 -1
  266. data/schemas/passwordResetInput.json +1 -1
  267. data/schemas/passwordResetResponse.json +1 -1
  268. data/schemas/payloadStats.json +1 -1
  269. data/schemas/recentItem.json +1 -1
  270. data/schemas/recentItemList.json +1 -1
  271. data/schemas/resourceTransfer.json +1 -1
  272. data/schemas/samlResponse.json +2 -1
  273. data/schemas/ssoRequest.json +1 -1
  274. data/schemas/success.json +1 -1
  275. data/schemas/successWithExecutionId.json +16 -0
  276. data/schemas/successWithJobId.json +16 -0
  277. data/schemas/tagKeysResponse.json +1 -1
  278. data/schemas/tagValuesResponse.json +1 -1
  279. data/schemas/templateKeywords.json +1 -1
  280. data/schemas/timeSeriesData.json +1 -1
  281. data/schemas/timeSeriesQuery.json +1 -1
  282. data/schemas/twoFactorAuthInfo.json +15 -0
  283. data/schemas/userCredentials.json +2 -1
  284. data/schemas/userPost.json +2 -1
  285. data/schemas/validateContextError.json +28 -1
  286. data/schemas/validateContextSuccess.json +28 -1
  287. data/schemas/validationErrors.json +1 -1
  288. data/schemas/virtualButtonPress.json +1 -1
  289. data/schemas/webhook.json +1 -1
  290. data/schemas/webhookPatch.json +1 -1
  291. data/schemas/webhookPost.json +1 -1
  292. data/schemas/webhooks.json +1 -1
  293. metadata +5 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "removed": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "twoFactorCode": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "patternProperties": {
5
5
  "^[0-9a-zA-Z_-]{1,255}$": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -61,6 +61,14 @@
61
61
  "minimum": 5,
62
62
  "maximum": 600
63
63
  },
64
+ "duration": {
65
+ "type": "integer",
66
+ "minimum": 1
67
+ },
68
+ "resolution": {
69
+ "type": "integer",
70
+ "minimum": 1
71
+ },
64
72
  "defaultTheme": {
65
73
  "type": "string",
66
74
  "enum": [
@@ -127,7 +135,38 @@
127
135
  "maxLength": 5
128
136
  },
129
137
  "ctx": {
130
- "ref": "#/definitions/dashboardContextInstance"
138
+ "title": "Dashboard Context Instance",
139
+ "description": "Schema for a dashboard context instance",
140
+ "type": "object",
141
+ "patternProperties": {
142
+ "^[0-9a-zA-Z_-]{1,255}$": {
143
+ "oneOf": [
144
+ {
145
+ "type": "string",
146
+ "maxLength": 32767
147
+ },
148
+ {
149
+ "type": "number"
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "key": {
155
+ "type": "string",
156
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
157
+ },
158
+ "value": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 255
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ "additionalProperties": false
131
170
  },
132
171
  "branded": {
133
172
  "type": "boolean"
@@ -255,8 +294,18 @@
255
294
  "type": "boolean"
256
295
  },
257
296
  "duration": {
258
- "type": "integer",
259
- "minimum": 0
297
+ "oneOf": [
298
+ {
299
+ "type": "integer",
300
+ "minimum": 0
301
+ },
302
+ {
303
+ "type": "string",
304
+ "enum": [
305
+ "{{dashboard.duration}}"
306
+ ]
307
+ }
308
+ ]
260
309
  },
261
310
  "xAxisFormat": {
262
311
  "type": "string",
@@ -697,8 +746,18 @@
697
746
  }
698
747
  },
699
748
  "duration": {
700
- "type": "integer",
701
- "minimum": 0
749
+ "oneOf": [
750
+ {
751
+ "type": "integer",
752
+ "minimum": 0
753
+ },
754
+ {
755
+ "type": "string",
756
+ "enum": [
757
+ "{{dashboard.duration}}"
758
+ ]
759
+ }
760
+ ]
702
761
  },
703
762
  "resolution": {
704
763
  "oneOf": [
@@ -870,8 +929,18 @@
870
929
  }
871
930
  },
872
931
  "duration": {
873
- "type": "integer",
874
- "minimum": 0
932
+ "oneOf": [
933
+ {
934
+ "type": "integer",
935
+ "minimum": 0
936
+ },
937
+ {
938
+ "type": "string",
939
+ "enum": [
940
+ "{{dashboard.duration}}"
941
+ ]
942
+ }
943
+ ]
875
944
  }
876
945
  },
877
946
  "additionalProperties": false
@@ -1606,8 +1675,18 @@
1606
1675
  }
1607
1676
  },
1608
1677
  "duration": {
1609
- "type": "integer",
1610
- "minimum": 0
1678
+ "oneOf": [
1679
+ {
1680
+ "type": "integer",
1681
+ "minimum": 0
1682
+ },
1683
+ {
1684
+ "type": "string",
1685
+ "enum": [
1686
+ "{{dashboard.duration}}"
1687
+ ]
1688
+ }
1689
+ ]
1611
1690
  },
1612
1691
  "sortDirection": {
1613
1692
  "type": "integer",
@@ -1856,8 +1935,18 @@
1856
1935
  "type": "boolean"
1857
1936
  },
1858
1937
  "duration": {
1859
- "type": "integer",
1860
- "minimum": 0
1938
+ "oneOf": [
1939
+ {
1940
+ "type": "integer",
1941
+ "minimum": 0
1942
+ },
1943
+ {
1944
+ "type": "string",
1945
+ "enum": [
1946
+ "{{dashboard.duration}}"
1947
+ ]
1948
+ }
1949
+ ]
1861
1950
  },
1862
1951
  "gaugeMax": {
1863
1952
  "oneOf": [
@@ -2178,8 +2267,18 @@
2178
2267
  "type": "boolean"
2179
2268
  },
2180
2269
  "duration": {
2181
- "type": "integer",
2182
- "minimum": 0
2270
+ "oneOf": [
2271
+ {
2272
+ "type": "integer",
2273
+ "minimum": 0
2274
+ },
2275
+ {
2276
+ "type": "string",
2277
+ "enum": [
2278
+ "{{dashboard.duration}}"
2279
+ ]
2280
+ }
2281
+ ]
2183
2282
  },
2184
2283
  "resolution": {
2185
2284
  "oneOf": [
@@ -2554,8 +2653,18 @@
2554
2653
  }
2555
2654
  },
2556
2655
  "duration": {
2557
- "type": "integer",
2558
- "minimum": 0
2656
+ "oneOf": [
2657
+ {
2658
+ "type": "integer",
2659
+ "minimum": 0
2660
+ },
2661
+ {
2662
+ "type": "string",
2663
+ "enum": [
2664
+ "{{dashboard.duration}}"
2665
+ ]
2666
+ }
2667
+ ]
2559
2668
  },
2560
2669
  "locationTagKey": {
2561
2670
  "oneOf": [
@@ -2943,8 +3052,18 @@
2943
3052
  }
2944
3053
  },
2945
3054
  "duration": {
2946
- "type": "integer",
2947
- "minimum": 0
3055
+ "oneOf": [
3056
+ {
3057
+ "type": "integer",
3058
+ "minimum": 0
3059
+ },
3060
+ {
3061
+ "type": "string",
3062
+ "enum": [
3063
+ "{{dashboard.duration}}"
3064
+ ]
3065
+ }
3066
+ ]
2948
3067
  }
2949
3068
  },
2950
3069
  "additionalProperties": false
@@ -3399,8 +3518,18 @@
3399
3518
  "type": "boolean"
3400
3519
  },
3401
3520
  "duration": {
3402
- "type": "integer",
3403
- "minimum": 0
3521
+ "oneOf": [
3522
+ {
3523
+ "type": "integer",
3524
+ "minimum": 0
3525
+ },
3526
+ {
3527
+ "type": "string",
3528
+ "enum": [
3529
+ "{{dashboard.duration}}"
3530
+ ]
3531
+ }
3532
+ ]
3404
3533
  },
3405
3534
  "segments": {
3406
3535
  "type": "array",
@@ -4828,8 +4957,18 @@
4828
4957
  }
4829
4958
  },
4830
4959
  "duration": {
4831
- "type": "integer",
4832
- "minimum": 0
4960
+ "oneOf": [
4961
+ {
4962
+ "type": "integer",
4963
+ "minimum": 0
4964
+ },
4965
+ {
4966
+ "type": "string",
4967
+ "enum": [
4968
+ "{{dashboard.duration}}"
4969
+ ]
4970
+ }
4971
+ ]
4833
4972
  },
4834
4973
  "endColor": {
4835
4974
  "type": "string",
@@ -5024,8 +5163,18 @@
5024
5163
  "type": "boolean"
5025
5164
  },
5026
5165
  "duration": {
5027
- "type": "integer",
5028
- "minimum": 0
5166
+ "oneOf": [
5167
+ {
5168
+ "type": "integer",
5169
+ "minimum": 0
5170
+ },
5171
+ {
5172
+ "type": "string",
5173
+ "enum": [
5174
+ "{{dashboard.duration}}"
5175
+ ]
5176
+ }
5177
+ ]
5029
5178
  },
5030
5179
  "percentFormat": {
5031
5180
  "type": "string",
@@ -5339,8 +5488,18 @@
5339
5488
  }
5340
5489
  },
5341
5490
  "duration": {
5342
- "type": "integer",
5343
- "minimum": 0
5491
+ "oneOf": [
5492
+ {
5493
+ "type": "integer",
5494
+ "minimum": 0
5495
+ },
5496
+ {
5497
+ "type": "string",
5498
+ "enum": [
5499
+ "{{dashboard.duration}}"
5500
+ ]
5501
+ }
5502
+ ]
5344
5503
  },
5345
5504
  "endColor": {
5346
5505
  "type": "string",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "patternProperties": {
5
5
  "^[0-9a-zA-Z_-]{1,255}$": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -112,8 +112,18 @@
112
112
  "type": "boolean"
113
113
  },
114
114
  "duration": {
115
- "type": "integer",
116
- "minimum": 0
115
+ "oneOf": [
116
+ {
117
+ "type": "integer",
118
+ "minimum": 0
119
+ },
120
+ {
121
+ "type": "string",
122
+ "enum": [
123
+ "{{dashboard.duration}}"
124
+ ]
125
+ }
126
+ ]
117
127
  },
118
128
  "xAxisFormat": {
119
129
  "type": "string",
@@ -554,8 +564,18 @@
554
564
  }
555
565
  },
556
566
  "duration": {
557
- "type": "integer",
558
- "minimum": 0
567
+ "oneOf": [
568
+ {
569
+ "type": "integer",
570
+ "minimum": 0
571
+ },
572
+ {
573
+ "type": "string",
574
+ "enum": [
575
+ "{{dashboard.duration}}"
576
+ ]
577
+ }
578
+ ]
559
579
  },
560
580
  "resolution": {
561
581
  "oneOf": [
@@ -727,8 +747,18 @@
727
747
  }
728
748
  },
729
749
  "duration": {
730
- "type": "integer",
731
- "minimum": 0
750
+ "oneOf": [
751
+ {
752
+ "type": "integer",
753
+ "minimum": 0
754
+ },
755
+ {
756
+ "type": "string",
757
+ "enum": [
758
+ "{{dashboard.duration}}"
759
+ ]
760
+ }
761
+ ]
732
762
  }
733
763
  },
734
764
  "additionalProperties": false
@@ -1463,8 +1493,18 @@
1463
1493
  }
1464
1494
  },
1465
1495
  "duration": {
1466
- "type": "integer",
1467
- "minimum": 0
1496
+ "oneOf": [
1497
+ {
1498
+ "type": "integer",
1499
+ "minimum": 0
1500
+ },
1501
+ {
1502
+ "type": "string",
1503
+ "enum": [
1504
+ "{{dashboard.duration}}"
1505
+ ]
1506
+ }
1507
+ ]
1468
1508
  },
1469
1509
  "sortDirection": {
1470
1510
  "type": "integer",
@@ -1713,8 +1753,18 @@
1713
1753
  "type": "boolean"
1714
1754
  },
1715
1755
  "duration": {
1716
- "type": "integer",
1717
- "minimum": 0
1756
+ "oneOf": [
1757
+ {
1758
+ "type": "integer",
1759
+ "minimum": 0
1760
+ },
1761
+ {
1762
+ "type": "string",
1763
+ "enum": [
1764
+ "{{dashboard.duration}}"
1765
+ ]
1766
+ }
1767
+ ]
1718
1768
  },
1719
1769
  "gaugeMax": {
1720
1770
  "oneOf": [
@@ -2035,8 +2085,18 @@
2035
2085
  "type": "boolean"
2036
2086
  },
2037
2087
  "duration": {
2038
- "type": "integer",
2039
- "minimum": 0
2088
+ "oneOf": [
2089
+ {
2090
+ "type": "integer",
2091
+ "minimum": 0
2092
+ },
2093
+ {
2094
+ "type": "string",
2095
+ "enum": [
2096
+ "{{dashboard.duration}}"
2097
+ ]
2098
+ }
2099
+ ]
2040
2100
  },
2041
2101
  "resolution": {
2042
2102
  "oneOf": [
@@ -2411,8 +2471,18 @@
2411
2471
  }
2412
2472
  },
2413
2473
  "duration": {
2414
- "type": "integer",
2415
- "minimum": 0
2474
+ "oneOf": [
2475
+ {
2476
+ "type": "integer",
2477
+ "minimum": 0
2478
+ },
2479
+ {
2480
+ "type": "string",
2481
+ "enum": [
2482
+ "{{dashboard.duration}}"
2483
+ ]
2484
+ }
2485
+ ]
2416
2486
  },
2417
2487
  "locationTagKey": {
2418
2488
  "oneOf": [
@@ -2800,8 +2870,18 @@
2800
2870
  }
2801
2871
  },
2802
2872
  "duration": {
2803
- "type": "integer",
2804
- "minimum": 0
2873
+ "oneOf": [
2874
+ {
2875
+ "type": "integer",
2876
+ "minimum": 0
2877
+ },
2878
+ {
2879
+ "type": "string",
2880
+ "enum": [
2881
+ "{{dashboard.duration}}"
2882
+ ]
2883
+ }
2884
+ ]
2805
2885
  }
2806
2886
  },
2807
2887
  "additionalProperties": false
@@ -3256,8 +3336,18 @@
3256
3336
  "type": "boolean"
3257
3337
  },
3258
3338
  "duration": {
3259
- "type": "integer",
3260
- "minimum": 0
3339
+ "oneOf": [
3340
+ {
3341
+ "type": "integer",
3342
+ "minimum": 0
3343
+ },
3344
+ {
3345
+ "type": "string",
3346
+ "enum": [
3347
+ "{{dashboard.duration}}"
3348
+ ]
3349
+ }
3350
+ ]
3261
3351
  },
3262
3352
  "segments": {
3263
3353
  "type": "array",
@@ -4685,8 +4775,18 @@
4685
4775
  }
4686
4776
  },
4687
4777
  "duration": {
4688
- "type": "integer",
4689
- "minimum": 0
4778
+ "oneOf": [
4779
+ {
4780
+ "type": "integer",
4781
+ "minimum": 0
4782
+ },
4783
+ {
4784
+ "type": "string",
4785
+ "enum": [
4786
+ "{{dashboard.duration}}"
4787
+ ]
4788
+ }
4789
+ ]
4690
4790
  },
4691
4791
  "endColor": {
4692
4792
  "type": "string",
@@ -4881,8 +4981,18 @@
4881
4981
  "type": "boolean"
4882
4982
  },
4883
4983
  "duration": {
4884
- "type": "integer",
4885
- "minimum": 0
4984
+ "oneOf": [
4985
+ {
4986
+ "type": "integer",
4987
+ "minimum": 0
4988
+ },
4989
+ {
4990
+ "type": "string",
4991
+ "enum": [
4992
+ "{{dashboard.duration}}"
4993
+ ]
4994
+ }
4995
+ ]
4886
4996
  },
4887
4997
  "percentFormat": {
4888
4998
  "type": "string",
@@ -5196,8 +5306,18 @@
5196
5306
  }
5197
5307
  },
5198
5308
  "duration": {
5199
- "type": "integer",
5200
- "minimum": 0
5309
+ "oneOf": [
5310
+ {
5311
+ "type": "integer",
5312
+ "minimum": 0
5313
+ },
5314
+ {
5315
+ "type": "string",
5316
+ "enum": [
5317
+ "{{dashboard.duration}}"
5318
+ ]
5319
+ }
5320
+ ]
5201
5321
  },
5202
5322
  "endColor": {
5203
5323
  "type": "string",
@@ -5472,7 +5592,38 @@
5472
5592
  "maxLength": 5
5473
5593
  },
5474
5594
  "ctx": {
5475
- "ref": "#/definitions/dashboardContextInstance"
5595
+ "title": "Dashboard Context Instance",
5596
+ "description": "Schema for a dashboard context instance",
5597
+ "type": "object",
5598
+ "patternProperties": {
5599
+ "^[0-9a-zA-Z_-]{1,255}$": {
5600
+ "oneOf": [
5601
+ {
5602
+ "type": "string",
5603
+ "maxLength": 32767
5604
+ },
5605
+ {
5606
+ "type": "number"
5607
+ },
5608
+ {
5609
+ "type": "object",
5610
+ "properties": {
5611
+ "key": {
5612
+ "type": "string",
5613
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
5614
+ },
5615
+ "value": {
5616
+ "type": "string",
5617
+ "minLength": 1,
5618
+ "maxLength": 255
5619
+ }
5620
+ },
5621
+ "additionalProperties": false
5622
+ }
5623
+ ]
5624
+ }
5625
+ },
5626
+ "additionalProperties": false
5476
5627
  },
5477
5628
  "branded": {
5478
5629
  "type": "boolean"
@@ -5504,6 +5655,14 @@
5504
5655
  "minimum": 5,
5505
5656
  "maximum": 600
5506
5657
  },
5658
+ "duration": {
5659
+ "type": "integer",
5660
+ "minimum": 1
5661
+ },
5662
+ "resolution": {
5663
+ "type": "integer",
5664
+ "minimum": 1
5665
+ },
5507
5666
  "defaultTheme": {
5508
5667
  "type": "string",
5509
5668
  "enum": [