nominal-api 0.752.0__py3-none-any.whl → 0.753.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 +324 -14
- nominal_api/scout_compute_api/__init__.py +10 -0
- nominal_api/scout_compute_resolved_api/__init__.py +8 -0
- {nominal_api-0.752.0.dist-info → nominal_api-0.753.0.dist-info}/METADATA +1 -1
- {nominal_api-0.752.0.dist-info → nominal_api-0.753.0.dist-info}/RECORD +8 -8
- {nominal_api-0.752.0.dist-info → nominal_api-0.753.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.752.0.dist-info → nominal_api-0.753.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -9190,6 +9190,8 @@ class ingest_api_FileOutputFormat(ConjureEnumType):
|
|
|
9190
9190
|
'''CSV'''
|
|
9191
9191
|
PARQUET_TAR = 'PARQUET_TAR'
|
|
9192
9192
|
'''PARQUET_TAR'''
|
|
9193
|
+
AVRO_STREAM = 'AVRO_STREAM'
|
|
9194
|
+
'''AVRO_STREAM'''
|
|
9193
9195
|
UNKNOWN = 'UNKNOWN'
|
|
9194
9196
|
'''UNKNOWN'''
|
|
9195
9197
|
|
|
@@ -37521,17 +37523,19 @@ class scout_compute_api_AssetChannel(ConjureBeanType):
|
|
|
37521
37523
|
'data_scope_name': ConjureFieldDefinition('dataScopeName', scout_compute_api_StringConstant),
|
|
37522
37524
|
'channel': ConjureFieldDefinition('channel', scout_compute_api_StringConstant),
|
|
37523
37525
|
'additional_tags': ConjureFieldDefinition('additionalTags', Dict[str, scout_compute_api_StringConstant]),
|
|
37526
|
+
'additional_tag_filters': ConjureFieldDefinition('additionalTagFilters', OptionalTypeWrapper[scout_compute_api_TagFilters]),
|
|
37524
37527
|
'tags_to_group_by': ConjureFieldDefinition('tagsToGroupBy', List[str]),
|
|
37525
37528
|
'group_by_tags': ConjureFieldDefinition('groupByTags', OptionalTypeWrapper[scout_compute_api_StringSetConstant])
|
|
37526
37529
|
}
|
|
37527
37530
|
|
|
37528
|
-
__slots__: List[str] = ['_asset_rid', '_data_scope_name', '_channel', '_additional_tags', '_tags_to_group_by', '_group_by_tags']
|
|
37531
|
+
__slots__: List[str] = ['_asset_rid', '_data_scope_name', '_channel', '_additional_tags', '_additional_tag_filters', '_tags_to_group_by', '_group_by_tags']
|
|
37529
37532
|
|
|
37530
|
-
def __init__(self, additional_tags: Dict[str, "scout_compute_api_StringConstant"], asset_rid: "scout_compute_api_StringConstant", channel: "scout_compute_api_StringConstant", data_scope_name: "scout_compute_api_StringConstant", tags_to_group_by: List[str], group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None) -> None:
|
|
37533
|
+
def __init__(self, additional_tags: Dict[str, "scout_compute_api_StringConstant"], asset_rid: "scout_compute_api_StringConstant", channel: "scout_compute_api_StringConstant", data_scope_name: "scout_compute_api_StringConstant", tags_to_group_by: List[str], additional_tag_filters: Optional["scout_compute_api_TagFilters"] = None, group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None) -> None:
|
|
37531
37534
|
self._asset_rid = asset_rid
|
|
37532
37535
|
self._data_scope_name = data_scope_name
|
|
37533
37536
|
self._channel = channel
|
|
37534
37537
|
self._additional_tags = additional_tags
|
|
37538
|
+
self._additional_tag_filters = additional_tag_filters
|
|
37535
37539
|
self._tags_to_group_by = tags_to_group_by
|
|
37536
37540
|
self._group_by_tags = group_by_tags
|
|
37537
37541
|
|
|
@@ -37551,11 +37555,15 @@ class scout_compute_api_AssetChannel(ConjureBeanType):
|
|
|
37551
37555
|
|
|
37552
37556
|
@builtins.property
|
|
37553
37557
|
def additional_tags(self) -> Dict[str, "scout_compute_api_StringConstant"]:
|
|
37558
|
+
return self._additional_tags
|
|
37559
|
+
|
|
37560
|
+
@builtins.property
|
|
37561
|
+
def additional_tag_filters(self) -> Optional["scout_compute_api_TagFilters"]:
|
|
37554
37562
|
"""Tags to filter the channel by, in addition to tag filters defined for a given Asset data scope. Throws on
|
|
37555
37563
|
collisions with tag keys already defined for the given Asset data scope. Only returns points that match
|
|
37556
37564
|
both sets of tag filters. For log series, include arg filters here in addition to tag filters.
|
|
37557
37565
|
"""
|
|
37558
|
-
return self.
|
|
37566
|
+
return self._additional_tag_filters
|
|
37559
37567
|
|
|
37560
37568
|
@builtins.property
|
|
37561
37569
|
def tags_to_group_by(self) -> List[str]:
|
|
@@ -40931,16 +40939,18 @@ class scout_compute_api_DataSourceChannel(ConjureBeanType):
|
|
|
40931
40939
|
'data_source_rid': ConjureFieldDefinition('dataSourceRid', scout_compute_api_StringConstant),
|
|
40932
40940
|
'channel': ConjureFieldDefinition('channel', scout_compute_api_StringConstant),
|
|
40933
40941
|
'tags': ConjureFieldDefinition('tags', Dict[str, scout_compute_api_StringConstant]),
|
|
40942
|
+
'tag_filters': ConjureFieldDefinition('tagFilters', OptionalTypeWrapper[scout_compute_api_TagFilters]),
|
|
40934
40943
|
'tags_to_group_by': ConjureFieldDefinition('tagsToGroupBy', List[str]),
|
|
40935
40944
|
'group_by_tags': ConjureFieldDefinition('groupByTags', OptionalTypeWrapper[scout_compute_api_StringSetConstant])
|
|
40936
40945
|
}
|
|
40937
40946
|
|
|
40938
|
-
__slots__: List[str] = ['_data_source_rid', '_channel', '_tags', '_tags_to_group_by', '_group_by_tags']
|
|
40947
|
+
__slots__: List[str] = ['_data_source_rid', '_channel', '_tags', '_tag_filters', '_tags_to_group_by', '_group_by_tags']
|
|
40939
40948
|
|
|
40940
|
-
def __init__(self, channel: "scout_compute_api_StringConstant", data_source_rid: "scout_compute_api_StringConstant", tags: Dict[str, "scout_compute_api_StringConstant"], tags_to_group_by: List[str], group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None) -> None:
|
|
40949
|
+
def __init__(self, channel: "scout_compute_api_StringConstant", data_source_rid: "scout_compute_api_StringConstant", tags: Dict[str, "scout_compute_api_StringConstant"], tags_to_group_by: List[str], group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None, tag_filters: Optional["scout_compute_api_TagFilters"] = None) -> None:
|
|
40941
40950
|
self._data_source_rid = data_source_rid
|
|
40942
40951
|
self._channel = channel
|
|
40943
40952
|
self._tags = tags
|
|
40953
|
+
self._tag_filters = tag_filters
|
|
40944
40954
|
self._tags_to_group_by = tags_to_group_by
|
|
40945
40955
|
self._group_by_tags = group_by_tags
|
|
40946
40956
|
|
|
@@ -40954,11 +40964,15 @@ class scout_compute_api_DataSourceChannel(ConjureBeanType):
|
|
|
40954
40964
|
|
|
40955
40965
|
@builtins.property
|
|
40956
40966
|
def tags(self) -> Dict[str, "scout_compute_api_StringConstant"]:
|
|
40957
|
-
"""Tags to filter the channel by. Only returns points from the channel with matching tag values for the
|
|
40958
|
-
provided tag keys. For log series, include arg filters here in addition to tag filters.
|
|
40959
|
-
"""
|
|
40960
40967
|
return self._tags
|
|
40961
40968
|
|
|
40969
|
+
@builtins.property
|
|
40970
|
+
def tag_filters(self) -> Optional["scout_compute_api_TagFilters"]:
|
|
40971
|
+
"""Tags to filter the channel by. Only returns points from the channel where tag values match the provided
|
|
40972
|
+
expression. For log series, include arg filters here in addition to tag filters.
|
|
40973
|
+
"""
|
|
40974
|
+
return self._tag_filters
|
|
40975
|
+
|
|
40962
40976
|
@builtins.property
|
|
40963
40977
|
def tags_to_group_by(self) -> List[str]:
|
|
40964
40978
|
return self._tags_to_group_by
|
|
@@ -47955,17 +47969,19 @@ class scout_compute_api_RunChannel(ConjureBeanType):
|
|
|
47955
47969
|
'data_scope_name': ConjureFieldDefinition('dataScopeName', scout_compute_api_StringConstant),
|
|
47956
47970
|
'channel': ConjureFieldDefinition('channel', scout_compute_api_StringConstant),
|
|
47957
47971
|
'additional_tags': ConjureFieldDefinition('additionalTags', Dict[str, scout_compute_api_StringConstant]),
|
|
47972
|
+
'additional_tag_filters': ConjureFieldDefinition('additionalTagFilters', OptionalTypeWrapper[scout_compute_api_TagFilters]),
|
|
47958
47973
|
'tags_to_group_by': ConjureFieldDefinition('tagsToGroupBy', List[str]),
|
|
47959
47974
|
'group_by_tags': ConjureFieldDefinition('groupByTags', OptionalTypeWrapper[scout_compute_api_StringSetConstant])
|
|
47960
47975
|
}
|
|
47961
47976
|
|
|
47962
|
-
__slots__: List[str] = ['_run_rid', '_data_scope_name', '_channel', '_additional_tags', '_tags_to_group_by', '_group_by_tags']
|
|
47977
|
+
__slots__: List[str] = ['_run_rid', '_data_scope_name', '_channel', '_additional_tags', '_additional_tag_filters', '_tags_to_group_by', '_group_by_tags']
|
|
47963
47978
|
|
|
47964
|
-
def __init__(self, additional_tags: Dict[str, "scout_compute_api_StringConstant"], channel: "scout_compute_api_StringConstant", data_scope_name: "scout_compute_api_StringConstant", run_rid: "scout_compute_api_StringConstant", tags_to_group_by: List[str], group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None) -> None:
|
|
47979
|
+
def __init__(self, additional_tags: Dict[str, "scout_compute_api_StringConstant"], channel: "scout_compute_api_StringConstant", data_scope_name: "scout_compute_api_StringConstant", run_rid: "scout_compute_api_StringConstant", tags_to_group_by: List[str], additional_tag_filters: Optional["scout_compute_api_TagFilters"] = None, group_by_tags: Optional["scout_compute_api_StringSetConstant"] = None) -> None:
|
|
47965
47980
|
self._run_rid = run_rid
|
|
47966
47981
|
self._data_scope_name = data_scope_name
|
|
47967
47982
|
self._channel = channel
|
|
47968
47983
|
self._additional_tags = additional_tags
|
|
47984
|
+
self._additional_tag_filters = additional_tag_filters
|
|
47969
47985
|
self._tags_to_group_by = tags_to_group_by
|
|
47970
47986
|
self._group_by_tags = group_by_tags
|
|
47971
47987
|
|
|
@@ -47985,11 +48001,15 @@ class scout_compute_api_RunChannel(ConjureBeanType):
|
|
|
47985
48001
|
|
|
47986
48002
|
@builtins.property
|
|
47987
48003
|
def additional_tags(self) -> Dict[str, "scout_compute_api_StringConstant"]:
|
|
48004
|
+
return self._additional_tags
|
|
48005
|
+
|
|
48006
|
+
@builtins.property
|
|
48007
|
+
def additional_tag_filters(self) -> Optional["scout_compute_api_TagFilters"]:
|
|
47988
48008
|
"""Tags to filter the channel by, in addition to tag filters defined for a given Run data scope. Throws on
|
|
47989
48009
|
collisions with tag keys already defined for the given Run data scope. Only returns points that match
|
|
47990
48010
|
both sets of tag filters. For log series, include arg filters here in addition to tag filters.
|
|
47991
48011
|
"""
|
|
47992
|
-
return self.
|
|
48012
|
+
return self._additional_tag_filters
|
|
47993
48013
|
|
|
47994
48014
|
@builtins.property
|
|
47995
48015
|
def tags_to_group_by(self) -> List[str]:
|
|
@@ -49519,6 +49539,166 @@ scout_compute_api_SummarizeSeries.__qualname__ = "SummarizeSeries"
|
|
|
49519
49539
|
scout_compute_api_SummarizeSeries.__module__ = "nominal_api.scout_compute_api"
|
|
49520
49540
|
|
|
49521
49541
|
|
|
49542
|
+
class scout_compute_api_TagFilter(ConjureBeanType):
|
|
49543
|
+
"""A filter on a single tag key and set of values. For an IN operator, the tag key must match at least one of the
|
|
49544
|
+
values in the set. For a NOT_IN operator, it must not match any of the values in the set.
|
|
49545
|
+
"""
|
|
49546
|
+
|
|
49547
|
+
@builtins.classmethod
|
|
49548
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
49549
|
+
return {
|
|
49550
|
+
'key': ConjureFieldDefinition('key', scout_compute_api_StringConstant),
|
|
49551
|
+
'values': ConjureFieldDefinition('values', List[scout_compute_api_StringConstant]),
|
|
49552
|
+
'operator': ConjureFieldDefinition('operator', scout_compute_api_TagFilterOperator)
|
|
49553
|
+
}
|
|
49554
|
+
|
|
49555
|
+
__slots__: List[str] = ['_key', '_values', '_operator']
|
|
49556
|
+
|
|
49557
|
+
def __init__(self, key: "scout_compute_api_StringConstant", operator: "scout_compute_api_TagFilterOperator", values: List["scout_compute_api_StringConstant"]) -> None:
|
|
49558
|
+
self._key = key
|
|
49559
|
+
self._values = values
|
|
49560
|
+
self._operator = operator
|
|
49561
|
+
|
|
49562
|
+
@builtins.property
|
|
49563
|
+
def key(self) -> "scout_compute_api_StringConstant":
|
|
49564
|
+
return self._key
|
|
49565
|
+
|
|
49566
|
+
@builtins.property
|
|
49567
|
+
def values(self) -> List["scout_compute_api_StringConstant"]:
|
|
49568
|
+
return self._values
|
|
49569
|
+
|
|
49570
|
+
@builtins.property
|
|
49571
|
+
def operator(self) -> "scout_compute_api_TagFilterOperator":
|
|
49572
|
+
return self._operator
|
|
49573
|
+
|
|
49574
|
+
|
|
49575
|
+
scout_compute_api_TagFilter.__name__ = "TagFilter"
|
|
49576
|
+
scout_compute_api_TagFilter.__qualname__ = "TagFilter"
|
|
49577
|
+
scout_compute_api_TagFilter.__module__ = "nominal_api.scout_compute_api"
|
|
49578
|
+
|
|
49579
|
+
|
|
49580
|
+
class scout_compute_api_TagFilterOperator(ConjureEnumType):
|
|
49581
|
+
|
|
49582
|
+
IN = 'IN'
|
|
49583
|
+
'''IN'''
|
|
49584
|
+
NOT_IN = 'NOT_IN'
|
|
49585
|
+
'''NOT_IN'''
|
|
49586
|
+
UNKNOWN = 'UNKNOWN'
|
|
49587
|
+
'''UNKNOWN'''
|
|
49588
|
+
|
|
49589
|
+
def __reduce_ex__(self, proto):
|
|
49590
|
+
return self.__class__, (self.name,)
|
|
49591
|
+
|
|
49592
|
+
|
|
49593
|
+
scout_compute_api_TagFilterOperator.__name__ = "TagFilterOperator"
|
|
49594
|
+
scout_compute_api_TagFilterOperator.__qualname__ = "TagFilterOperator"
|
|
49595
|
+
scout_compute_api_TagFilterOperator.__module__ = "nominal_api.scout_compute_api"
|
|
49596
|
+
|
|
49597
|
+
|
|
49598
|
+
class scout_compute_api_TagFilterValidationErrorType(ConjureEnumType):
|
|
49599
|
+
|
|
49600
|
+
BOTH_TAGS_AND_TAG_FILTERS_PROVIDED = 'BOTH_TAGS_AND_TAG_FILTERS_PROVIDED'
|
|
49601
|
+
'''BOTH_TAGS_AND_TAG_FILTERS_PROVIDED'''
|
|
49602
|
+
EMPTY_FILTER_LIST = 'EMPTY_FILTER_LIST'
|
|
49603
|
+
'''EMPTY_FILTER_LIST'''
|
|
49604
|
+
EMPTY_TAG_VALUE_SET = 'EMPTY_TAG_VALUE_SET'
|
|
49605
|
+
'''EMPTY_TAG_VALUE_SET'''
|
|
49606
|
+
NESTED_AND_OPERATIONS = 'NESTED_AND_OPERATIONS'
|
|
49607
|
+
'''NESTED_AND_OPERATIONS'''
|
|
49608
|
+
DUPLICATE_TAG_KEY = 'DUPLICATE_TAG_KEY'
|
|
49609
|
+
'''DUPLICATE_TAG_KEY'''
|
|
49610
|
+
UNKNOWN = 'UNKNOWN'
|
|
49611
|
+
'''UNKNOWN'''
|
|
49612
|
+
|
|
49613
|
+
def __reduce_ex__(self, proto):
|
|
49614
|
+
return self.__class__, (self.name,)
|
|
49615
|
+
|
|
49616
|
+
|
|
49617
|
+
scout_compute_api_TagFilterValidationErrorType.__name__ = "TagFilterValidationErrorType"
|
|
49618
|
+
scout_compute_api_TagFilterValidationErrorType.__qualname__ = "TagFilterValidationErrorType"
|
|
49619
|
+
scout_compute_api_TagFilterValidationErrorType.__module__ = "nominal_api.scout_compute_api"
|
|
49620
|
+
|
|
49621
|
+
|
|
49622
|
+
class scout_compute_api_TagFilters(ConjureUnionType):
|
|
49623
|
+
"""A set of tag filters to apply to a channel. Allows for combining filters on multiple tag keys, but throws if
|
|
49624
|
+
any one tag key is specified in more than one filter.
|
|
49625
|
+
"""
|
|
49626
|
+
_single: Optional["scout_compute_api_TagFilter"] = None
|
|
49627
|
+
_and_: Optional[List["scout_compute_api_TagFilters"]] = None
|
|
49628
|
+
|
|
49629
|
+
@builtins.classmethod
|
|
49630
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
49631
|
+
return {
|
|
49632
|
+
'single': ConjureFieldDefinition('single', scout_compute_api_TagFilter),
|
|
49633
|
+
'and_': ConjureFieldDefinition('and', List[scout_compute_api_TagFilters])
|
|
49634
|
+
}
|
|
49635
|
+
|
|
49636
|
+
def __init__(
|
|
49637
|
+
self,
|
|
49638
|
+
single: Optional["scout_compute_api_TagFilter"] = None,
|
|
49639
|
+
and_: Optional[List["scout_compute_api_TagFilters"]] = None,
|
|
49640
|
+
type_of_union: Optional[str] = None
|
|
49641
|
+
) -> None:
|
|
49642
|
+
if type_of_union is None:
|
|
49643
|
+
if (single is not None) + (and_ is not None) != 1:
|
|
49644
|
+
raise ValueError('a union must contain a single member')
|
|
49645
|
+
|
|
49646
|
+
if single is not None:
|
|
49647
|
+
self._single = single
|
|
49648
|
+
self._type = 'single'
|
|
49649
|
+
if and_ is not None:
|
|
49650
|
+
self._and_ = and_
|
|
49651
|
+
self._type = 'and'
|
|
49652
|
+
|
|
49653
|
+
elif type_of_union == 'single':
|
|
49654
|
+
if single is None:
|
|
49655
|
+
raise ValueError('a union value must not be None')
|
|
49656
|
+
self._single = single
|
|
49657
|
+
self._type = 'single'
|
|
49658
|
+
elif type_of_union == 'and':
|
|
49659
|
+
if and_ is None:
|
|
49660
|
+
raise ValueError('a union value must not be None')
|
|
49661
|
+
self._and_ = and_
|
|
49662
|
+
self._type = 'and'
|
|
49663
|
+
|
|
49664
|
+
@builtins.property
|
|
49665
|
+
def single(self) -> Optional["scout_compute_api_TagFilter"]:
|
|
49666
|
+
return self._single
|
|
49667
|
+
|
|
49668
|
+
@builtins.property
|
|
49669
|
+
def and_(self) -> Optional[List["scout_compute_api_TagFilters"]]:
|
|
49670
|
+
return self._and_
|
|
49671
|
+
|
|
49672
|
+
def accept(self, visitor) -> Any:
|
|
49673
|
+
if not isinstance(visitor, scout_compute_api_TagFiltersVisitor):
|
|
49674
|
+
raise ValueError('{} is not an instance of scout_compute_api_TagFiltersVisitor'.format(visitor.__class__.__name__))
|
|
49675
|
+
if self._type == 'single' and self.single is not None:
|
|
49676
|
+
return visitor._single(self.single)
|
|
49677
|
+
if self._type == 'and' and self.and_ is not None:
|
|
49678
|
+
return visitor._and(self.and_)
|
|
49679
|
+
|
|
49680
|
+
|
|
49681
|
+
scout_compute_api_TagFilters.__name__ = "TagFilters"
|
|
49682
|
+
scout_compute_api_TagFilters.__qualname__ = "TagFilters"
|
|
49683
|
+
scout_compute_api_TagFilters.__module__ = "nominal_api.scout_compute_api"
|
|
49684
|
+
|
|
49685
|
+
|
|
49686
|
+
class scout_compute_api_TagFiltersVisitor:
|
|
49687
|
+
|
|
49688
|
+
@abstractmethod
|
|
49689
|
+
def _single(self, single: "scout_compute_api_TagFilter") -> Any:
|
|
49690
|
+
pass
|
|
49691
|
+
|
|
49692
|
+
@abstractmethod
|
|
49693
|
+
def _and(self, and_: List["scout_compute_api_TagFilters"]) -> Any:
|
|
49694
|
+
pass
|
|
49695
|
+
|
|
49696
|
+
|
|
49697
|
+
scout_compute_api_TagFiltersVisitor.__name__ = "TagFiltersVisitor"
|
|
49698
|
+
scout_compute_api_TagFiltersVisitor.__qualname__ = "TagFiltersVisitor"
|
|
49699
|
+
scout_compute_api_TagFiltersVisitor.__module__ = "nominal_api.scout_compute_api"
|
|
49700
|
+
|
|
49701
|
+
|
|
49522
49702
|
class scout_compute_api_Threshold(ConjureUnionType):
|
|
49523
49703
|
_absolute: Optional["scout_compute_api_AbsoluteThreshold"] = None
|
|
49524
49704
|
_percentage: Optional["scout_compute_api_PercentageThreshold"] = None
|
|
@@ -53232,14 +53412,14 @@ class scout_compute_resolved_api_ClickHouseSeriesResolutionDetails(ConjureBeanTy
|
|
|
53232
53412
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
53233
53413
|
return {
|
|
53234
53414
|
'channel': ConjureFieldDefinition('channel', api_Channel),
|
|
53235
|
-
'tags': ConjureFieldDefinition('tags',
|
|
53415
|
+
'tags': ConjureFieldDefinition('tags', OptionalTypeWrapper[scout_compute_resolved_api_TagFilters]),
|
|
53236
53416
|
'tags_to_group_by': ConjureFieldDefinition('tagsToGroupBy', List[api_TagName]),
|
|
53237
53417
|
'org_rid': ConjureFieldDefinition('orgRid', authentication_api_OrgRid)
|
|
53238
53418
|
}
|
|
53239
53419
|
|
|
53240
53420
|
__slots__: List[str] = ['_channel', '_tags', '_tags_to_group_by', '_org_rid']
|
|
53241
53421
|
|
|
53242
|
-
def __init__(self, channel: str, org_rid: str,
|
|
53422
|
+
def __init__(self, channel: str, org_rid: str, tags_to_group_by: List[str], tags: Optional["scout_compute_resolved_api_TagFilters"] = None) -> None:
|
|
53243
53423
|
self._channel = channel
|
|
53244
53424
|
self._tags = tags
|
|
53245
53425
|
self._tags_to_group_by = tags_to_group_by
|
|
@@ -53250,7 +53430,7 @@ class scout_compute_resolved_api_ClickHouseSeriesResolutionDetails(ConjureBeanTy
|
|
|
53250
53430
|
return self._channel
|
|
53251
53431
|
|
|
53252
53432
|
@builtins.property
|
|
53253
|
-
def tags(self) ->
|
|
53433
|
+
def tags(self) -> Optional["scout_compute_resolved_api_TagFilters"]:
|
|
53254
53434
|
return self._tags
|
|
53255
53435
|
|
|
53256
53436
|
@builtins.property
|
|
@@ -58386,6 +58566,136 @@ scout_compute_resolved_api_SummarizeSeriesNode.__qualname__ = "SummarizeSeriesNo
|
|
|
58386
58566
|
scout_compute_resolved_api_SummarizeSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58387
58567
|
|
|
58388
58568
|
|
|
58569
|
+
class scout_compute_resolved_api_TagFilter(ConjureBeanType):
|
|
58570
|
+
|
|
58571
|
+
@builtins.classmethod
|
|
58572
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
58573
|
+
return {
|
|
58574
|
+
'key': ConjureFieldDefinition('key', api_TagName),
|
|
58575
|
+
'values': ConjureFieldDefinition('values', List[api_TagValue]),
|
|
58576
|
+
'operator': ConjureFieldDefinition('operator', scout_compute_resolved_api_TagFilterOperator)
|
|
58577
|
+
}
|
|
58578
|
+
|
|
58579
|
+
__slots__: List[str] = ['_key', '_values', '_operator']
|
|
58580
|
+
|
|
58581
|
+
def __init__(self, key: str, operator: "scout_compute_resolved_api_TagFilterOperator", values: List[str]) -> None:
|
|
58582
|
+
self._key = key
|
|
58583
|
+
self._values = values
|
|
58584
|
+
self._operator = operator
|
|
58585
|
+
|
|
58586
|
+
@builtins.property
|
|
58587
|
+
def key(self) -> str:
|
|
58588
|
+
return self._key
|
|
58589
|
+
|
|
58590
|
+
@builtins.property
|
|
58591
|
+
def values(self) -> List[str]:
|
|
58592
|
+
return self._values
|
|
58593
|
+
|
|
58594
|
+
@builtins.property
|
|
58595
|
+
def operator(self) -> "scout_compute_resolved_api_TagFilterOperator":
|
|
58596
|
+
return self._operator
|
|
58597
|
+
|
|
58598
|
+
|
|
58599
|
+
scout_compute_resolved_api_TagFilter.__name__ = "TagFilter"
|
|
58600
|
+
scout_compute_resolved_api_TagFilter.__qualname__ = "TagFilter"
|
|
58601
|
+
scout_compute_resolved_api_TagFilter.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58602
|
+
|
|
58603
|
+
|
|
58604
|
+
class scout_compute_resolved_api_TagFilterOperator(ConjureEnumType):
|
|
58605
|
+
|
|
58606
|
+
IN = 'IN'
|
|
58607
|
+
'''IN'''
|
|
58608
|
+
NOT_IN = 'NOT_IN'
|
|
58609
|
+
'''NOT_IN'''
|
|
58610
|
+
UNKNOWN = 'UNKNOWN'
|
|
58611
|
+
'''UNKNOWN'''
|
|
58612
|
+
|
|
58613
|
+
def __reduce_ex__(self, proto):
|
|
58614
|
+
return self.__class__, (self.name,)
|
|
58615
|
+
|
|
58616
|
+
|
|
58617
|
+
scout_compute_resolved_api_TagFilterOperator.__name__ = "TagFilterOperator"
|
|
58618
|
+
scout_compute_resolved_api_TagFilterOperator.__qualname__ = "TagFilterOperator"
|
|
58619
|
+
scout_compute_resolved_api_TagFilterOperator.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58620
|
+
|
|
58621
|
+
|
|
58622
|
+
class scout_compute_resolved_api_TagFilters(ConjureUnionType):
|
|
58623
|
+
_single: Optional["scout_compute_resolved_api_TagFilter"] = None
|
|
58624
|
+
_and_: Optional[List["scout_compute_resolved_api_TagFilters"]] = None
|
|
58625
|
+
|
|
58626
|
+
@builtins.classmethod
|
|
58627
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
58628
|
+
return {
|
|
58629
|
+
'single': ConjureFieldDefinition('single', scout_compute_resolved_api_TagFilter),
|
|
58630
|
+
'and_': ConjureFieldDefinition('and', List[scout_compute_resolved_api_TagFilters])
|
|
58631
|
+
}
|
|
58632
|
+
|
|
58633
|
+
def __init__(
|
|
58634
|
+
self,
|
|
58635
|
+
single: Optional["scout_compute_resolved_api_TagFilter"] = None,
|
|
58636
|
+
and_: Optional[List["scout_compute_resolved_api_TagFilters"]] = None,
|
|
58637
|
+
type_of_union: Optional[str] = None
|
|
58638
|
+
) -> None:
|
|
58639
|
+
if type_of_union is None:
|
|
58640
|
+
if (single is not None) + (and_ is not None) != 1:
|
|
58641
|
+
raise ValueError('a union must contain a single member')
|
|
58642
|
+
|
|
58643
|
+
if single is not None:
|
|
58644
|
+
self._single = single
|
|
58645
|
+
self._type = 'single'
|
|
58646
|
+
if and_ is not None:
|
|
58647
|
+
self._and_ = and_
|
|
58648
|
+
self._type = 'and'
|
|
58649
|
+
|
|
58650
|
+
elif type_of_union == 'single':
|
|
58651
|
+
if single is None:
|
|
58652
|
+
raise ValueError('a union value must not be None')
|
|
58653
|
+
self._single = single
|
|
58654
|
+
self._type = 'single'
|
|
58655
|
+
elif type_of_union == 'and':
|
|
58656
|
+
if and_ is None:
|
|
58657
|
+
raise ValueError('a union value must not be None')
|
|
58658
|
+
self._and_ = and_
|
|
58659
|
+
self._type = 'and'
|
|
58660
|
+
|
|
58661
|
+
@builtins.property
|
|
58662
|
+
def single(self) -> Optional["scout_compute_resolved_api_TagFilter"]:
|
|
58663
|
+
return self._single
|
|
58664
|
+
|
|
58665
|
+
@builtins.property
|
|
58666
|
+
def and_(self) -> Optional[List["scout_compute_resolved_api_TagFilters"]]:
|
|
58667
|
+
return self._and_
|
|
58668
|
+
|
|
58669
|
+
def accept(self, visitor) -> Any:
|
|
58670
|
+
if not isinstance(visitor, scout_compute_resolved_api_TagFiltersVisitor):
|
|
58671
|
+
raise ValueError('{} is not an instance of scout_compute_resolved_api_TagFiltersVisitor'.format(visitor.__class__.__name__))
|
|
58672
|
+
if self._type == 'single' and self.single is not None:
|
|
58673
|
+
return visitor._single(self.single)
|
|
58674
|
+
if self._type == 'and' and self.and_ is not None:
|
|
58675
|
+
return visitor._and(self.and_)
|
|
58676
|
+
|
|
58677
|
+
|
|
58678
|
+
scout_compute_resolved_api_TagFilters.__name__ = "TagFilters"
|
|
58679
|
+
scout_compute_resolved_api_TagFilters.__qualname__ = "TagFilters"
|
|
58680
|
+
scout_compute_resolved_api_TagFilters.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58681
|
+
|
|
58682
|
+
|
|
58683
|
+
class scout_compute_resolved_api_TagFiltersVisitor:
|
|
58684
|
+
|
|
58685
|
+
@abstractmethod
|
|
58686
|
+
def _single(self, single: "scout_compute_resolved_api_TagFilter") -> Any:
|
|
58687
|
+
pass
|
|
58688
|
+
|
|
58689
|
+
@abstractmethod
|
|
58690
|
+
def _and(self, and_: List["scout_compute_resolved_api_TagFilters"]) -> Any:
|
|
58691
|
+
pass
|
|
58692
|
+
|
|
58693
|
+
|
|
58694
|
+
scout_compute_resolved_api_TagFiltersVisitor.__name__ = "TagFiltersVisitor"
|
|
58695
|
+
scout_compute_resolved_api_TagFiltersVisitor.__qualname__ = "TagFiltersVisitor"
|
|
58696
|
+
scout_compute_resolved_api_TagFiltersVisitor.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58697
|
+
|
|
58698
|
+
|
|
58389
58699
|
class scout_compute_resolved_api_Threshold(ConjureUnionType):
|
|
58390
58700
|
_absolute: Optional["scout_compute_resolved_api_AbsoluteThreshold"] = None
|
|
58391
58701
|
_percentage: Optional["scout_compute_resolved_api_PercentageThreshold"] = None
|
|
@@ -297,6 +297,11 @@ from .._impl import (
|
|
|
297
297
|
scout_compute_api_SummarizeGeo as SummarizeGeo,
|
|
298
298
|
scout_compute_api_SummarizeRanges as SummarizeRanges,
|
|
299
299
|
scout_compute_api_SummarizeSeries as SummarizeSeries,
|
|
300
|
+
scout_compute_api_TagFilter as TagFilter,
|
|
301
|
+
scout_compute_api_TagFilterOperator as TagFilterOperator,
|
|
302
|
+
scout_compute_api_TagFilterValidationErrorType as TagFilterValidationErrorType,
|
|
303
|
+
scout_compute_api_TagFilters as TagFilters,
|
|
304
|
+
scout_compute_api_TagFiltersVisitor as TagFiltersVisitor,
|
|
300
305
|
scout_compute_api_Threshold as Threshold,
|
|
301
306
|
scout_compute_api_ThresholdOperator as ThresholdOperator,
|
|
302
307
|
scout_compute_api_ThresholdVisitor as ThresholdVisitor,
|
|
@@ -624,6 +629,11 @@ __all__ = [
|
|
|
624
629
|
'SummarizeGeo',
|
|
625
630
|
'SummarizeRanges',
|
|
626
631
|
'SummarizeSeries',
|
|
632
|
+
'TagFilter',
|
|
633
|
+
'TagFilterOperator',
|
|
634
|
+
'TagFilterValidationErrorType',
|
|
635
|
+
'TagFilters',
|
|
636
|
+
'TagFiltersVisitor',
|
|
627
637
|
'Threshold',
|
|
628
638
|
'ThresholdVisitor',
|
|
629
639
|
'ThresholdOperator',
|
|
@@ -135,6 +135,10 @@ from .._impl import (
|
|
|
135
135
|
scout_compute_resolved_api_SummarizeGeoNode as SummarizeGeoNode,
|
|
136
136
|
scout_compute_resolved_api_SummarizeRangesNode as SummarizeRangesNode,
|
|
137
137
|
scout_compute_resolved_api_SummarizeSeriesNode as SummarizeSeriesNode,
|
|
138
|
+
scout_compute_resolved_api_TagFilter as TagFilter,
|
|
139
|
+
scout_compute_resolved_api_TagFilterOperator as TagFilterOperator,
|
|
140
|
+
scout_compute_resolved_api_TagFilters as TagFilters,
|
|
141
|
+
scout_compute_resolved_api_TagFiltersVisitor as TagFiltersVisitor,
|
|
138
142
|
scout_compute_resolved_api_Threshold as Threshold,
|
|
139
143
|
scout_compute_resolved_api_ThresholdVisitor as ThresholdVisitor,
|
|
140
144
|
scout_compute_resolved_api_ThresholdingRangesNode as ThresholdingRangesNode,
|
|
@@ -285,6 +289,10 @@ __all__ = [
|
|
|
285
289
|
'SummarizeGeoNode',
|
|
286
290
|
'SummarizeRangesNode',
|
|
287
291
|
'SummarizeSeriesNode',
|
|
292
|
+
'TagFilter',
|
|
293
|
+
'TagFilterOperator',
|
|
294
|
+
'TagFilters',
|
|
295
|
+
'TagFiltersVisitor',
|
|
288
296
|
'Threshold',
|
|
289
297
|
'ThresholdVisitor',
|
|
290
298
|
'ThresholdingRangesNode',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=E6-Zr3eQZ0NEXPwk58S-C4XuwEz0fqxORgAkUMtoLpI,1989
|
|
2
|
+
nominal_api/_impl.py,sha256=TL0rMs2UWJPg799z2r155xJgAPX-4xJ90p9I6IyUjYs,3404959
|
|
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
|
|
@@ -32,9 +32,9 @@ nominal_api/scout_checklistexecution_api/__init__.py,sha256=iVeUjPTlbpQ3vlQkQjHr
|
|
|
32
32
|
nominal_api/scout_checks_api/__init__.py,sha256=sxTv9ZL2rnXCaR7wVRNafqIPIzBbIPDGiJdYAr-VSV0,7317
|
|
33
33
|
nominal_api/scout_comparisonnotebook_api/__init__.py,sha256=RpTvc8WqNxOuDSXWs-xV3MSSFIoIy8Fj3eaIDCVygvU,6215
|
|
34
34
|
nominal_api/scout_comparisonrun_api/__init__.py,sha256=y5SlDoXvskyTKjg2O8o3cBhGSN-KA7iVlVjyy3vb3Co,652
|
|
35
|
-
nominal_api/scout_compute_api/__init__.py,sha256=
|
|
35
|
+
nominal_api/scout_compute_api/__init__.py,sha256=4ny8oqPQRJOp9RSNTHVB2mgmAMihasntrphVFeYlBco,29887
|
|
36
36
|
nominal_api/scout_compute_api_deprecated/__init__.py,sha256=JrZKbt1ulYECTdUSkXn6On22Alu_cPUBjCRWTN3ctxk,5041
|
|
37
|
-
nominal_api/scout_compute_resolved_api/__init__.py,sha256=
|
|
37
|
+
nominal_api/scout_compute_resolved_api/__init__.py,sha256=BW4jT78H0_xrK1BP6anvZQxTNUE6Xv_pAIinJup7eWY,16090
|
|
38
38
|
nominal_api/scout_dataexport_api/__init__.py,sha256=CF2vuo8kUXLJ4B7w95STrU0UMoBGuziacH5Eo3uxYf4,2068
|
|
39
39
|
nominal_api/scout_datareview_api/__init__.py,sha256=kTDvcuav5bBm3IPhvmDrBTYyVD26iQVkyzdZnu75omE,11695
|
|
40
40
|
nominal_api/scout_datasource/__init__.py,sha256=Z1Msu1Daf8GlLuM3w5imyB-6DhTNZojxI6xpH1sSvhM,141
|
|
@@ -74,7 +74,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
|
|
|
74
74
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
|
75
75
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
|
76
76
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
79
|
-
nominal_api-0.
|
|
80
|
-
nominal_api-0.
|
|
77
|
+
nominal_api-0.753.0.dist-info/METADATA,sha256=VGvDRyy3jvWgddsy3vKnMNR8lmgTrSrvRwnmLWmaeV4,199
|
|
78
|
+
nominal_api-0.753.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
79
|
+
nominal_api-0.753.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
80
|
+
nominal_api-0.753.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|