losant_rest 1.22.0 → 1.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/_schemas.md +8258 -5884
- data/docs/applicationJobLog.md +49 -0
- data/docs/applicationJobLogs.md +51 -0
- data/docs/data.md +1 -1
- data/docs/device.md +1 -0
- data/docs/events.md +3 -0
- data/lib/platform_rest/application_job_log.rb +81 -0
- data/lib/platform_rest/application_job_logs.rb +90 -0
- data/lib/platform_rest/client.rb +10 -2
- data/lib/platform_rest/data.rb +1 -1
- data/lib/platform_rest/device.rb +2 -0
- data/lib/platform_rest/events.rb +5 -0
- data/lib/platform_rest/version.rb +1 -1
- data/lib/platform_rest.rb +2 -0
- data/schemas/advancedApplicationJobLogQuery.json +855 -0
- data/schemas/apiTokenPost.json +5 -0
- data/schemas/application.json +4 -0
- data/schemas/applicationCreationByTemplateResult.json +4 -0
- data/schemas/applicationDashboardPost.json +120 -0
- data/schemas/applicationJobLog.json +250 -0
- data/schemas/applicationJobLogs.json +292 -0
- data/schemas/applicationPatch.json +4 -0
- data/schemas/applicationPost.json +4 -0
- data/schemas/applications.json +4 -0
- data/schemas/dashboard.json +120 -0
- data/schemas/dashboardPatch.json +120 -0
- data/schemas/dashboardPost.json +120 -0
- data/schemas/dashboards.json +120 -0
- data/schemas/dataExport.json +4 -0
- data/schemas/deviceDataExport.json +48 -0
- data/schemas/devicesDataExport.json +2116 -0
- data/schemas/devicesPatch.json +65 -0
- data/schemas/githubLogin.json +5 -0
- data/schemas/samlResponse.json +5 -0
- data/schemas/suggestFunctionPost.json +15 -0
- data/schemas/suggestFunctionResponse.json +37 -0
- data/schemas/userCredentials.json +5 -0
- data/schemas/userPost.json +5 -0
- metadata +13 -2
data/schemas/dashboardPost.json
CHANGED
@@ -888,6 +888,45 @@
|
|
888
888
|
}
|
889
889
|
},
|
890
890
|
"additionalProperties": false
|
891
|
+
},
|
892
|
+
{
|
893
|
+
"type": "object",
|
894
|
+
"properties": {
|
895
|
+
"queryType": {
|
896
|
+
"type": "string",
|
897
|
+
"enum": [
|
898
|
+
"events"
|
899
|
+
]
|
900
|
+
},
|
901
|
+
"id": {
|
902
|
+
"type": "string",
|
903
|
+
"maxLength": 48
|
904
|
+
},
|
905
|
+
"sortField": {
|
906
|
+
"type": "string",
|
907
|
+
"maxLength": 255
|
908
|
+
},
|
909
|
+
"sortDirection": {
|
910
|
+
"type": "string",
|
911
|
+
"maxLength": 255
|
912
|
+
},
|
913
|
+
"page": {
|
914
|
+
"type": "string",
|
915
|
+
"maxLength": 255
|
916
|
+
},
|
917
|
+
"perPage": {
|
918
|
+
"type": "string",
|
919
|
+
"maxLength": 255
|
920
|
+
},
|
921
|
+
"query": {
|
922
|
+
"type": "string",
|
923
|
+
"maxLength": 32767
|
924
|
+
},
|
925
|
+
"includeExtendedEventInfo": {
|
926
|
+
"type": "boolean"
|
927
|
+
}
|
928
|
+
},
|
929
|
+
"additionalProperties": false
|
891
930
|
}
|
892
931
|
]
|
893
932
|
}
|
@@ -2561,6 +2600,18 @@
|
|
2561
2600
|
"format": {
|
2562
2601
|
"type": "string",
|
2563
2602
|
"maxLength": 255
|
2603
|
+
},
|
2604
|
+
"scale": {
|
2605
|
+
"type": "string",
|
2606
|
+
"enum": [
|
2607
|
+
"linear",
|
2608
|
+
"log",
|
2609
|
+
"sqrt"
|
2610
|
+
],
|
2611
|
+
"default": "linear"
|
2612
|
+
},
|
2613
|
+
"stacked": {
|
2614
|
+
"type": "boolean"
|
2564
2615
|
}
|
2565
2616
|
},
|
2566
2617
|
"additionalProperties": false,
|
@@ -2568,6 +2619,75 @@
|
|
2568
2619
|
"id"
|
2569
2620
|
]
|
2570
2621
|
}
|
2622
|
+
},
|
2623
|
+
"decorators": {
|
2624
|
+
"type": "array",
|
2625
|
+
"maxItems": 10,
|
2626
|
+
"items": {
|
2627
|
+
"type": "object",
|
2628
|
+
"properties": {
|
2629
|
+
"type": {
|
2630
|
+
"type": "string",
|
2631
|
+
"enum": [
|
2632
|
+
"line",
|
2633
|
+
"area"
|
2634
|
+
]
|
2635
|
+
},
|
2636
|
+
"yAxisId": {
|
2637
|
+
"type": "string",
|
2638
|
+
"maxLength": 48
|
2639
|
+
},
|
2640
|
+
"label": {
|
2641
|
+
"type": "string",
|
2642
|
+
"maxLength": 255
|
2643
|
+
},
|
2644
|
+
"color": {
|
2645
|
+
"type": "string",
|
2646
|
+
"maxLength": 64
|
2647
|
+
},
|
2648
|
+
"lineStyle": {
|
2649
|
+
"type": "string",
|
2650
|
+
"enum": [
|
2651
|
+
"solid",
|
2652
|
+
"dotted",
|
2653
|
+
"dashed"
|
2654
|
+
]
|
2655
|
+
},
|
2656
|
+
"lineWeight": {
|
2657
|
+
"type": "integer",
|
2658
|
+
"minimum": 0,
|
2659
|
+
"maximum": 5
|
2660
|
+
},
|
2661
|
+
"y1": {
|
2662
|
+
"oneOf": [
|
2663
|
+
{
|
2664
|
+
"type": "number"
|
2665
|
+
},
|
2666
|
+
{
|
2667
|
+
"type": "string",
|
2668
|
+
"maxLength": 128
|
2669
|
+
}
|
2670
|
+
]
|
2671
|
+
},
|
2672
|
+
"y2": {
|
2673
|
+
"oneOf": [
|
2674
|
+
{
|
2675
|
+
"type": "number"
|
2676
|
+
},
|
2677
|
+
{
|
2678
|
+
"type": "string",
|
2679
|
+
"maxLength": 128
|
2680
|
+
}
|
2681
|
+
]
|
2682
|
+
}
|
2683
|
+
},
|
2684
|
+
"required": [
|
2685
|
+
"type",
|
2686
|
+
"yAxisId",
|
2687
|
+
"y1"
|
2688
|
+
],
|
2689
|
+
"additionalProperties": false
|
2690
|
+
}
|
2571
2691
|
}
|
2572
2692
|
},
|
2573
2693
|
"additionalProperties": false
|
data/schemas/dashboards.json
CHANGED
@@ -1093,6 +1093,45 @@
|
|
1093
1093
|
}
|
1094
1094
|
},
|
1095
1095
|
"additionalProperties": false
|
1096
|
+
},
|
1097
|
+
{
|
1098
|
+
"type": "object",
|
1099
|
+
"properties": {
|
1100
|
+
"queryType": {
|
1101
|
+
"type": "string",
|
1102
|
+
"enum": [
|
1103
|
+
"events"
|
1104
|
+
]
|
1105
|
+
},
|
1106
|
+
"id": {
|
1107
|
+
"type": "string",
|
1108
|
+
"maxLength": 48
|
1109
|
+
},
|
1110
|
+
"sortField": {
|
1111
|
+
"type": "string",
|
1112
|
+
"maxLength": 255
|
1113
|
+
},
|
1114
|
+
"sortDirection": {
|
1115
|
+
"type": "string",
|
1116
|
+
"maxLength": 255
|
1117
|
+
},
|
1118
|
+
"page": {
|
1119
|
+
"type": "string",
|
1120
|
+
"maxLength": 255
|
1121
|
+
},
|
1122
|
+
"perPage": {
|
1123
|
+
"type": "string",
|
1124
|
+
"maxLength": 255
|
1125
|
+
},
|
1126
|
+
"query": {
|
1127
|
+
"type": "string",
|
1128
|
+
"maxLength": 32767
|
1129
|
+
},
|
1130
|
+
"includeExtendedEventInfo": {
|
1131
|
+
"type": "boolean"
|
1132
|
+
}
|
1133
|
+
},
|
1134
|
+
"additionalProperties": false
|
1096
1135
|
}
|
1097
1136
|
]
|
1098
1137
|
}
|
@@ -2766,6 +2805,18 @@
|
|
2766
2805
|
"format": {
|
2767
2806
|
"type": "string",
|
2768
2807
|
"maxLength": 255
|
2808
|
+
},
|
2809
|
+
"scale": {
|
2810
|
+
"type": "string",
|
2811
|
+
"enum": [
|
2812
|
+
"linear",
|
2813
|
+
"log",
|
2814
|
+
"sqrt"
|
2815
|
+
],
|
2816
|
+
"default": "linear"
|
2817
|
+
},
|
2818
|
+
"stacked": {
|
2819
|
+
"type": "boolean"
|
2769
2820
|
}
|
2770
2821
|
},
|
2771
2822
|
"additionalProperties": false,
|
@@ -2773,6 +2824,75 @@
|
|
2773
2824
|
"id"
|
2774
2825
|
]
|
2775
2826
|
}
|
2827
|
+
},
|
2828
|
+
"decorators": {
|
2829
|
+
"type": "array",
|
2830
|
+
"maxItems": 10,
|
2831
|
+
"items": {
|
2832
|
+
"type": "object",
|
2833
|
+
"properties": {
|
2834
|
+
"type": {
|
2835
|
+
"type": "string",
|
2836
|
+
"enum": [
|
2837
|
+
"line",
|
2838
|
+
"area"
|
2839
|
+
]
|
2840
|
+
},
|
2841
|
+
"yAxisId": {
|
2842
|
+
"type": "string",
|
2843
|
+
"maxLength": 48
|
2844
|
+
},
|
2845
|
+
"label": {
|
2846
|
+
"type": "string",
|
2847
|
+
"maxLength": 255
|
2848
|
+
},
|
2849
|
+
"color": {
|
2850
|
+
"type": "string",
|
2851
|
+
"maxLength": 64
|
2852
|
+
},
|
2853
|
+
"lineStyle": {
|
2854
|
+
"type": "string",
|
2855
|
+
"enum": [
|
2856
|
+
"solid",
|
2857
|
+
"dotted",
|
2858
|
+
"dashed"
|
2859
|
+
]
|
2860
|
+
},
|
2861
|
+
"lineWeight": {
|
2862
|
+
"type": "integer",
|
2863
|
+
"minimum": 0,
|
2864
|
+
"maximum": 5
|
2865
|
+
},
|
2866
|
+
"y1": {
|
2867
|
+
"oneOf": [
|
2868
|
+
{
|
2869
|
+
"type": "number"
|
2870
|
+
},
|
2871
|
+
{
|
2872
|
+
"type": "string",
|
2873
|
+
"maxLength": 128
|
2874
|
+
}
|
2875
|
+
]
|
2876
|
+
},
|
2877
|
+
"y2": {
|
2878
|
+
"oneOf": [
|
2879
|
+
{
|
2880
|
+
"type": "number"
|
2881
|
+
},
|
2882
|
+
{
|
2883
|
+
"type": "string",
|
2884
|
+
"maxLength": 128
|
2885
|
+
}
|
2886
|
+
]
|
2887
|
+
}
|
2888
|
+
},
|
2889
|
+
"required": [
|
2890
|
+
"type",
|
2891
|
+
"yAxisId",
|
2892
|
+
"y1"
|
2893
|
+
],
|
2894
|
+
"additionalProperties": false
|
2895
|
+
}
|
2776
2896
|
}
|
2777
2897
|
},
|
2778
2898
|
"additionalProperties": false
|
data/schemas/dataExport.json
CHANGED
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"email": {
|
6
|
+
"type": "string",
|
7
|
+
"format": "email",
|
8
|
+
"maxLength": 1024
|
9
|
+
},
|
10
|
+
"callbackUrl": {
|
11
|
+
"type": "string",
|
12
|
+
"format": "uri",
|
13
|
+
"maxLength": 1024
|
14
|
+
},
|
15
|
+
"attributes": {
|
16
|
+
"type": "array",
|
17
|
+
"maxItems": 256,
|
18
|
+
"items": {
|
19
|
+
"type": "string",
|
20
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"start": {
|
24
|
+
"type": "number"
|
25
|
+
},
|
26
|
+
"end": {
|
27
|
+
"type": "number"
|
28
|
+
},
|
29
|
+
"options": {
|
30
|
+
"type": "object",
|
31
|
+
"properties": {
|
32
|
+
"includeDate": {
|
33
|
+
"type": "boolean",
|
34
|
+
"default": true
|
35
|
+
},
|
36
|
+
"includeID": {
|
37
|
+
"type": "boolean",
|
38
|
+
"default": true
|
39
|
+
},
|
40
|
+
"includeBlobData": {
|
41
|
+
"type": "boolean",
|
42
|
+
"default": false
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"additionalProperties": false
|
48
|
+
}
|