python-eigen-ingenuity 0.5.1b1__py3-none-any.whl → 0.5.1b2__py3-none-any.whl
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.
- eigeningenuity/historianmulti.py +17 -12
- {python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/METADATA +1 -1
- {python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/RECORD +6 -6
- {python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/WHEEL +0 -0
- {python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/entry_points.txt +0 -0
- {python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/top_level.txt +0 -0
eigeningenuity/historianmulti.py
CHANGED
|
@@ -67,11 +67,12 @@ class HistorianMulti (object):
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
for tag in tags:
|
|
70
|
+
fulltag = tag
|
|
70
71
|
if "/" not in tag:
|
|
71
|
-
|
|
72
|
+
fulltag = self.historian + tag
|
|
72
73
|
request = {
|
|
73
74
|
"type": "CURRENT_POINT",
|
|
74
|
-
"tag":
|
|
75
|
+
"tag": fulltag,
|
|
75
76
|
"details": {}
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -111,18 +112,19 @@ class HistorianMulti (object):
|
|
|
111
112
|
timestamps = [time_to_epoch_millis(timestamp) for timestamp in timestamps]
|
|
112
113
|
|
|
113
114
|
for tag in tags:
|
|
115
|
+
fulltag = tag
|
|
114
116
|
if "/" not in tag:
|
|
115
|
-
|
|
117
|
+
fulltag = self.historian + tag
|
|
116
118
|
for index, timestamp in enumerate(timestamps):
|
|
117
119
|
request = {
|
|
118
120
|
"type": "HISTORICAL_POINT",
|
|
119
|
-
"tag":
|
|
121
|
+
"tag": fulltag,
|
|
120
122
|
"details": {
|
|
121
123
|
"at": timestamp
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
body["requests"][tag
|
|
127
|
+
body["requests"][tag + "-" + str(index)] = request
|
|
126
128
|
|
|
127
129
|
|
|
128
130
|
response = _do_historian_multi_request(self.serverurl,body,self.auth)
|
|
@@ -159,11 +161,12 @@ class HistorianMulti (object):
|
|
|
159
161
|
tags = force_list(tags)
|
|
160
162
|
|
|
161
163
|
for tag in tags:
|
|
164
|
+
fulltag = tag
|
|
162
165
|
if "/" not in tag:
|
|
163
|
-
|
|
166
|
+
fulltag = self.historian + tag
|
|
164
167
|
request = {
|
|
165
168
|
"type": "INTERPOLATED_POINTS",
|
|
166
|
-
"tag":
|
|
169
|
+
"tag": fulltag,
|
|
167
170
|
"details": {
|
|
168
171
|
"from": time_to_epoch_millis(start),
|
|
169
172
|
"to": time_to_epoch_millis(end),
|
|
@@ -205,11 +208,12 @@ class HistorianMulti (object):
|
|
|
205
208
|
tags = force_list(tags)
|
|
206
209
|
|
|
207
210
|
for tag in tags:
|
|
211
|
+
fulltag = tag
|
|
208
212
|
if "/" not in tag:
|
|
209
|
-
|
|
213
|
+
fulltag = self.historian + tag
|
|
210
214
|
request = {
|
|
211
215
|
"type": "RAW_POINTS",
|
|
212
|
-
"tag":
|
|
216
|
+
"tag": fulltag,
|
|
213
217
|
"details": {
|
|
214
218
|
"from": time_to_epoch_millis(start),
|
|
215
219
|
"to": time_to_epoch_millis(end),
|
|
@@ -257,12 +261,13 @@ class HistorianMulti (object):
|
|
|
257
261
|
timestamps = [time_to_epoch_millis(timestamp) for timestamp in timestamps]
|
|
258
262
|
|
|
259
263
|
for tag in tags:
|
|
264
|
+
fulltag = tag
|
|
260
265
|
if "/" not in tag:
|
|
261
|
-
|
|
266
|
+
fulltag = self.historian + tag
|
|
262
267
|
for index, timestamp in enumerate(timestamps):
|
|
263
268
|
request = {
|
|
264
269
|
"type": f"POINT_{before_or_after.upper()}",
|
|
265
|
-
"tag":
|
|
270
|
+
"tag": fulltag,
|
|
266
271
|
"details": {
|
|
267
272
|
"at": time_to_epoch_millis(timestamp),
|
|
268
273
|
}
|
|
@@ -383,7 +388,7 @@ def createPoint(value:Union[int,float],timestamp:Union[int,str,datetime],status:
|
|
|
383
388
|
raise EigenException("Bad Status Parameter, must be 'OK' or 'BAD'")
|
|
384
389
|
return {"value": value, "timestamp": timestamp, "status": status}
|
|
385
390
|
|
|
386
|
-
def get_historian_multi(
|
|
391
|
+
def get_historian_multi(eigenserver: EigenServer = None, default_historian = None) -> HistorianMulti:
|
|
387
392
|
"""Instantiate a historian object for the given instance.
|
|
388
393
|
|
|
389
394
|
Args:
|
{python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/RECORD
RENAMED
|
@@ -4,7 +4,7 @@ eigeningenuity/auth.py,sha256=SPD5HXycsG5SBb2yf1pR5vee6gwG_UkWLkzmP02sWlY,6565
|
|
|
4
4
|
eigeningenuity/elastic.py,sha256=WG4nlsJXNs_-m76jtj46UfgvLgWLvn6d6QW2dk7LBI4,6648
|
|
5
5
|
eigeningenuity/events.py,sha256=wUc1TkT7047gduNuNfzkSO5tK13ErJdeI2K5cPXhNCY,3336
|
|
6
6
|
eigeningenuity/historian.py,sha256=YGAwaSMSdDAB_czQUCE0POxzYkU5ywsIrhl_abGl7rk,36341
|
|
7
|
-
eigeningenuity/historianmulti.py,sha256=
|
|
7
|
+
eigeningenuity/historianmulti.py,sha256=Lgs3mlQ57wzuQs-GEmbxCO5T3TxPO939ZSiahIC_D20,17641
|
|
8
8
|
eigeningenuity/settings.py,sha256=ImYplpNINf1dYaUdarZaxvwf3zHSjE1CG7bOEUqnLT0,2794
|
|
9
9
|
eigeningenuity/smartdash.py,sha256=spzoRXO4tu7cDAd4cwbyxo9RBnYvjbJoXQq8zbXkMEw,3009
|
|
10
10
|
eigeningenuity/sql.py,sha256=y-IMu1fdZjMGFcg7ue7Ubhr0-BDTiUW01x8I7tSR700,5059
|
|
@@ -38,8 +38,8 @@ modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
38
38
|
modelbuilder/src/queries/cypherbuilder.py,sha256=XHChyxnTyJegfVhN949UU0T3t3Lf1CKgN0yCN8Cx8cM,10384
|
|
39
39
|
modelbuilder/src/queries/query.py,sha256=gN69uwsf-0F6_dGx9cxLGuM17960_FV58pyimJ9usxY,2472
|
|
40
40
|
modelbuilder/src/queries/typedefs.py,sha256=8uAnLfE_EyAfrdMZuotfu_YHqORXhWfgPG3Yltvyr5A,6129
|
|
41
|
-
python_eigen_ingenuity-0.5.
|
|
42
|
-
python_eigen_ingenuity-0.5.
|
|
43
|
-
python_eigen_ingenuity-0.5.
|
|
44
|
-
python_eigen_ingenuity-0.5.
|
|
45
|
-
python_eigen_ingenuity-0.5.
|
|
41
|
+
python_eigen_ingenuity-0.5.1b2.dist-info/METADATA,sha256=c02t5cNRXKuAVKMk724k21hFIolW0rDyPST1nmaOeUw,32146
|
|
42
|
+
python_eigen_ingenuity-0.5.1b2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
43
|
+
python_eigen_ingenuity-0.5.1b2.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
|
|
44
|
+
python_eigen_ingenuity-0.5.1b2.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
|
|
45
|
+
python_eigen_ingenuity-0.5.1b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.1b1.dist-info → python_eigen_ingenuity-0.5.1b2.dist-info}/top_level.txt
RENAMED
|
File without changes
|