cybertron-spark 0.1.3__tar.gz → 0.1.5__tar.gz
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.
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/PKG-INFO +1 -1
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark/heartbeat.py +8 -8
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/PKG-INFO +1 -1
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/setup.py +1 -1
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/LICENCE +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/README.md +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark/__init__.py +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark/selenium.py +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark/zenpy.py +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/SOURCES.txt +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/dependency_links.txt +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/requires.txt +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/top_level.txt +0 -0
- {cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/setup.cfg +0 -0
|
@@ -111,7 +111,7 @@ class Heartbeat():
|
|
|
111
111
|
'output_data': output_data
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
self._post(endpoint, payload)
|
|
114
|
+
return self._post(endpoint, payload)
|
|
115
115
|
|
|
116
116
|
def atualizar_fila(self, quantidade):
|
|
117
117
|
endpoint = '/transformers/bots-queue/'
|
|
@@ -121,7 +121,7 @@ class Heartbeat():
|
|
|
121
121
|
'quantidade': quantidade,
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
self._post(endpoint, payload)
|
|
124
|
+
return self._post(endpoint, payload)
|
|
125
125
|
|
|
126
126
|
def atualizar_computador(self, computador, cpu, memory, disk):
|
|
127
127
|
endpoint = f'/transformers/bots-computer/{computador}/'
|
|
@@ -133,7 +133,7 @@ class Heartbeat():
|
|
|
133
133
|
'disk': disk,
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
self._put(endpoint, payload)
|
|
136
|
+
return self._put(endpoint, payload)
|
|
137
137
|
|
|
138
138
|
def atualizar_status(self, status):
|
|
139
139
|
endpoint = '/transformers/bots-status/'
|
|
@@ -143,7 +143,7 @@ class Heartbeat():
|
|
|
143
143
|
'current_status': status
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
self._post(endpoint, payload)
|
|
146
|
+
return self._post(endpoint, payload)
|
|
147
147
|
|
|
148
148
|
def registrar_erro(self, exception, ticket_id=None, tipo_alerta='WARNING'):
|
|
149
149
|
endpoint = '/transformers/bots-logs/'
|
|
@@ -166,13 +166,13 @@ class Heartbeat():
|
|
|
166
166
|
'ticket_id': ticket_id
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
self._post(endpoint, payload)
|
|
169
|
+
return self._post(endpoint, payload)
|
|
170
170
|
|
|
171
|
-
def atualizar_liberarfrete(self,
|
|
172
|
-
endpoint = f'/transformers/bots-liberarfrete/{
|
|
171
|
+
def atualizar_liberarfrete(self, id_banco):
|
|
172
|
+
endpoint = f'/transformers/bots-liberarfrete/{id_banco}/'
|
|
173
173
|
|
|
174
174
|
payload = {
|
|
175
175
|
'bot_realizado': True,
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
self._patch(endpoint, payload)
|
|
178
|
+
return self._patch(endpoint, payload)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cybertron_spark-0.1.3 → cybertron_spark-0.1.5}/cybertron_spark.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|