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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +1706 -407
- data/docs/dashboard.md +2 -0
- data/docs/dataTableRows.md +1 -1
- data/docs/device.md +4 -0
- data/docs/deviceRecipe.md +4 -0
- data/docs/deviceRecipes.md +4 -0
- data/docs/devices.md +4 -0
- data/docs/embeddedDeployments.md +1 -1
- data/docs/me.md +36 -0
- data/docs/notebook.md +44 -1
- data/docs/notebooks.md +1 -1
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/dashboard.rb +4 -0
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/device.rb +8 -0
- data/lib/losant_rest/device_recipe.rb +8 -0
- data/lib/losant_rest/device_recipes.rb +8 -0
- data/lib/losant_rest/devices.rb +8 -0
- data/lib/losant_rest/embedded_deployments.rb +1 -1
- data/lib/losant_rest/me.rb +41 -0
- data/lib/losant_rest/notebook.rb +50 -1
- data/lib/losant_rest/notebooks.rb +1 -1
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/advancedApplicationKeyQuery.json +1 -1
- data/schemas/advancedDeviceQuery.json +1 -1
- data/schemas/advancedEventQuery.json +1 -1
- data/schemas/advancedFlowByVersionQuery.json +1 -1
- data/schemas/advancedFlowQuery.json +1 -1
- data/schemas/advancedFlowVersionQuery.json +1 -1
- data/schemas/advancedQuery.json +1 -1
- data/schemas/apiToken.json +1 -1
- data/schemas/apiTokenPatch.json +1 -1
- data/schemas/apiTokenPost.json +2 -1
- data/schemas/apiTokens.json +1 -1
- data/schemas/application.json +1 -1
- data/schemas/applicationApplyTemplatePatch.json +1 -1
- data/schemas/applicationCertificate.json +1 -1
- data/schemas/applicationCertificateAuthorities.json +1 -1
- data/schemas/applicationCertificateAuthority.json +1 -1
- data/schemas/applicationCertificateAuthorityPatch.json +1 -1
- data/schemas/applicationCertificateAuthorityPost.json +1 -1
- data/schemas/applicationCertificatePatch.json +1 -1
- data/schemas/applicationCertificatePost.json +1 -1
- data/schemas/applicationCertificates.json +1 -1
- data/schemas/applicationCloneDryRunResult.json +1 -1
- data/schemas/applicationClonePost.json +5 -1
- data/schemas/applicationCreationByTemplateResult.json +1 -1
- data/schemas/applicationDashboardPost.json +185 -26
- data/schemas/applicationExportPost.json +1 -1
- data/schemas/applicationExportResult.json +1 -1
- data/schemas/applicationGlobalPatch.json +1 -1
- data/schemas/applicationKey.json +1 -1
- data/schemas/applicationKeyPatch.json +1 -1
- data/schemas/applicationKeyPost.json +1 -1
- data/schemas/applicationKeyPostResponse.json +1 -1
- data/schemas/applicationKeys.json +1 -1
- data/schemas/applicationPatch.json +1 -1
- data/schemas/applicationPost.json +1 -1
- data/schemas/applicationReadme.json +1 -1
- data/schemas/applicationReadmePatch.json +1 -1
- data/schemas/applicationSearchResult.json +1 -1
- data/schemas/applicationTemplate.json +1 -1
- data/schemas/applicationTemplateCategories.json +1 -1
- data/schemas/applicationTemplateCategory.json +1 -1
- data/schemas/applicationTemplates.json +1 -1
- data/schemas/applications.json +1 -1
- data/schemas/attributeNamesResponse.json +1 -1
- data/schemas/auditLog.json +1 -1
- data/schemas/auditLogFilter.json +1 -1
- data/schemas/auditLogs.json +1 -1
- data/schemas/authedDevice.json +1 -1
- data/schemas/authedUser.json +1 -1
- data/schemas/bulkDeleteResponse.json +1 -1
- data/schemas/changePassword.json +1 -1
- data/schemas/compositeDeviceState.json +1 -1
- data/schemas/dashboard.json +185 -26
- data/schemas/dashboardContextInstance.json +1 -1
- data/schemas/dashboardPatch.json +185 -26
- data/schemas/dashboardPost.json +185 -26
- data/schemas/dashboardSendReport.json +33 -2
- data/schemas/dashboardUpdateEvents.json +1 -1
- data/schemas/dashboards.json +185 -26
- data/schemas/dataExport.json +1 -1
- data/schemas/dataTable.json +1 -1
- data/schemas/dataTableColumn.json +1 -1
- data/schemas/dataTablePatch.json +1 -1
- data/schemas/dataTablePost.json +1 -1
- data/schemas/dataTableRow.json +1 -1
- data/schemas/dataTableRowInMultiple.json +1 -1
- data/schemas/dataTableRowInsert.json +1 -1
- data/schemas/dataTableRowInsertResult.json +1 -1
- data/schemas/dataTableRowInsertUpdate.json +1 -1
- data/schemas/dataTableRows.json +1 -1
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/dataTableRowsExport.json +1 -1
- data/schemas/dataTables.json +1 -1
- data/schemas/device.json +1 -1
- data/schemas/deviceAttributeDataTypeFilter.json +1 -1
- data/schemas/deviceClassFilter.json +1 -1
- data/schemas/deviceCommand.json +1 -1
- data/schemas/deviceCommands.json +1 -1
- data/schemas/deviceConnectionStatus.json +1 -1
- data/schemas/deviceCredentials.json +1 -1
- data/schemas/deviceLog.json +1 -1
- data/schemas/deviceNamesResponse.json +1 -1
- data/schemas/devicePatch.json +1 -1
- data/schemas/devicePayloadCounts.json +1 -1
- data/schemas/devicePost.json +1 -1
- data/schemas/deviceRecipe.json +1 -1
- data/schemas/deviceRecipeBulkCreate.json +1 -1
- data/schemas/deviceRecipeBulkCreateEnqueued.json +5 -1
- data/schemas/deviceRecipeBulkCreatePost.json +1 -1
- data/schemas/deviceRecipePatch.json +1 -1
- data/schemas/deviceRecipePost.json +1 -1
- data/schemas/deviceRecipes.json +1 -1
- data/schemas/deviceState.json +1 -1
- data/schemas/deviceStateOrStates.json +1 -1
- data/schemas/deviceStates.json +1 -1
- data/schemas/deviceTagFilter.json +1 -1
- data/schemas/devices.json +1 -1
- data/schemas/devicesDataRemoved.json +1 -1
- data/schemas/devicesDeletePost.json +1 -1
- data/schemas/devicesExportPayloadCountPost.json +1 -1
- data/schemas/devicesExportPost.json +1 -1
- data/schemas/devicesPatch.json +1 -1
- data/schemas/devicesRemoveDataPost.json +1 -1
- data/schemas/devicesUpdated.json +1 -1
- data/schemas/disableTwoFactorAuth.json +1 -1
- data/schemas/edgeDeployment.json +1 -1
- data/schemas/edgeDeploymentRelease.json +1 -1
- data/schemas/edgeDeploymentRemove.json +1 -1
- data/schemas/edgeDeploymentReplace.json +1 -1
- data/schemas/edgeDeployments.json +1 -1
- data/schemas/emailVerificationVerify.json +1 -1
- data/schemas/embeddedDeployment.json +1 -1
- data/schemas/embeddedDeploymentExport.json +1 -1
- data/schemas/embeddedDeploymentRelease.json +1 -1
- data/schemas/embeddedDeploymentRemove.json +1 -1
- data/schemas/embeddedDeploymentReplace.json +1 -1
- data/schemas/embeddedDeployments.json +1 -1
- data/schemas/enableTwoFactorAuth.json +6 -2
- data/schemas/error.json +1 -1
- data/schemas/event.json +1 -1
- data/schemas/eventPatch.json +1 -1
- data/schemas/eventPost.json +1 -1
- data/schemas/eventTagsSummary.json +1 -1
- data/schemas/events.json +1 -1
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/eventsExport.json +1 -1
- data/schemas/experienceBootstrapOptions.json +1 -1
- data/schemas/experienceBootstrapResult.json +1 -1
- data/schemas/experienceDomain.json +1 -1
- data/schemas/experienceDomainPatch.json +1 -1
- data/schemas/experienceDomainPost.json +1 -1
- data/schemas/experienceDomains.json +1 -1
- data/schemas/experienceEndpoint.json +1 -1
- data/schemas/experienceEndpointPatch.json +1 -1
- data/schemas/experienceEndpointPost.json +1 -1
- data/schemas/experienceEndpointStats.json +1 -1
- data/schemas/experienceEndpoints.json +1 -1
- data/schemas/experienceGroup.json +1 -1
- data/schemas/experienceGroupPatch.json +1 -1
- data/schemas/experienceGroupPost.json +1 -1
- data/schemas/experienceGroups.json +1 -1
- data/schemas/experienceLinkedResources.json +4 -1
- data/schemas/experienceSlug.json +1 -1
- data/schemas/experienceSlugPatch.json +1 -1
- data/schemas/experienceSlugPost.json +1 -1
- data/schemas/experienceSlugs.json +1 -1
- data/schemas/experienceUser.json +1 -1
- data/schemas/experienceUserPatch.json +1 -1
- data/schemas/experienceUserPost.json +1 -1
- data/schemas/experienceUsers.json +1 -1
- data/schemas/experienceVersion.json +28 -1
- data/schemas/experienceVersionPatch.json +28 -1
- data/schemas/experienceVersionPost.json +40 -1
- data/schemas/experienceVersions.json +28 -1
- data/schemas/experienceView.json +1 -1
- data/schemas/experienceViewPatch.json +1 -1
- data/schemas/experienceViewPost.json +1 -1
- data/schemas/experienceViews.json +1 -1
- data/schemas/file.json +1 -1
- data/schemas/filePatch.json +1 -1
- data/schemas/filePost.json +1 -1
- data/schemas/fileUploadPostResponse.json +1 -1
- data/schemas/files.json +1 -1
- data/schemas/flow.json +2 -1
- data/schemas/flowErrors.json +1 -1
- data/schemas/flowLog.json +1 -1
- data/schemas/flowPatch.json +2 -1
- data/schemas/flowPost.json +2 -1
- data/schemas/flowStats.json +1 -1
- data/schemas/flowStorageEntries.json +1 -1
- data/schemas/flowStorageEntry.json +1 -1
- data/schemas/flowStorageMetadata.json +1 -1
- data/schemas/flowTriggerFilter.json +1 -1
- data/schemas/flowVersion.json +3 -1
- data/schemas/flowVersionPatch.json +1 -1
- data/schemas/flowVersionPost.json +2 -1
- data/schemas/flowVersions.json +3 -1
- data/schemas/flowVersionsDeletePost.json +1 -1
- data/schemas/flows.json +2 -1
- data/schemas/flowsImportPost.json +3 -1
- data/schemas/flowsImportResult.json +4 -1
- data/schemas/githubLogin.json +2 -1
- data/schemas/historicalSummaries.json +1 -1
- data/schemas/historicalSummary.json +1 -1
- data/schemas/importIntoApplicationOptions.json +9 -2
- data/schemas/importNewApplicationOptions.json +2 -1
- data/schemas/instance.json +1 -1
- data/schemas/instanceCustomNode.json +1 -1
- data/schemas/instanceCustomNodePatch.json +2 -1
- data/schemas/instanceCustomNodePost.json +2 -1
- data/schemas/instanceCustomNodes.json +1 -1
- data/schemas/instanceMember.json +1 -1
- data/schemas/instanceMemberPatch.json +1 -1
- data/schemas/instanceMemberPost.json +1 -1
- data/schemas/instanceMembers.json +1 -1
- data/schemas/instanceOrg.json +1 -1
- data/schemas/instanceOrgMember.json +1 -1
- data/schemas/instanceOrgMemberPatch.json +1 -1
- data/schemas/instanceOrgMemberPost.json +1 -1
- data/schemas/instanceOrgMembers.json +1 -1
- data/schemas/instanceOrgPatch.json +3 -2
- data/schemas/instanceOrgPost.json +3 -2
- data/schemas/instanceOrgs.json +1 -1
- data/schemas/instancePatch.json +1 -1
- data/schemas/instanceReportOptionsPost.json +1 -1
- data/schemas/instanceSandbox.json +1 -1
- data/schemas/instanceSandboxes.json +1 -1
- data/schemas/instances.json +1 -1
- data/schemas/integration.json +35 -2
- data/schemas/integrationPatch.json +35 -2
- data/schemas/integrationPost.json +35 -2
- data/schemas/integrations.json +35 -2
- data/schemas/jobEnqueuedResult.json +5 -1
- data/schemas/lastValueData.json +1 -1
- data/schemas/lastValueQuery.json +1 -1
- data/schemas/me.json +1 -1
- data/schemas/mePatch.json +1 -1
- data/schemas/mqttPublishBody.json +1 -1
- data/schemas/multiDeviceCommand.json +1 -1
- data/schemas/notebook.json +1 -1
- data/schemas/notebookDataExportOptions.json +1 -1
- data/schemas/notebookExecutionLogs.json +1 -1
- data/schemas/notebookExecutionOptions.json +1 -1
- data/schemas/notebookPatch.json +1 -1
- data/schemas/notebookPost.json +1 -1
- data/schemas/notebooks.json +1 -1
- data/schemas/org.json +1 -1
- data/schemas/orgInvite.json +1 -1
- data/schemas/orgInviteAction.json +1 -1
- data/schemas/orgInviteCollection.json +1 -1
- data/schemas/orgInviteInfo.json +1 -1
- data/schemas/orgInvitePost.json +1 -1
- data/schemas/orgInviteResult.json +1 -1
- data/schemas/orgInvites.json +1 -1
- data/schemas/orgMemberPatch.json +1 -1
- data/schemas/orgPatch.json +1 -1
- data/schemas/orgPost.json +1 -1
- data/schemas/orgRoleInfo.json +1 -1
- data/schemas/orgs.json +1 -1
- data/schemas/paletteResponse.json +1 -1
- data/schemas/passwordResetFinish.json +1 -1
- data/schemas/passwordResetInput.json +1 -1
- data/schemas/passwordResetResponse.json +1 -1
- data/schemas/payloadStats.json +1 -1
- data/schemas/recentItem.json +1 -1
- data/schemas/recentItemList.json +1 -1
- data/schemas/resourceTransfer.json +1 -1
- data/schemas/samlResponse.json +2 -1
- data/schemas/ssoRequest.json +1 -1
- data/schemas/success.json +1 -1
- data/schemas/successWithExecutionId.json +16 -0
- data/schemas/successWithJobId.json +16 -0
- data/schemas/tagKeysResponse.json +1 -1
- data/schemas/tagValuesResponse.json +1 -1
- data/schemas/templateKeywords.json +1 -1
- data/schemas/timeSeriesData.json +1 -1
- data/schemas/timeSeriesQuery.json +1 -1
- data/schemas/twoFactorAuthInfo.json +15 -0
- data/schemas/userCredentials.json +2 -1
- data/schemas/userPost.json +2 -1
- data/schemas/validateContextError.json +28 -1
- data/schemas/validateContextSuccess.json +28 -1
- data/schemas/validationErrors.json +1 -1
- data/schemas/virtualButtonPress.json +1 -1
- data/schemas/webhook.json +1 -1
- data/schemas/webhookPatch.json +1 -1
- data/schemas/webhookPost.json +1 -1
- data/schemas/webhooks.json +1 -1
- metadata +5 -2
data/schemas/changePassword.json
CHANGED
data/schemas/dashboard.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"$schema": "http://json-schema.org/draft-
|
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
|
-
"
|
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
|
-
"
|
259
|
-
|
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
|
-
"
|
701
|
-
|
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
|
-
"
|
874
|
-
|
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
|
-
"
|
1610
|
-
|
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
|
-
"
|
1860
|
-
|
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
|
-
"
|
2182
|
-
|
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
|
-
"
|
2558
|
-
|
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
|
-
"
|
2947
|
-
|
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
|
-
"
|
3403
|
-
|
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
|
-
"
|
4832
|
-
|
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
|
-
"
|
5028
|
-
|
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
|
-
"
|
5343
|
-
|
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",
|
data/schemas/dashboardPatch.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"$schema": "http://json-schema.org/draft-
|
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
|
-
"
|
116
|
-
|
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
|
-
"
|
558
|
-
|
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
|
-
"
|
731
|
-
|
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
|
-
"
|
1467
|
-
|
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
|
-
"
|
1717
|
-
|
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
|
-
"
|
2039
|
-
|
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
|
-
"
|
2415
|
-
|
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
|
-
"
|
2804
|
-
|
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
|
-
"
|
3260
|
-
|
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
|
-
"
|
4689
|
-
|
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
|
-
"
|
4885
|
-
|
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
|
-
"
|
5200
|
-
|
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
|
-
"
|
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": [
|