nominal-api 0.715.1__py3-none-any.whl → 0.717.0__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.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +87 -3
- nominal_api/event/__init__.py +4 -0
- {nominal_api-0.715.1.dist-info → nominal_api-0.717.0.dist-info}/METADATA +1 -1
- {nominal_api-0.715.1.dist-info → nominal_api-0.717.0.dist-info}/RECORD +7 -7
- {nominal_api-0.715.1.dist-info → nominal_api-0.717.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.715.1.dist-info → nominal_api-0.717.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -5838,6 +5838,8 @@ class event_EventDispositionStatus(ConjureEnumType):
|
|
|
5838
5838
|
'''CLOSED_IGNORED'''
|
|
5839
5839
|
CLOSED_REQUIRES_FURTHER_ACTION = 'CLOSED_REQUIRES_FURTHER_ACTION'
|
|
5840
5840
|
'''CLOSED_REQUIRES_FURTHER_ACTION'''
|
|
5841
|
+
NO_DISPOSITION = 'NO_DISPOSITION'
|
|
5842
|
+
'''NO_DISPOSITION'''
|
|
5841
5843
|
UNKNOWN = 'UNKNOWN'
|
|
5842
5844
|
'''UNKNOWN'''
|
|
5843
5845
|
|
|
@@ -6311,6 +6313,65 @@ event_EventService.__qualname__ = "EventService"
|
|
|
6311
6313
|
event_EventService.__module__ = "nominal_api.event"
|
|
6312
6314
|
|
|
6313
6315
|
|
|
6316
|
+
class event_EventTimeFilter(ConjureBeanType):
|
|
6317
|
+
|
|
6318
|
+
@builtins.classmethod
|
|
6319
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
6320
|
+
return {
|
|
6321
|
+
'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
|
|
6322
|
+
'timestamp_condition': ConjureFieldDefinition('timestampCondition', event_EventTimeFilterCondition)
|
|
6323
|
+
}
|
|
6324
|
+
|
|
6325
|
+
__slots__: List[str] = ['_timestamp', '_timestamp_condition']
|
|
6326
|
+
|
|
6327
|
+
def __init__(self, timestamp: "api_Timestamp", timestamp_condition: "event_EventTimeFilterCondition") -> None:
|
|
6328
|
+
self._timestamp = timestamp
|
|
6329
|
+
self._timestamp_condition = timestamp_condition
|
|
6330
|
+
|
|
6331
|
+
@builtins.property
|
|
6332
|
+
def timestamp(self) -> "api_Timestamp":
|
|
6333
|
+
return self._timestamp
|
|
6334
|
+
|
|
6335
|
+
@builtins.property
|
|
6336
|
+
def timestamp_condition(self) -> "event_EventTimeFilterCondition":
|
|
6337
|
+
return self._timestamp_condition
|
|
6338
|
+
|
|
6339
|
+
|
|
6340
|
+
event_EventTimeFilter.__name__ = "EventTimeFilter"
|
|
6341
|
+
event_EventTimeFilter.__qualname__ = "EventTimeFilter"
|
|
6342
|
+
event_EventTimeFilter.__module__ = "nominal_api.event"
|
|
6343
|
+
|
|
6344
|
+
|
|
6345
|
+
class event_EventTimeFilterCondition(ConjureEnumType):
|
|
6346
|
+
|
|
6347
|
+
START_TIME_BEFORE_INCLUSIVE = 'START_TIME_BEFORE_INCLUSIVE'
|
|
6348
|
+
'''START_TIME_BEFORE_INCLUSIVE'''
|
|
6349
|
+
START_TIME_BEFORE_EXCLUSIVE = 'START_TIME_BEFORE_EXCLUSIVE'
|
|
6350
|
+
'''START_TIME_BEFORE_EXCLUSIVE'''
|
|
6351
|
+
START_TIME_AFTER_INCLUSIVE = 'START_TIME_AFTER_INCLUSIVE'
|
|
6352
|
+
'''START_TIME_AFTER_INCLUSIVE'''
|
|
6353
|
+
START_TIME_AFTER_EXCLUSIVE = 'START_TIME_AFTER_EXCLUSIVE'
|
|
6354
|
+
'''START_TIME_AFTER_EXCLUSIVE'''
|
|
6355
|
+
END_TIME_BEFORE_INCLUSIVE = 'END_TIME_BEFORE_INCLUSIVE'
|
|
6356
|
+
'''END_TIME_BEFORE_INCLUSIVE'''
|
|
6357
|
+
END_TIME_BEFORE_EXCLUSIVE = 'END_TIME_BEFORE_EXCLUSIVE'
|
|
6358
|
+
'''END_TIME_BEFORE_EXCLUSIVE'''
|
|
6359
|
+
END_TIME_AFTER_INCLUSIVE = 'END_TIME_AFTER_INCLUSIVE'
|
|
6360
|
+
'''END_TIME_AFTER_INCLUSIVE'''
|
|
6361
|
+
END_TIME_AFTER_EXCLUSIVE = 'END_TIME_AFTER_EXCLUSIVE'
|
|
6362
|
+
'''END_TIME_AFTER_EXCLUSIVE'''
|
|
6363
|
+
UNKNOWN = 'UNKNOWN'
|
|
6364
|
+
'''UNKNOWN'''
|
|
6365
|
+
|
|
6366
|
+
def __reduce_ex__(self, proto):
|
|
6367
|
+
return self.__class__, (self.name,)
|
|
6368
|
+
|
|
6369
|
+
|
|
6370
|
+
event_EventTimeFilterCondition.__name__ = "EventTimeFilterCondition"
|
|
6371
|
+
event_EventTimeFilterCondition.__qualname__ = "EventTimeFilterCondition"
|
|
6372
|
+
event_EventTimeFilterCondition.__module__ = "nominal_api.event"
|
|
6373
|
+
|
|
6374
|
+
|
|
6314
6375
|
class event_EventType(ConjureEnumType):
|
|
6315
6376
|
|
|
6316
6377
|
INFO = 'INFO'
|
|
@@ -6997,6 +7058,7 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6997
7058
|
_search_text: Optional[str] = None
|
|
6998
7059
|
_after: Optional["api_Timestamp"] = None
|
|
6999
7060
|
_before: Optional["api_Timestamp"] = None
|
|
7061
|
+
_advanced_time_filter: Optional["event_EventTimeFilter"] = None
|
|
7000
7062
|
_asset: Optional[str] = None
|
|
7001
7063
|
_template: Optional[str] = None
|
|
7002
7064
|
_workbook: Optional[str] = None
|
|
@@ -7021,6 +7083,7 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7021
7083
|
'search_text': ConjureFieldDefinition('searchText', str),
|
|
7022
7084
|
'after': ConjureFieldDefinition('after', api_Timestamp),
|
|
7023
7085
|
'before': ConjureFieldDefinition('before', api_Timestamp),
|
|
7086
|
+
'advanced_time_filter': ConjureFieldDefinition('advancedTimeFilter', event_EventTimeFilter),
|
|
7024
7087
|
'asset': ConjureFieldDefinition('asset', scout_rids_api_AssetRid),
|
|
7025
7088
|
'template': ConjureFieldDefinition('template', scout_rids_api_TemplateRid),
|
|
7026
7089
|
'workbook': ConjureFieldDefinition('workbook', scout_rids_api_NotebookRid),
|
|
@@ -7045,6 +7108,7 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7045
7108
|
search_text: Optional[str] = None,
|
|
7046
7109
|
after: Optional["api_Timestamp"] = None,
|
|
7047
7110
|
before: Optional["api_Timestamp"] = None,
|
|
7111
|
+
advanced_time_filter: Optional["event_EventTimeFilter"] = None,
|
|
7048
7112
|
asset: Optional[str] = None,
|
|
7049
7113
|
template: Optional[str] = None,
|
|
7050
7114
|
workbook: Optional[str] = None,
|
|
@@ -7065,7 +7129,7 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7065
7129
|
type_of_union: Optional[str] = None
|
|
7066
7130
|
) -> None:
|
|
7067
7131
|
if type_of_union is None:
|
|
7068
|
-
if (search_text is not None) + (after is not None) + (before is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
|
|
7132
|
+
if (search_text is not None) + (after is not None) + (before is not None) + (advanced_time_filter is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
|
|
7069
7133
|
raise ValueError('a union must contain a single member')
|
|
7070
7134
|
|
|
7071
7135
|
if search_text is not None:
|
|
@@ -7077,6 +7141,9 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7077
7141
|
if before is not None:
|
|
7078
7142
|
self._before = before
|
|
7079
7143
|
self._type = 'before'
|
|
7144
|
+
if advanced_time_filter is not None:
|
|
7145
|
+
self._advanced_time_filter = advanced_time_filter
|
|
7146
|
+
self._type = 'advancedTimeFilter'
|
|
7080
7147
|
if asset is not None:
|
|
7081
7148
|
self._asset = asset
|
|
7082
7149
|
self._type = 'asset'
|
|
@@ -7144,6 +7211,11 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7144
7211
|
raise ValueError('a union value must not be None')
|
|
7145
7212
|
self._before = before
|
|
7146
7213
|
self._type = 'before'
|
|
7214
|
+
elif type_of_union == 'advancedTimeFilter':
|
|
7215
|
+
if advanced_time_filter is None:
|
|
7216
|
+
raise ValueError('a union value must not be None')
|
|
7217
|
+
self._advanced_time_filter = advanced_time_filter
|
|
7218
|
+
self._type = 'advancedTimeFilter'
|
|
7147
7219
|
elif type_of_union == 'asset':
|
|
7148
7220
|
if asset is None:
|
|
7149
7221
|
raise ValueError('a union value must not be None')
|
|
@@ -7236,16 +7308,22 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7236
7308
|
|
|
7237
7309
|
@builtins.property
|
|
7238
7310
|
def after(self) -> Optional["api_Timestamp"]:
|
|
7239
|
-
"""Filters to
|
|
7311
|
+
"""Filters to events after this timestamp, exclusive.
|
|
7312
|
+
This includes events that start before, but end after this time.
|
|
7240
7313
|
"""
|
|
7241
7314
|
return self._after
|
|
7242
7315
|
|
|
7243
7316
|
@builtins.property
|
|
7244
7317
|
def before(self) -> Optional["api_Timestamp"]:
|
|
7245
|
-
"""Filters to
|
|
7318
|
+
"""Filters to events before this timestamp, exclusive.
|
|
7319
|
+
This includes events that start before, but end after this time.
|
|
7246
7320
|
"""
|
|
7247
7321
|
return self._before
|
|
7248
7322
|
|
|
7323
|
+
@builtins.property
|
|
7324
|
+
def advanced_time_filter(self) -> Optional["event_EventTimeFilter"]:
|
|
7325
|
+
return self._advanced_time_filter
|
|
7326
|
+
|
|
7249
7327
|
@builtins.property
|
|
7250
7328
|
def asset(self) -> Optional[str]:
|
|
7251
7329
|
return self._asset
|
|
@@ -7323,6 +7401,8 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7323
7401
|
return visitor._after(self.after)
|
|
7324
7402
|
if self._type == 'before' and self.before is not None:
|
|
7325
7403
|
return visitor._before(self.before)
|
|
7404
|
+
if self._type == 'advancedTimeFilter' and self.advanced_time_filter is not None:
|
|
7405
|
+
return visitor._advanced_time_filter(self.advanced_time_filter)
|
|
7326
7406
|
if self._type == 'asset' and self.asset is not None:
|
|
7327
7407
|
return visitor._asset(self.asset)
|
|
7328
7408
|
if self._type == 'template' and self.template is not None:
|
|
@@ -7378,6 +7458,10 @@ class event_SearchQueryVisitor:
|
|
|
7378
7458
|
def _before(self, before: "api_Timestamp") -> Any:
|
|
7379
7459
|
pass
|
|
7380
7460
|
|
|
7461
|
+
@abstractmethod
|
|
7462
|
+
def _advanced_time_filter(self, advanced_time_filter: "event_EventTimeFilter") -> Any:
|
|
7463
|
+
pass
|
|
7464
|
+
|
|
7381
7465
|
@abstractmethod
|
|
7382
7466
|
def _asset(self, asset: str) -> Any:
|
|
7383
7467
|
pass
|
nominal_api/event/__init__.py
CHANGED
|
@@ -15,6 +15,8 @@ from .._impl import (
|
|
|
15
15
|
event_EventOrigin as EventOrigin,
|
|
16
16
|
event_EventOriginVisitor as EventOriginVisitor,
|
|
17
17
|
event_EventService as EventService,
|
|
18
|
+
event_EventTimeFilter as EventTimeFilter,
|
|
19
|
+
event_EventTimeFilterCondition as EventTimeFilterCondition,
|
|
18
20
|
event_EventType as EventType,
|
|
19
21
|
event_EventsHistogramBucket as EventsHistogramBucket,
|
|
20
22
|
event_EventsHistogramRequest as EventsHistogramRequest,
|
|
@@ -51,6 +53,8 @@ __all__ = [
|
|
|
51
53
|
'EventDispositionStatus',
|
|
52
54
|
'EventOrigin',
|
|
53
55
|
'EventOriginVisitor',
|
|
56
|
+
'EventTimeFilter',
|
|
57
|
+
'EventTimeFilterCondition',
|
|
54
58
|
'EventType',
|
|
55
59
|
'EventsHistogramBucket',
|
|
56
60
|
'EventsHistogramRequest',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=RtCatuM6or4rREmV8wLOuoNg0RY31LtZHt_T3IXtsIw,1956
|
|
2
|
+
nominal_api/_impl.py,sha256=v6dF5yvOGn2Mkg_fAsFY-fr6fojSQ8RtLNBTMKS9NoE,3262890
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=PMREKP7UhxJ1_gHkrlJET46qlDHksKMm6-woR1p6WnU,1970
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
|
|
@@ -14,7 +14,7 @@ nominal_api/datasource_api/__init__.py,sha256=-Py2STiLyAzvX6RntC9niTX2BVVLeLlXY1
|
|
|
14
14
|
nominal_api/datasource_logset/__init__.py,sha256=SGt5PmLgYpLfhcoESk69aVufuZugg8dp6XBHOZ480IA,130
|
|
15
15
|
nominal_api/datasource_logset_api/__init__.py,sha256=QydoWxNXCVgIV8HWnZAKA77N5G6mTSqSzGkj36tPe4U,1376
|
|
16
16
|
nominal_api/datasource_pagination_api/__init__.py,sha256=WeENj6yqi2XfInU8YgjFwqwiR8L0jDHCBZfucJ0ahyY,283
|
|
17
|
-
nominal_api/event/__init__.py,sha256=
|
|
17
|
+
nominal_api/event/__init__.py,sha256=t5q8N5ozj3tHwRVhwtL6kwu-1-FMIoTGJT1RX75pwZM,2830
|
|
18
18
|
nominal_api/ingest_api/__init__.py,sha256=qEn3BJXMbdRSVFG55Dpp4RnOOSPwUMJ9iRscz9wyyCk,11159
|
|
19
19
|
nominal_api/ingest_workflow_api/__init__.py,sha256=lTCb7s4VCrpur0TDpTy_EDvUdHJ4UKqcTv8MYiEeeko,2954
|
|
20
20
|
nominal_api/persistent_compute_api/__init__.py,sha256=g_sUmgWIHWs7O9LOppSfO7p7BxhJjJ74BFBTum2vPHg,3109
|
|
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
|
|
|
72
72
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
|
73
73
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
|
74
74
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
75
|
-
nominal_api-0.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.717.0.dist-info/METADATA,sha256=n4OHPwsyWC3R-BBs8Get1HcaIGILe-XcZZYQC-MCOG0,199
|
|
76
|
+
nominal_api-0.717.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
77
|
+
nominal_api-0.717.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.717.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|