micromegas 0.1.1__tar.gz → 0.1.2__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: micromegas
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python analytics client for https://github.com/madesroches/micromegas/
5
5
  Author: Marc-Antoine Desroches
6
6
  Author-email: madesroches@gmail.com
File without changes
@@ -13,16 +13,15 @@ class Client:
13
13
  headers=self.headers,
14
14
  )
15
15
 
16
- def query_streams(self, begin, end, limit, tag_filter=None):
16
+ def query_streams(self, begin, end, limit, process_id=None, tag_filter=None):
17
17
  args = {
18
18
  "begin": begin.isoformat(),
19
19
  "end": end.isoformat(),
20
20
  "limit": limit,
21
+ "process_id": process_id,
22
+ "tag_filter": tag_filter,
21
23
  }
22
24
 
23
- if tag_filter is not None:
24
- args["tag_filter"] = tag_filter
25
-
26
25
  return request.request(
27
26
  self.analytics_base_url + "query_streams",
28
27
  args,
@@ -54,3 +53,15 @@ class Client:
54
53
  },
55
54
  headers=self.headers,
56
55
  )
56
+
57
+ def query_log_entries(self, begin, end, limit, stream_id):
58
+ return request.request(
59
+ self.analytics_base_url + "query_log_entries",
60
+ {
61
+ "begin": begin.isoformat(),
62
+ "end": end.isoformat(),
63
+ "limit": limit,
64
+ "stream_id": stream_id,
65
+ },
66
+ headers=self.headers,
67
+ )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "micromegas"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Python analytics client for https://github.com/madesroches/micromegas/"
5
5
  authors = ["Marc-Antoine Desroches <madesroches@gmail.com>"]
6
6
  readme = "README.md"