openmeter 1.0.0b181__py3-none-any.whl → 1.0.0b182__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.
Potentially problematic release.
This version of openmeter might be problematic. Click here for more details.
- openmeter/_operations/_operations.py +42 -0
- openmeter/aio/_operations/_operations.py +27 -0
- {openmeter-1.0.0b181.dist-info → openmeter-1.0.0b182.dist-info}/METADATA +1 -1
- {openmeter-1.0.0b181.dist-info → openmeter-1.0.0b182.dist-info}/RECORD +5 -5
- {openmeter-1.0.0b181.dist-info → openmeter-1.0.0b182.dist-info}/WHEEL +0 -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,22 @@ 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.
|
|
1306
|
+
Accepts partial subject. Default value is None.
|
|
1307
|
+
:paramtype subject: str
|
|
1271
1308
|
:keyword limit: Number of events to return. Default value is 100.
|
|
1272
1309
|
:paramtype limit: int
|
|
1273
1310
|
:return: list of JSON object
|
|
@@ -1325,6 +1362,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
1325
1362
|
_request = build_list_events_request(
|
|
1326
1363
|
from_parameter=from_parameter,
|
|
1327
1364
|
to=to,
|
|
1365
|
+
ingested_at_from=ingested_at_from,
|
|
1366
|
+
ingested_at_to=ingested_at_to,
|
|
1367
|
+
has_error=has_error,
|
|
1368
|
+
id=id,
|
|
1369
|
+
subject=subject,
|
|
1328
1370
|
limit=limit,
|
|
1329
1371
|
headers=_headers,
|
|
1330
1372
|
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,22 @@ 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.
|
|
128
|
+
Accepts partial subject. Default value is None.
|
|
129
|
+
:paramtype subject: str
|
|
108
130
|
:keyword limit: Number of events to return. Default value is 100.
|
|
109
131
|
:paramtype limit: int
|
|
110
132
|
:return: list of JSON object
|
|
@@ -162,6 +184,11 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
162
184
|
_request = build_list_events_request(
|
|
163
185
|
from_parameter=from_parameter,
|
|
164
186
|
to=to,
|
|
187
|
+
ingested_at_from=ingested_at_from,
|
|
188
|
+
ingested_at_to=ingested_at_to,
|
|
189
|
+
has_error=has_error,
|
|
190
|
+
id=id,
|
|
191
|
+
subject=subject,
|
|
165
192
|
limit=limit,
|
|
166
193
|
headers=_headers,
|
|
167
194
|
params=_params,
|
|
@@ -2,7 +2,7 @@ openmeter/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
|
|
|
2
2
|
openmeter/_client.py,sha256=TIXIPi_UVO-d5BHra7_xIiKmLfZBrmc4L_Xq2gxi4lM,3982
|
|
3
3
|
openmeter/_configuration.py,sha256=CIdMxPaIXwDLaCsnvmdmHTfplV_cRp24101RJCEWtes,1807
|
|
4
4
|
openmeter/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
|
|
5
|
-
openmeter/_operations/_operations.py,sha256=
|
|
5
|
+
openmeter/_operations/_operations.py,sha256=NWVIa2whCOUdo3JeIPBDc07FrKOZV9v29QtNuJKyIfA,304853
|
|
6
6
|
openmeter/_operations/_patch.py,sha256=ptSL-JhY1fbGT9Cw2cUkPF1TPz5qVgXwTMMT5h41XUc,4874
|
|
7
7
|
openmeter/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
8
8
|
openmeter/_serialization.py,sha256=vQIv-wuCQabtiIq2DXOr7-InGADqxlXTGNEKv9OlDPs,78873
|
|
@@ -11,11 +11,11 @@ openmeter/aio/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
|
|
|
11
11
|
openmeter/aio/_client.py,sha256=O0VpMfw42UuTN_ZTIL3dw944PviLIrBBCSp7UaexyKQ,4100
|
|
12
12
|
openmeter/aio/_configuration.py,sha256=NtT-cxQWkt8q_FvMfwqqil18Tt9zJmWGVju4U9s7OsE,1817
|
|
13
13
|
openmeter/aio/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
|
|
14
|
-
openmeter/aio/_operations/_operations.py,sha256=
|
|
14
|
+
openmeter/aio/_operations/_operations.py,sha256=rBshLVrMbn91oDbjrCiiun3p1BCJw4Li1U9sAnRXahY,262088
|
|
15
15
|
openmeter/aio/_operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
16
16
|
openmeter/aio/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
17
17
|
openmeter/aio/_vendor.py,sha256=CFsSbXOBydpg_f_uciu6Pe6cvF__6ofZ6KFEhkaMMEU,862
|
|
18
18
|
openmeter/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
|
|
19
|
-
openmeter-1.0.
|
|
20
|
-
openmeter-1.0.
|
|
21
|
-
openmeter-1.0.
|
|
19
|
+
openmeter-1.0.0b182.dist-info/METADATA,sha256=qi_GbY_-mUqwqYbMy8pY7pJOljbWd8MRGa29wp6MzBE,2258
|
|
20
|
+
openmeter-1.0.0b182.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
21
|
+
openmeter-1.0.0b182.dist-info/RECORD,,
|
|
File without changes
|