openmeter 1.0.0b181__tar.gz → 1.0.0b183__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.
Potentially problematic release.
This version of openmeter might be problematic. Click here for more details.
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/PKG-INFO +1 -1
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/pyproject.toml +1 -1
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_operations/_operations.py +41 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_operations/_operations.py +26 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/README.md +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/__init__.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_client.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_configuration.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_operations/__init__.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_operations/_patch.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_patch.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_serialization.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/_vendor.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/__init__.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_client.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_configuration.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_operations/__init__.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_operations/_patch.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_patch.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/aio/_vendor.py +0 -0
- {openmeter-1.0.0b181 → openmeter-1.0.0b183}/src/openmeter/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "openmeter"
|
|
3
|
-
version = "v1.0.0-beta.
|
|
3
|
+
version = "v1.0.0-beta.183"
|
|
4
4
|
description = "Client for OpenMeter: Real-Time and Scalable Usage Metering"
|
|
5
5
|
authors = ["Andras Toth <4157749+tothandras@users.noreply.github.com>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -41,6 +41,11 @@ def build_list_events_request(
|
|
|
41
41
|
*,
|
|
42
42
|
from_parameter: Optional[datetime.datetime] = None,
|
|
43
43
|
to: Optional[datetime.datetime] = None,
|
|
44
|
+
ingested_at_from: Optional[datetime.datetime] = None,
|
|
45
|
+
ingested_at_to: Optional[datetime.datetime] = None,
|
|
46
|
+
has_error: Optional[bool] = None,
|
|
47
|
+
id: Optional[str] = None,
|
|
48
|
+
subject: Optional[str] = None,
|
|
44
49
|
limit: int = 100,
|
|
45
50
|
**kwargs: Any
|
|
46
51
|
) -> HttpRequest:
|
|
@@ -57,6 +62,16 @@ def build_list_events_request(
|
|
|
57
62
|
_params["from"] = _SERIALIZER.query("from_parameter", from_parameter, "iso-8601")
|
|
58
63
|
if to is not None:
|
|
59
64
|
_params["to"] = _SERIALIZER.query("to", to, "iso-8601")
|
|
65
|
+
if ingested_at_from is not None:
|
|
66
|
+
_params["ingestedAtFrom"] = _SERIALIZER.query("ingested_at_from", ingested_at_from, "iso-8601")
|
|
67
|
+
if ingested_at_to is not None:
|
|
68
|
+
_params["ingestedAtTo"] = _SERIALIZER.query("ingested_at_to", ingested_at_to, "iso-8601")
|
|
69
|
+
if has_error is not None:
|
|
70
|
+
_params["hasError"] = _SERIALIZER.query("has_error", has_error, "bool")
|
|
71
|
+
if id is not None:
|
|
72
|
+
_params["id"] = _SERIALIZER.query("id", id, "str")
|
|
73
|
+
if subject is not None:
|
|
74
|
+
_params["subject"] = _SERIALIZER.query("subject", subject, "str")
|
|
60
75
|
if limit is not None:
|
|
61
76
|
_params["limit"] = _SERIALIZER.query("limit", limit, "int", maximum=100, minimum=1)
|
|
62
77
|
|
|
@@ -1254,6 +1269,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
1254
1269
|
*,
|
|
1255
1270
|
from_parameter: Optional[datetime.datetime] = None,
|
|
1256
1271
|
to: Optional[datetime.datetime] = None,
|
|
1272
|
+
ingested_at_from: Optional[datetime.datetime] = None,
|
|
1273
|
+
ingested_at_to: Optional[datetime.datetime] = None,
|
|
1274
|
+
has_error: Optional[bool] = None,
|
|
1275
|
+
id: Optional[str] = None,
|
|
1276
|
+
subject: Optional[str] = None,
|
|
1257
1277
|
limit: int = 100,
|
|
1258
1278
|
**kwargs: Any
|
|
1259
1279
|
) -> List[JSON]:
|
|
@@ -1261,6 +1281,7 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
1261
1281
|
"""List ingested events.
|
|
1262
1282
|
|
|
1263
1283
|
List ingested events within a time range.
|
|
1284
|
+
If the from query param is not provided it defaults to last 72 hours.
|
|
1264
1285
|
|
|
1265
1286
|
:keyword from_parameter: Start date-time in RFC 3339 format.
|
|
1266
1287
|
Inclusive. Default value is None.
|
|
@@ -1268,6 +1289,21 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
1268
1289
|
:keyword to: End date-time in RFC 3339 format.
|
|
1269
1290
|
Inclusive. Default value is None.
|
|
1270
1291
|
:paramtype to: ~datetime.datetime
|
|
1292
|
+
:keyword ingested_at_from: Start date-time in RFC 3339 format.
|
|
1293
|
+
Inclusive. Default value is None.
|
|
1294
|
+
:paramtype ingested_at_from: ~datetime.datetime
|
|
1295
|
+
:keyword ingested_at_to: End date-time in RFC 3339 format.
|
|
1296
|
+
Inclusive. Default value is None.
|
|
1297
|
+
:paramtype ingested_at_to: ~datetime.datetime
|
|
1298
|
+
:keyword has_error: If not provided lists all events.
|
|
1299
|
+
If provided with true, only list events with processing error.
|
|
1300
|
+
If provided with false, only list events without processing error. Default value is None.
|
|
1301
|
+
:paramtype has_error: bool
|
|
1302
|
+
:keyword id: The event ID.
|
|
1303
|
+
Accepts partial ID. Default value is None.
|
|
1304
|
+
:paramtype id: str
|
|
1305
|
+
:keyword subject: The event subject. Full match. Default value is None.
|
|
1306
|
+
:paramtype subject: str
|
|
1271
1307
|
:keyword limit: Number of events to return. Default value is 100.
|
|
1272
1308
|
:paramtype limit: int
|
|
1273
1309
|
:return: list of JSON object
|
|
@@ -1325,6 +1361,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
1325
1361
|
_request = build_list_events_request(
|
|
1326
1362
|
from_parameter=from_parameter,
|
|
1327
1363
|
to=to,
|
|
1364
|
+
ingested_at_from=ingested_at_from,
|
|
1365
|
+
ingested_at_to=ingested_at_to,
|
|
1366
|
+
has_error=has_error,
|
|
1367
|
+
id=id,
|
|
1368
|
+
subject=subject,
|
|
1328
1369
|
limit=limit,
|
|
1329
1370
|
headers=_headers,
|
|
1330
1371
|
params=_params,
|
|
@@ -91,6 +91,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
91
91
|
*,
|
|
92
92
|
from_parameter: Optional[datetime.datetime] = None,
|
|
93
93
|
to: Optional[datetime.datetime] = None,
|
|
94
|
+
ingested_at_from: Optional[datetime.datetime] = None,
|
|
95
|
+
ingested_at_to: Optional[datetime.datetime] = None,
|
|
96
|
+
has_error: Optional[bool] = None,
|
|
97
|
+
id: Optional[str] = None,
|
|
98
|
+
subject: Optional[str] = None,
|
|
94
99
|
limit: int = 100,
|
|
95
100
|
**kwargs: Any
|
|
96
101
|
) -> List[JSON]:
|
|
@@ -98,6 +103,7 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
98
103
|
"""List ingested events.
|
|
99
104
|
|
|
100
105
|
List ingested events within a time range.
|
|
106
|
+
If the from query param is not provided it defaults to last 72 hours.
|
|
101
107
|
|
|
102
108
|
:keyword from_parameter: Start date-time in RFC 3339 format.
|
|
103
109
|
Inclusive. Default value is None.
|
|
@@ -105,6 +111,21 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
105
111
|
:keyword to: End date-time in RFC 3339 format.
|
|
106
112
|
Inclusive. Default value is None.
|
|
107
113
|
:paramtype to: ~datetime.datetime
|
|
114
|
+
:keyword ingested_at_from: Start date-time in RFC 3339 format.
|
|
115
|
+
Inclusive. Default value is None.
|
|
116
|
+
:paramtype ingested_at_from: ~datetime.datetime
|
|
117
|
+
:keyword ingested_at_to: End date-time in RFC 3339 format.
|
|
118
|
+
Inclusive. Default value is None.
|
|
119
|
+
:paramtype ingested_at_to: ~datetime.datetime
|
|
120
|
+
:keyword has_error: If not provided lists all events.
|
|
121
|
+
If provided with true, only list events with processing error.
|
|
122
|
+
If provided with false, only list events without processing error. Default value is None.
|
|
123
|
+
:paramtype has_error: bool
|
|
124
|
+
:keyword id: The event ID.
|
|
125
|
+
Accepts partial ID. Default value is None.
|
|
126
|
+
:paramtype id: str
|
|
127
|
+
:keyword subject: The event subject. Full match. Default value is None.
|
|
128
|
+
:paramtype subject: str
|
|
108
129
|
:keyword limit: Number of events to return. Default value is 100.
|
|
109
130
|
:paramtype limit: int
|
|
110
131
|
:return: list of JSON object
|
|
@@ -162,6 +183,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
162
183
|
_request = build_list_events_request(
|
|
163
184
|
from_parameter=from_parameter,
|
|
164
185
|
to=to,
|
|
186
|
+
ingested_at_from=ingested_at_from,
|
|
187
|
+
ingested_at_to=ingested_at_to,
|
|
188
|
+
has_error=has_error,
|
|
189
|
+
id=id,
|
|
190
|
+
subject=subject,
|
|
165
191
|
limit=limit,
|
|
166
192
|
headers=_headers,
|
|
167
193
|
params=_params,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|