nominal-api 0.696.0__py3-none-any.whl → 0.698.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.
Potentially problematic release.
This version of nominal-api might be problematic. Click here for more details.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +536 -4
- nominal_api/event/__init__.py +5 -0
- {nominal_api-0.696.0.dist-info → nominal_api-0.698.0.dist-info}/METADATA +1 -1
- {nominal_api-0.696.0.dist-info → nominal_api-0.698.0.dist-info}/RECORD +7 -7
- {nominal_api-0.696.0.dist-info → nominal_api-0.698.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.696.0.dist-info → nominal_api-0.698.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -4324,18 +4324,21 @@ class datasource_api_GetTagValuesForDataSourceRequest(ConjureBeanType):
|
|
|
4324
4324
|
@builtins.classmethod
|
|
4325
4325
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
4326
4326
|
return {
|
|
4327
|
-
'tag_keys': ConjureFieldDefinition('tagKeys', List[api_TagName]),
|
|
4327
|
+
'tag_keys': ConjureFieldDefinition('tagKeys', OptionalTypeWrapper[List[api_TagName]]),
|
|
4328
4328
|
'range': ConjureFieldDefinition('range', OptionalTypeWrapper[api_Range])
|
|
4329
4329
|
}
|
|
4330
4330
|
|
|
4331
4331
|
__slots__: List[str] = ['_tag_keys', '_range']
|
|
4332
4332
|
|
|
4333
|
-
def __init__(self,
|
|
4333
|
+
def __init__(self, range: Optional["api_Range"] = None, tag_keys: Optional[List[str]] = None) -> None:
|
|
4334
4334
|
self._tag_keys = tag_keys
|
|
4335
4335
|
self._range = range
|
|
4336
4336
|
|
|
4337
4337
|
@builtins.property
|
|
4338
|
-
def tag_keys(self) -> List[str]:
|
|
4338
|
+
def tag_keys(self) -> Optional[List[str]]:
|
|
4339
|
+
"""
|
|
4340
|
+
If empty, returns all available tag keys.
|
|
4341
|
+
"""
|
|
4339
4342
|
return self._tag_keys
|
|
4340
4343
|
|
|
4341
4344
|
@builtins.property
|
|
@@ -6266,6 +6269,38 @@ The Event Service is responsible for creating and retrieving events for a partic
|
|
|
6266
6269
|
_decoder = ConjureDecoder()
|
|
6267
6270
|
return _decoder.decode(_response.json(), event_SearchEventsResponse, self._return_none_for_unknown_union_types)
|
|
6268
6271
|
|
|
6272
|
+
def get_events_histogram(self, auth_header: str, request: "event_EventsHistogramRequest") -> "event_EventsHistogramResponse":
|
|
6273
|
+
"""
|
|
6274
|
+
Gets a histogram of events that match the given filters.
|
|
6275
|
+
"""
|
|
6276
|
+
|
|
6277
|
+
_headers: Dict[str, Any] = {
|
|
6278
|
+
'Accept': 'application/json',
|
|
6279
|
+
'Content-Type': 'application/json',
|
|
6280
|
+
'Authorization': auth_header,
|
|
6281
|
+
}
|
|
6282
|
+
|
|
6283
|
+
_params: Dict[str, Any] = {
|
|
6284
|
+
}
|
|
6285
|
+
|
|
6286
|
+
_path_params: Dict[str, Any] = {
|
|
6287
|
+
}
|
|
6288
|
+
|
|
6289
|
+
_json: Any = ConjureEncoder().default(request)
|
|
6290
|
+
|
|
6291
|
+
_path = '/event/v1/histogram'
|
|
6292
|
+
_path = _path.format(**_path_params)
|
|
6293
|
+
|
|
6294
|
+
_response: Response = self._request(
|
|
6295
|
+
'POST',
|
|
6296
|
+
self._uri + _path,
|
|
6297
|
+
params=_params,
|
|
6298
|
+
headers=_headers,
|
|
6299
|
+
json=_json)
|
|
6300
|
+
|
|
6301
|
+
_decoder = ConjureDecoder()
|
|
6302
|
+
return _decoder.decode(_response.json(), event_EventsHistogramResponse, self._return_none_for_unknown_union_types)
|
|
6303
|
+
|
|
6269
6304
|
|
|
6270
6305
|
event_EventService.__name__ = "EventService"
|
|
6271
6306
|
event_EventService.__qualname__ = "EventService"
|
|
@@ -6294,6 +6329,132 @@ event_EventType.__qualname__ = "EventType"
|
|
|
6294
6329
|
event_EventType.__module__ = "nominal_api.event"
|
|
6295
6330
|
|
|
6296
6331
|
|
|
6332
|
+
class event_EventsHistogramBucket(ConjureBeanType):
|
|
6333
|
+
|
|
6334
|
+
@builtins.classmethod
|
|
6335
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
6336
|
+
return {
|
|
6337
|
+
'start_inclusive': ConjureFieldDefinition('startInclusive', api_Timestamp),
|
|
6338
|
+
'end_exclusive': ConjureFieldDefinition('endExclusive', api_Timestamp),
|
|
6339
|
+
'count': ConjureFieldDefinition('count', int)
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6342
|
+
__slots__: List[str] = ['_start_inclusive', '_end_exclusive', '_count']
|
|
6343
|
+
|
|
6344
|
+
def __init__(self, count: int, end_exclusive: "api_Timestamp", start_inclusive: "api_Timestamp") -> None:
|
|
6345
|
+
self._start_inclusive = start_inclusive
|
|
6346
|
+
self._end_exclusive = end_exclusive
|
|
6347
|
+
self._count = count
|
|
6348
|
+
|
|
6349
|
+
@builtins.property
|
|
6350
|
+
def start_inclusive(self) -> "api_Timestamp":
|
|
6351
|
+
return self._start_inclusive
|
|
6352
|
+
|
|
6353
|
+
@builtins.property
|
|
6354
|
+
def end_exclusive(self) -> "api_Timestamp":
|
|
6355
|
+
return self._end_exclusive
|
|
6356
|
+
|
|
6357
|
+
@builtins.property
|
|
6358
|
+
def count(self) -> int:
|
|
6359
|
+
return self._count
|
|
6360
|
+
|
|
6361
|
+
|
|
6362
|
+
event_EventsHistogramBucket.__name__ = "EventsHistogramBucket"
|
|
6363
|
+
event_EventsHistogramBucket.__qualname__ = "EventsHistogramBucket"
|
|
6364
|
+
event_EventsHistogramBucket.__module__ = "nominal_api.event"
|
|
6365
|
+
|
|
6366
|
+
|
|
6367
|
+
class event_EventsHistogramRequest(ConjureBeanType):
|
|
6368
|
+
|
|
6369
|
+
@builtins.classmethod
|
|
6370
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
6371
|
+
return {
|
|
6372
|
+
'start_inclusive': ConjureFieldDefinition('startInclusive', api_Timestamp),
|
|
6373
|
+
'end_exclusive': ConjureFieldDefinition('endExclusive', api_Timestamp),
|
|
6374
|
+
'filter_query': ConjureFieldDefinition('filterQuery', OptionalTypeWrapper[event_HistogramFilterQuery]),
|
|
6375
|
+
'archived_statuses': ConjureFieldDefinition('archivedStatuses', OptionalTypeWrapper[List[api_ArchivedStatus]]),
|
|
6376
|
+
'num_bins': ConjureFieldDefinition('numBins', OptionalTypeWrapper[int]),
|
|
6377
|
+
'event_limit': ConjureFieldDefinition('eventLimit', OptionalTypeWrapper[int])
|
|
6378
|
+
}
|
|
6379
|
+
|
|
6380
|
+
__slots__: List[str] = ['_start_inclusive', '_end_exclusive', '_filter_query', '_archived_statuses', '_num_bins', '_event_limit']
|
|
6381
|
+
|
|
6382
|
+
def __init__(self, end_exclusive: "api_Timestamp", start_inclusive: "api_Timestamp", archived_statuses: Optional[List["api_ArchivedStatus"]] = None, event_limit: Optional[int] = None, filter_query: Optional["event_HistogramFilterQuery"] = None, num_bins: Optional[int] = None) -> None:
|
|
6383
|
+
self._start_inclusive = start_inclusive
|
|
6384
|
+
self._end_exclusive = end_exclusive
|
|
6385
|
+
self._filter_query = filter_query
|
|
6386
|
+
self._archived_statuses = archived_statuses
|
|
6387
|
+
self._num_bins = num_bins
|
|
6388
|
+
self._event_limit = event_limit
|
|
6389
|
+
|
|
6390
|
+
@builtins.property
|
|
6391
|
+
def start_inclusive(self) -> "api_Timestamp":
|
|
6392
|
+
return self._start_inclusive
|
|
6393
|
+
|
|
6394
|
+
@builtins.property
|
|
6395
|
+
def end_exclusive(self) -> "api_Timestamp":
|
|
6396
|
+
return self._end_exclusive
|
|
6397
|
+
|
|
6398
|
+
@builtins.property
|
|
6399
|
+
def filter_query(self) -> Optional["event_HistogramFilterQuery"]:
|
|
6400
|
+
"""
|
|
6401
|
+
The query to filter the events to be included in the histogram.
|
|
6402
|
+
"""
|
|
6403
|
+
return self._filter_query
|
|
6404
|
+
|
|
6405
|
+
@builtins.property
|
|
6406
|
+
def archived_statuses(self) -> Optional[List["api_ArchivedStatus"]]:
|
|
6407
|
+
"""
|
|
6408
|
+
Filters search on check alerts based on the archived statuses provided.
|
|
6409
|
+
Default is NOT_ARCHIVED only if none are provided.
|
|
6410
|
+
"""
|
|
6411
|
+
return self._archived_statuses
|
|
6412
|
+
|
|
6413
|
+
@builtins.property
|
|
6414
|
+
def num_bins(self) -> Optional[int]:
|
|
6415
|
+
"""
|
|
6416
|
+
Defaults to 100. Throws if larger than 1_000.
|
|
6417
|
+
The resulting histogram may have fewer bins than requested if the requested time window is too small.
|
|
6418
|
+
"""
|
|
6419
|
+
return self._num_bins
|
|
6420
|
+
|
|
6421
|
+
@builtins.property
|
|
6422
|
+
def event_limit(self) -> Optional[int]:
|
|
6423
|
+
"""
|
|
6424
|
+
Limits the number of events to be included in the histogram.
|
|
6425
|
+
Defaults to 1_000. Throws if larger than 10_000.
|
|
6426
|
+
"""
|
|
6427
|
+
return self._event_limit
|
|
6428
|
+
|
|
6429
|
+
|
|
6430
|
+
event_EventsHistogramRequest.__name__ = "EventsHistogramRequest"
|
|
6431
|
+
event_EventsHistogramRequest.__qualname__ = "EventsHistogramRequest"
|
|
6432
|
+
event_EventsHistogramRequest.__module__ = "nominal_api.event"
|
|
6433
|
+
|
|
6434
|
+
|
|
6435
|
+
class event_EventsHistogramResponse(ConjureBeanType):
|
|
6436
|
+
|
|
6437
|
+
@builtins.classmethod
|
|
6438
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
6439
|
+
return {
|
|
6440
|
+
'buckets': ConjureFieldDefinition('buckets', List[event_EventsHistogramBucket])
|
|
6441
|
+
}
|
|
6442
|
+
|
|
6443
|
+
__slots__: List[str] = ['_buckets']
|
|
6444
|
+
|
|
6445
|
+
def __init__(self, buckets: List["event_EventsHistogramBucket"]) -> None:
|
|
6446
|
+
self._buckets = buckets
|
|
6447
|
+
|
|
6448
|
+
@builtins.property
|
|
6449
|
+
def buckets(self) -> List["event_EventsHistogramBucket"]:
|
|
6450
|
+
return self._buckets
|
|
6451
|
+
|
|
6452
|
+
|
|
6453
|
+
event_EventsHistogramResponse.__name__ = "EventsHistogramResponse"
|
|
6454
|
+
event_EventsHistogramResponse.__qualname__ = "EventsHistogramResponse"
|
|
6455
|
+
event_EventsHistogramResponse.__module__ = "nominal_api.event"
|
|
6456
|
+
|
|
6457
|
+
|
|
6297
6458
|
class event_GetEvents(ConjureBeanType):
|
|
6298
6459
|
|
|
6299
6460
|
@builtins.classmethod
|
|
@@ -6317,6 +6478,377 @@ event_GetEvents.__qualname__ = "GetEvents"
|
|
|
6317
6478
|
event_GetEvents.__module__ = "nominal_api.event"
|
|
6318
6479
|
|
|
6319
6480
|
|
|
6481
|
+
class event_HistogramFilterQuery(ConjureUnionType):
|
|
6482
|
+
_search_text: Optional[str] = None
|
|
6483
|
+
_asset: Optional[str] = None
|
|
6484
|
+
_template: Optional[str] = None
|
|
6485
|
+
_workbook: Optional[str] = None
|
|
6486
|
+
_data_review: Optional[str] = None
|
|
6487
|
+
_origin_type: Optional["event_SearchEventOriginType"] = None
|
|
6488
|
+
_data_review_check: Optional[str] = None
|
|
6489
|
+
_disposition_status: Optional["event_EventDispositionStatus"] = None
|
|
6490
|
+
_priority: Optional["scout_api_Priority"] = None
|
|
6491
|
+
_assignee: Optional[str] = None
|
|
6492
|
+
_event_type: Optional["event_EventType"] = None
|
|
6493
|
+
_label: Optional[str] = None
|
|
6494
|
+
_property: Optional["api_Property"] = None
|
|
6495
|
+
_and_: Optional[List["event_HistogramFilterQuery"]] = None
|
|
6496
|
+
_or_: Optional[List["event_HistogramFilterQuery"]] = None
|
|
6497
|
+
_workspace: Optional[str] = None
|
|
6498
|
+
|
|
6499
|
+
@builtins.classmethod
|
|
6500
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
6501
|
+
return {
|
|
6502
|
+
'search_text': ConjureFieldDefinition('searchText', str),
|
|
6503
|
+
'asset': ConjureFieldDefinition('asset', scout_rids_api_AssetRid),
|
|
6504
|
+
'template': ConjureFieldDefinition('template', scout_rids_api_TemplateRid),
|
|
6505
|
+
'workbook': ConjureFieldDefinition('workbook', scout_rids_api_NotebookRid),
|
|
6506
|
+
'data_review': ConjureFieldDefinition('dataReview', scout_rids_api_DataReviewRid),
|
|
6507
|
+
'origin_type': ConjureFieldDefinition('originType', event_SearchEventOriginType),
|
|
6508
|
+
'data_review_check': ConjureFieldDefinition('dataReviewCheck', scout_rids_api_CheckRid),
|
|
6509
|
+
'disposition_status': ConjureFieldDefinition('dispositionStatus', event_EventDispositionStatus),
|
|
6510
|
+
'priority': ConjureFieldDefinition('priority', scout_api_Priority),
|
|
6511
|
+
'assignee': ConjureFieldDefinition('assignee', scout_rids_api_UserRid),
|
|
6512
|
+
'event_type': ConjureFieldDefinition('eventType', event_EventType),
|
|
6513
|
+
'label': ConjureFieldDefinition('label', api_Label),
|
|
6514
|
+
'property': ConjureFieldDefinition('property', api_Property),
|
|
6515
|
+
'and_': ConjureFieldDefinition('and', List[event_HistogramFilterQuery]),
|
|
6516
|
+
'or_': ConjureFieldDefinition('or', List[event_HistogramFilterQuery]),
|
|
6517
|
+
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
6518
|
+
}
|
|
6519
|
+
|
|
6520
|
+
def __init__(
|
|
6521
|
+
self,
|
|
6522
|
+
search_text: Optional[str] = None,
|
|
6523
|
+
asset: Optional[str] = None,
|
|
6524
|
+
template: Optional[str] = None,
|
|
6525
|
+
workbook: Optional[str] = None,
|
|
6526
|
+
data_review: Optional[str] = None,
|
|
6527
|
+
origin_type: Optional["event_SearchEventOriginType"] = None,
|
|
6528
|
+
data_review_check: Optional[str] = None,
|
|
6529
|
+
disposition_status: Optional["event_EventDispositionStatus"] = None,
|
|
6530
|
+
priority: Optional["scout_api_Priority"] = None,
|
|
6531
|
+
assignee: Optional[str] = None,
|
|
6532
|
+
event_type: Optional["event_EventType"] = None,
|
|
6533
|
+
label: Optional[str] = None,
|
|
6534
|
+
property: Optional["api_Property"] = None,
|
|
6535
|
+
and_: Optional[List["event_HistogramFilterQuery"]] = None,
|
|
6536
|
+
or_: Optional[List["event_HistogramFilterQuery"]] = None,
|
|
6537
|
+
workspace: Optional[str] = None,
|
|
6538
|
+
type_of_union: Optional[str] = None
|
|
6539
|
+
) -> None:
|
|
6540
|
+
if type_of_union is None:
|
|
6541
|
+
if (search_text 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) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
6542
|
+
raise ValueError('a union must contain a single member')
|
|
6543
|
+
|
|
6544
|
+
if search_text is not None:
|
|
6545
|
+
self._search_text = search_text
|
|
6546
|
+
self._type = 'searchText'
|
|
6547
|
+
if asset is not None:
|
|
6548
|
+
self._asset = asset
|
|
6549
|
+
self._type = 'asset'
|
|
6550
|
+
if template is not None:
|
|
6551
|
+
self._template = template
|
|
6552
|
+
self._type = 'template'
|
|
6553
|
+
if workbook is not None:
|
|
6554
|
+
self._workbook = workbook
|
|
6555
|
+
self._type = 'workbook'
|
|
6556
|
+
if data_review is not None:
|
|
6557
|
+
self._data_review = data_review
|
|
6558
|
+
self._type = 'dataReview'
|
|
6559
|
+
if origin_type is not None:
|
|
6560
|
+
self._origin_type = origin_type
|
|
6561
|
+
self._type = 'originType'
|
|
6562
|
+
if data_review_check is not None:
|
|
6563
|
+
self._data_review_check = data_review_check
|
|
6564
|
+
self._type = 'dataReviewCheck'
|
|
6565
|
+
if disposition_status is not None:
|
|
6566
|
+
self._disposition_status = disposition_status
|
|
6567
|
+
self._type = 'dispositionStatus'
|
|
6568
|
+
if priority is not None:
|
|
6569
|
+
self._priority = priority
|
|
6570
|
+
self._type = 'priority'
|
|
6571
|
+
if assignee is not None:
|
|
6572
|
+
self._assignee = assignee
|
|
6573
|
+
self._type = 'assignee'
|
|
6574
|
+
if event_type is not None:
|
|
6575
|
+
self._event_type = event_type
|
|
6576
|
+
self._type = 'eventType'
|
|
6577
|
+
if label is not None:
|
|
6578
|
+
self._label = label
|
|
6579
|
+
self._type = 'label'
|
|
6580
|
+
if property is not None:
|
|
6581
|
+
self._property = property
|
|
6582
|
+
self._type = 'property'
|
|
6583
|
+
if and_ is not None:
|
|
6584
|
+
self._and_ = and_
|
|
6585
|
+
self._type = 'and'
|
|
6586
|
+
if or_ is not None:
|
|
6587
|
+
self._or_ = or_
|
|
6588
|
+
self._type = 'or'
|
|
6589
|
+
if workspace is not None:
|
|
6590
|
+
self._workspace = workspace
|
|
6591
|
+
self._type = 'workspace'
|
|
6592
|
+
|
|
6593
|
+
elif type_of_union == 'searchText':
|
|
6594
|
+
if search_text is None:
|
|
6595
|
+
raise ValueError('a union value must not be None')
|
|
6596
|
+
self._search_text = search_text
|
|
6597
|
+
self._type = 'searchText'
|
|
6598
|
+
elif type_of_union == 'asset':
|
|
6599
|
+
if asset is None:
|
|
6600
|
+
raise ValueError('a union value must not be None')
|
|
6601
|
+
self._asset = asset
|
|
6602
|
+
self._type = 'asset'
|
|
6603
|
+
elif type_of_union == 'template':
|
|
6604
|
+
if template is None:
|
|
6605
|
+
raise ValueError('a union value must not be None')
|
|
6606
|
+
self._template = template
|
|
6607
|
+
self._type = 'template'
|
|
6608
|
+
elif type_of_union == 'workbook':
|
|
6609
|
+
if workbook is None:
|
|
6610
|
+
raise ValueError('a union value must not be None')
|
|
6611
|
+
self._workbook = workbook
|
|
6612
|
+
self._type = 'workbook'
|
|
6613
|
+
elif type_of_union == 'dataReview':
|
|
6614
|
+
if data_review is None:
|
|
6615
|
+
raise ValueError('a union value must not be None')
|
|
6616
|
+
self._data_review = data_review
|
|
6617
|
+
self._type = 'dataReview'
|
|
6618
|
+
elif type_of_union == 'originType':
|
|
6619
|
+
if origin_type is None:
|
|
6620
|
+
raise ValueError('a union value must not be None')
|
|
6621
|
+
self._origin_type = origin_type
|
|
6622
|
+
self._type = 'originType'
|
|
6623
|
+
elif type_of_union == 'dataReviewCheck':
|
|
6624
|
+
if data_review_check is None:
|
|
6625
|
+
raise ValueError('a union value must not be None')
|
|
6626
|
+
self._data_review_check = data_review_check
|
|
6627
|
+
self._type = 'dataReviewCheck'
|
|
6628
|
+
elif type_of_union == 'dispositionStatus':
|
|
6629
|
+
if disposition_status is None:
|
|
6630
|
+
raise ValueError('a union value must not be None')
|
|
6631
|
+
self._disposition_status = disposition_status
|
|
6632
|
+
self._type = 'dispositionStatus'
|
|
6633
|
+
elif type_of_union == 'priority':
|
|
6634
|
+
if priority is None:
|
|
6635
|
+
raise ValueError('a union value must not be None')
|
|
6636
|
+
self._priority = priority
|
|
6637
|
+
self._type = 'priority'
|
|
6638
|
+
elif type_of_union == 'assignee':
|
|
6639
|
+
if assignee is None:
|
|
6640
|
+
raise ValueError('a union value must not be None')
|
|
6641
|
+
self._assignee = assignee
|
|
6642
|
+
self._type = 'assignee'
|
|
6643
|
+
elif type_of_union == 'eventType':
|
|
6644
|
+
if event_type is None:
|
|
6645
|
+
raise ValueError('a union value must not be None')
|
|
6646
|
+
self._event_type = event_type
|
|
6647
|
+
self._type = 'eventType'
|
|
6648
|
+
elif type_of_union == 'label':
|
|
6649
|
+
if label is None:
|
|
6650
|
+
raise ValueError('a union value must not be None')
|
|
6651
|
+
self._label = label
|
|
6652
|
+
self._type = 'label'
|
|
6653
|
+
elif type_of_union == 'property':
|
|
6654
|
+
if property is None:
|
|
6655
|
+
raise ValueError('a union value must not be None')
|
|
6656
|
+
self._property = property
|
|
6657
|
+
self._type = 'property'
|
|
6658
|
+
elif type_of_union == 'and':
|
|
6659
|
+
if and_ is None:
|
|
6660
|
+
raise ValueError('a union value must not be None')
|
|
6661
|
+
self._and_ = and_
|
|
6662
|
+
self._type = 'and'
|
|
6663
|
+
elif type_of_union == 'or':
|
|
6664
|
+
if or_ is None:
|
|
6665
|
+
raise ValueError('a union value must not be None')
|
|
6666
|
+
self._or_ = or_
|
|
6667
|
+
self._type = 'or'
|
|
6668
|
+
elif type_of_union == 'workspace':
|
|
6669
|
+
if workspace is None:
|
|
6670
|
+
raise ValueError('a union value must not be None')
|
|
6671
|
+
self._workspace = workspace
|
|
6672
|
+
self._type = 'workspace'
|
|
6673
|
+
|
|
6674
|
+
@builtins.property
|
|
6675
|
+
def search_text(self) -> Optional[str]:
|
|
6676
|
+
return self._search_text
|
|
6677
|
+
|
|
6678
|
+
@builtins.property
|
|
6679
|
+
def asset(self) -> Optional[str]:
|
|
6680
|
+
return self._asset
|
|
6681
|
+
|
|
6682
|
+
@builtins.property
|
|
6683
|
+
def template(self) -> Optional[str]:
|
|
6684
|
+
return self._template
|
|
6685
|
+
|
|
6686
|
+
@builtins.property
|
|
6687
|
+
def workbook(self) -> Optional[str]:
|
|
6688
|
+
return self._workbook
|
|
6689
|
+
|
|
6690
|
+
@builtins.property
|
|
6691
|
+
def data_review(self) -> Optional[str]:
|
|
6692
|
+
return self._data_review
|
|
6693
|
+
|
|
6694
|
+
@builtins.property
|
|
6695
|
+
def origin_type(self) -> Optional["event_SearchEventOriginType"]:
|
|
6696
|
+
return self._origin_type
|
|
6697
|
+
|
|
6698
|
+
@builtins.property
|
|
6699
|
+
def data_review_check(self) -> Optional[str]:
|
|
6700
|
+
return self._data_review_check
|
|
6701
|
+
|
|
6702
|
+
@builtins.property
|
|
6703
|
+
def disposition_status(self) -> Optional["event_EventDispositionStatus"]:
|
|
6704
|
+
return self._disposition_status
|
|
6705
|
+
|
|
6706
|
+
@builtins.property
|
|
6707
|
+
def priority(self) -> Optional["scout_api_Priority"]:
|
|
6708
|
+
return self._priority
|
|
6709
|
+
|
|
6710
|
+
@builtins.property
|
|
6711
|
+
def assignee(self) -> Optional[str]:
|
|
6712
|
+
return self._assignee
|
|
6713
|
+
|
|
6714
|
+
@builtins.property
|
|
6715
|
+
def event_type(self) -> Optional["event_EventType"]:
|
|
6716
|
+
return self._event_type
|
|
6717
|
+
|
|
6718
|
+
@builtins.property
|
|
6719
|
+
def label(self) -> Optional[str]:
|
|
6720
|
+
return self._label
|
|
6721
|
+
|
|
6722
|
+
@builtins.property
|
|
6723
|
+
def property(self) -> Optional["api_Property"]:
|
|
6724
|
+
return self._property
|
|
6725
|
+
|
|
6726
|
+
@builtins.property
|
|
6727
|
+
def and_(self) -> Optional[List["event_HistogramFilterQuery"]]:
|
|
6728
|
+
return self._and_
|
|
6729
|
+
|
|
6730
|
+
@builtins.property
|
|
6731
|
+
def or_(self) -> Optional[List["event_HistogramFilterQuery"]]:
|
|
6732
|
+
return self._or_
|
|
6733
|
+
|
|
6734
|
+
@builtins.property
|
|
6735
|
+
def workspace(self) -> Optional[str]:
|
|
6736
|
+
return self._workspace
|
|
6737
|
+
|
|
6738
|
+
def accept(self, visitor) -> Any:
|
|
6739
|
+
if not isinstance(visitor, event_HistogramFilterQueryVisitor):
|
|
6740
|
+
raise ValueError('{} is not an instance of event_HistogramFilterQueryVisitor'.format(visitor.__class__.__name__))
|
|
6741
|
+
if self._type == 'searchText' and self.search_text is not None:
|
|
6742
|
+
return visitor._search_text(self.search_text)
|
|
6743
|
+
if self._type == 'asset' and self.asset is not None:
|
|
6744
|
+
return visitor._asset(self.asset)
|
|
6745
|
+
if self._type == 'template' and self.template is not None:
|
|
6746
|
+
return visitor._template(self.template)
|
|
6747
|
+
if self._type == 'workbook' and self.workbook is not None:
|
|
6748
|
+
return visitor._workbook(self.workbook)
|
|
6749
|
+
if self._type == 'dataReview' and self.data_review is not None:
|
|
6750
|
+
return visitor._data_review(self.data_review)
|
|
6751
|
+
if self._type == 'originType' and self.origin_type is not None:
|
|
6752
|
+
return visitor._origin_type(self.origin_type)
|
|
6753
|
+
if self._type == 'dataReviewCheck' and self.data_review_check is not None:
|
|
6754
|
+
return visitor._data_review_check(self.data_review_check)
|
|
6755
|
+
if self._type == 'dispositionStatus' and self.disposition_status is not None:
|
|
6756
|
+
return visitor._disposition_status(self.disposition_status)
|
|
6757
|
+
if self._type == 'priority' and self.priority is not None:
|
|
6758
|
+
return visitor._priority(self.priority)
|
|
6759
|
+
if self._type == 'assignee' and self.assignee is not None:
|
|
6760
|
+
return visitor._assignee(self.assignee)
|
|
6761
|
+
if self._type == 'eventType' and self.event_type is not None:
|
|
6762
|
+
return visitor._event_type(self.event_type)
|
|
6763
|
+
if self._type == 'label' and self.label is not None:
|
|
6764
|
+
return visitor._label(self.label)
|
|
6765
|
+
if self._type == 'property' and self.property is not None:
|
|
6766
|
+
return visitor._property(self.property)
|
|
6767
|
+
if self._type == 'and' and self.and_ is not None:
|
|
6768
|
+
return visitor._and(self.and_)
|
|
6769
|
+
if self._type == 'or' and self.or_ is not None:
|
|
6770
|
+
return visitor._or(self.or_)
|
|
6771
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
6772
|
+
return visitor._workspace(self.workspace)
|
|
6773
|
+
|
|
6774
|
+
|
|
6775
|
+
event_HistogramFilterQuery.__name__ = "HistogramFilterQuery"
|
|
6776
|
+
event_HistogramFilterQuery.__qualname__ = "HistogramFilterQuery"
|
|
6777
|
+
event_HistogramFilterQuery.__module__ = "nominal_api.event"
|
|
6778
|
+
|
|
6779
|
+
|
|
6780
|
+
class event_HistogramFilterQueryVisitor:
|
|
6781
|
+
|
|
6782
|
+
@abstractmethod
|
|
6783
|
+
def _search_text(self, search_text: str) -> Any:
|
|
6784
|
+
pass
|
|
6785
|
+
|
|
6786
|
+
@abstractmethod
|
|
6787
|
+
def _asset(self, asset: str) -> Any:
|
|
6788
|
+
pass
|
|
6789
|
+
|
|
6790
|
+
@abstractmethod
|
|
6791
|
+
def _template(self, template: str) -> Any:
|
|
6792
|
+
pass
|
|
6793
|
+
|
|
6794
|
+
@abstractmethod
|
|
6795
|
+
def _workbook(self, workbook: str) -> Any:
|
|
6796
|
+
pass
|
|
6797
|
+
|
|
6798
|
+
@abstractmethod
|
|
6799
|
+
def _data_review(self, data_review: str) -> Any:
|
|
6800
|
+
pass
|
|
6801
|
+
|
|
6802
|
+
@abstractmethod
|
|
6803
|
+
def _origin_type(self, origin_type: "event_SearchEventOriginType") -> Any:
|
|
6804
|
+
pass
|
|
6805
|
+
|
|
6806
|
+
@abstractmethod
|
|
6807
|
+
def _data_review_check(self, data_review_check: str) -> Any:
|
|
6808
|
+
pass
|
|
6809
|
+
|
|
6810
|
+
@abstractmethod
|
|
6811
|
+
def _disposition_status(self, disposition_status: "event_EventDispositionStatus") -> Any:
|
|
6812
|
+
pass
|
|
6813
|
+
|
|
6814
|
+
@abstractmethod
|
|
6815
|
+
def _priority(self, priority: "scout_api_Priority") -> Any:
|
|
6816
|
+
pass
|
|
6817
|
+
|
|
6818
|
+
@abstractmethod
|
|
6819
|
+
def _assignee(self, assignee: str) -> Any:
|
|
6820
|
+
pass
|
|
6821
|
+
|
|
6822
|
+
@abstractmethod
|
|
6823
|
+
def _event_type(self, event_type: "event_EventType") -> Any:
|
|
6824
|
+
pass
|
|
6825
|
+
|
|
6826
|
+
@abstractmethod
|
|
6827
|
+
def _label(self, label: str) -> Any:
|
|
6828
|
+
pass
|
|
6829
|
+
|
|
6830
|
+
@abstractmethod
|
|
6831
|
+
def _property(self, property: "api_Property") -> Any:
|
|
6832
|
+
pass
|
|
6833
|
+
|
|
6834
|
+
@abstractmethod
|
|
6835
|
+
def _and(self, and_: List["event_HistogramFilterQuery"]) -> Any:
|
|
6836
|
+
pass
|
|
6837
|
+
|
|
6838
|
+
@abstractmethod
|
|
6839
|
+
def _or(self, or_: List["event_HistogramFilterQuery"]) -> Any:
|
|
6840
|
+
pass
|
|
6841
|
+
|
|
6842
|
+
@abstractmethod
|
|
6843
|
+
def _workspace(self, workspace: str) -> Any:
|
|
6844
|
+
pass
|
|
6845
|
+
|
|
6846
|
+
|
|
6847
|
+
event_HistogramFilterQueryVisitor.__name__ = "HistogramFilterQueryVisitor"
|
|
6848
|
+
event_HistogramFilterQueryVisitor.__qualname__ = "HistogramFilterQueryVisitor"
|
|
6849
|
+
event_HistogramFilterQueryVisitor.__module__ = "nominal_api.event"
|
|
6850
|
+
|
|
6851
|
+
|
|
6320
6852
|
class event_SearchEventOriginType(ConjureEnumType):
|
|
6321
6853
|
|
|
6322
6854
|
WORKBOOK = 'WORKBOOK'
|
|
@@ -76253,7 +76785,7 @@ class storage_deletion_api_DeleteDataRequest(ConjureBeanType):
|
|
|
76253
76785
|
@builtins.classmethod
|
|
76254
76786
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
76255
76787
|
return {
|
|
76256
|
-
'data_source_rid': ConjureFieldDefinition('dataSourceRid',
|
|
76788
|
+
'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceOrDatasetRid),
|
|
76257
76789
|
'time_range': ConjureFieldDefinition('timeRange', OptionalTypeWrapper[storage_deletion_api_TimeRange]),
|
|
76258
76790
|
'tags': ConjureFieldDefinition('tags', OptionalTypeWrapper[Dict[api_TagName, api_TagValue]])
|
|
76259
76791
|
}
|
nominal_api/event/__init__.py
CHANGED
|
@@ -14,7 +14,12 @@ from .._impl import (
|
|
|
14
14
|
event_EventOriginVisitor as EventOriginVisitor,
|
|
15
15
|
event_EventService as EventService,
|
|
16
16
|
event_EventType as EventType,
|
|
17
|
+
event_EventsHistogramBucket as EventsHistogramBucket,
|
|
18
|
+
event_EventsHistogramRequest as EventsHistogramRequest,
|
|
19
|
+
event_EventsHistogramResponse as EventsHistogramResponse,
|
|
17
20
|
event_GetEvents as GetEvents,
|
|
21
|
+
event_HistogramFilterQuery as HistogramFilterQuery,
|
|
22
|
+
event_HistogramFilterQueryVisitor as HistogramFilterQueryVisitor,
|
|
18
23
|
event_SearchEventOriginType as SearchEventOriginType,
|
|
19
24
|
event_SearchEventsRequest as SearchEventsRequest,
|
|
20
25
|
event_SearchEventsResponse as SearchEventsResponse,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=VzNOr1fkrSPLdMsMJ4TYfNkMXDdObFKKi7AccMBK0AE,1955
|
|
2
|
+
nominal_api/_impl.py,sha256=90J6AYW-dpJLeFJktj4Fgo2vtbVPv_rNjNYcBkR8pSQ,3205722
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=1oJPOuAMfV2uClPUW8Ie1nj2Y6j81TDpedcc3yUFTe0,1294
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
|
|
@@ -14,7 +14,7 @@ nominal_api/datasource_api/__init__.py,sha256=-0v4FGK22kyCALrJ-LRcwJ-QHDUnFCBqj_
|
|
|
14
14
|
nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7uieaLz5hUbZDc,94
|
|
15
15
|
nominal_api/datasource_logset_api/__init__.py,sha256=JyjO1tQmG-HZ7kYMi8lSfeaaYddBZdCMIyqc0IUJfWo,1006
|
|
16
16
|
nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74aSZHjTKVI5N1MNuct1lI,212
|
|
17
|
-
nominal_api/event/__init__.py,sha256=
|
|
17
|
+
nominal_api/event/__init__.py,sha256=zcrM1UbIi-nnXmuns9Q-yyXRuTJY2SfJe2yYrJ7U-Dw,1602
|
|
18
18
|
nominal_api/ingest_api/__init__.py,sha256=pX6SuqdKC9Um0Rko2-EE04LyjOpaN8jAYDezl3LGAPw,7491
|
|
19
19
|
nominal_api/ingest_workflow_api/__init__.py,sha256=Xvz7jXoK5k_zEWzGnMB9EB942T-yCpX3CNHq-rqewlg,2094
|
|
20
20
|
nominal_api/persistent_compute_api/__init__.py,sha256=ThraDBJyYB5nFrbB6FZZpDoVAmsq8GAibiK0nu63MVA,2050
|
|
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
|
|
|
72
72
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
73
73
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
|
|
74
74
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
75
|
-
nominal_api-0.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.698.0.dist-info/METADATA,sha256=sMZ4coHWuExRGwt4I_0x0qJ-2ASt784J6DnuOn_fnDQ,199
|
|
76
|
+
nominal_api-0.698.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
77
|
+
nominal_api-0.698.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.698.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|