Fledge
An open source edge computing platform for industrial users
basetypes.h
1 #ifndef _BASETYPES_H
2 #define _BASETYPES_H
3 /*
4  * Fledge OSIsoft OMF interface to PI Server.
5  *
6  * Copyright (c) 2022 Dianomic Systems
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 #include <plugin_api.h>
13 
14 static const char *baseOMFTypes = QUOTE(
15  [
16  {
17  "id":"Double64",
18  "type":"object",
19  "classification":"dynamic",
20  "properties":{
21  "Double64":{
22  "type":["number", "null"],
23  "format":"float64"
24  },
25  "Time":{
26  "type":"string",
27  "format":"date-time",
28  "isindex":true
29  }
30  }
31  },
32  {
33  "id":"Double32",
34  "type":"object",
35  "classification":"dynamic",
36  "properties":{
37  "Double32":{
38  "type":["number", "null"],
39  "format":"float32"
40  },
41  "Time":{
42  "type":"string",
43  "format":"date-time",
44  "isindex":true
45  }
46  }
47  },
48  {
49  "id":"Integer16",
50  "type":"object",
51  "classification":"dynamic",
52  "properties":{
53  "Integer16":{
54  "type":["integer","null"],
55  "format":"int16"
56  },
57  "Time":{
58  "type":"string",
59  "format":"date-time",
60  "isindex":true
61  }
62  }
63  },
64  {
65  "id":"Integer32",
66  "type":"object",
67  "classification":"dynamic",
68  "properties":{
69  "Integer32":{
70  "type":["integer","null"],
71  "format":"int32"
72  },
73  "Time":{
74  "type":"string",
75  "format":"date-time",
76  "isindex":true
77  }
78  }
79  },
80  {
81  "id":"Integer64",
82  "type":"object",
83  "classification":"dynamic",
84  "properties":{
85  "Integer64":{
86  "type":["integer","null"],
87  "format":"int64"
88  },
89  "Time":{
90  "type":"string",
91  "format":"date-time",
92  "isindex":true
93  }
94  }
95  },
96  {
97  "id":"UInteger16",
98  "type":"object",
99  "classification":"dynamic",
100  "properties":{
101  "UInteger16":{
102  "type":["integer","null"],
103  "format":"uint16"
104  },
105  "Time":{
106  "type":"string",
107  "format":"date-time",
108  "isindex":true
109  }
110  }
111  },
112  {
113  "id":"UInteger32",
114  "type":"object",
115  "classification":"dynamic",
116  "properties":{
117  "UInteger32":{
118  "type":["integer","null"],
119  "format":"uint32"
120  },
121  "Time":{
122  "type":"string",
123  "format":"date-time",
124  "isindex":true
125  }
126  }
127  },
128  {
129  "id":"UInteger64",
130  "type":"object",
131  "classification":"dynamic",
132  "properties":{
133  "UInteger64":{
134  "type":["integer","null"],
135  "format":"uint64"
136  },
137  "Time":{
138  "type":"string",
139  "format":"date-time",
140  "isindex":true
141  }
142  }
143  },
144  {
145  "id":"String",
146  "type":"object",
147  "classification":"dynamic",
148  "properties":{
149  "String":{
150  "type":["string","null"]
151  },
152  "Time":{
153  "type":"string",
154  "format":"date-time",
155  "isindex":true
156  }
157  }
158  },
159  {
160  "id":"FledgeAsset",
161  "type":"object",
162  "classification":"static",
163  "properties":{
164  "AssetId": {"type": "string", "isindex": true },
165  "Name" : { "type": "string", "isname": true }
166  }
167 
168  }
169  ]);
170 
171 #endif