python-openobserve 0.1.2__tar.gz → 0.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-openobserve
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary:
5
5
  Home-page: https://github.com/JustinGuese/python-openobserve
6
6
  License: GNUv3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-openobserve"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = ""
5
5
  authors = ["Justin Guese <guese.justin@gmail.com>"]
6
6
  license = "GNUv3"
@@ -33,13 +33,6 @@ class OpenObserve:
33
33
  print("could not convert timestamp: " + str(timestamp))
34
34
  return timestamp
35
35
 
36
- def __float2Int(self, flatdict: dict) -> dict:
37
- # apparently openobserve does not support float values?!
38
- for key, val in flatdict.items():
39
- if isinstance(val, float):
40
- flatdict[key] = int(val)
41
- return flatdict
42
-
43
36
  def __intts2datetime(self, flatdict: dict) -> dict:
44
37
  for key, val in flatdict.items():
45
38
  if "time" in key:
@@ -57,8 +50,6 @@ class OpenObserve:
57
50
  # expects a flattened json
58
51
  document = flatten(document)
59
52
  document = self.__datetime2Str(document)
60
- # apparently openobserve does not support float values?!
61
- document = self.__float2Int(document)
62
53
 
63
54
  res = requests.post(self.openobserve_url.replace("[STREAM]", index) + "/_json", headers=self.headers, json=[document])
64
55
  if res.status_code != 200: