Skip to content

Commit 9abbbce

Browse files
dixonjoelJoel Dixon
andauthored
Pull latest version of ni-apis (#216)
* Update submodule to latest * Update submodule to latest * Regenerate data stubs --------- Co-authored-by: Joel Dixon <joel.dixon@emerson.com>
1 parent 050655f commit 9abbbce

3 files changed

Lines changed: 57 additions & 19 deletions

File tree

packages/ni.measurements.data.v1.proto/src/ni/measurements/data/v1/data_store_pb2/__init__.py

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ni.measurements.data.v1.proto/src/ni/measurements/data/v1/data_store_pb2/__init__.pyi

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ class PublishedMeasurement(google.protobuf.message.Message):
167167

168168
@property
169169
def error_information(self) -> global___ErrorInformation:
170-
"""Error or exception information in JSON format"""
170+
"""Error or exception information in JSON format. If the measurement represents a parametric set,
171+
this contains the error information for the first error that occurred when publishing to the parametric set.
172+
"""
171173

172174
def __init__(
173175
self,
@@ -230,6 +232,7 @@ class TestResult(google.protobuf.message.Message):
230232
START_DATE_TIME_FIELD_NUMBER: builtins.int
231233
END_DATE_TIME_FIELD_NUMBER: builtins.int
232234
OUTCOME_FIELD_NUMBER: builtins.int
235+
ERROR_INFORMATION_FIELD_NUMBER: builtins.int
233236
LINK_FIELD_NUMBER: builtins.int
234237
EXTENSIONS_FIELD_NUMBER: builtins.int
235238
SCHEMA_ID_FIELD_NUMBER: builtins.int
@@ -271,7 +274,13 @@ class TestResult(google.protobuf.message.Message):
271274
Expected format: ^[\\w\\(\\)-]([\\w.\\(\\) -]*[\\w\\(\\)-])?$
272275
"""
273276
outcome: global___Outcome.ValueType
274-
"""Optional. Overall test result outcome (e.g., Passed, Failed, Indeterminate)"""
277+
"""Optional. Overall test result outcome (e.g., Passed, Failed, Indeterminate)
278+
The outcome can be set on creation if it is known at the time of creation.
279+
Otherwise, the outcome will be calculated based on the outcomes of the
280+
associated steps. If the outcome is calculated, the most 'significant' outcome
281+
is the outcome that will be reported.
282+
Significance hierarchy: Unspecified (default) < Passed < Indeterminate < Failed
283+
"""
275284
link: builtins.str
276285
"""Optional. A link to a resource that describes the test result.
277286
This value is expected to be a valid URI.
@@ -307,6 +316,14 @@ class TestResult(google.protobuf.message.Message):
307316
def end_date_time(self) -> ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp:
308317
"""Optional. End date and time of the test execution (timestamp)"""
309318

319+
@property
320+
def error_information(self) -> global___ErrorInformation:
321+
"""Optional. Any error information associated with the test result. Error information can be
322+
set on creation if it is known at the time of creation. Otherwise, the error information
323+
will be calculated based on the outcomes of the associated steps. If the error information
324+
is calculated, the first observed error information will be reported.
325+
"""
326+
310327
@property
311328
def extensions(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue]:
312329
"""Optional. Any extensions to be associated with the test result."""
@@ -326,12 +343,13 @@ class TestResult(google.protobuf.message.Message):
326343
start_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None = ...,
327344
end_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None = ...,
328345
outcome: global___Outcome.ValueType = ...,
346+
error_information: global___ErrorInformation | None = ...,
329347
link: builtins.str = ...,
330348
extensions: collections.abc.Mapping[builtins.str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue] | None = ...,
331349
schema_id: builtins.str = ...,
332350
) -> None: ...
333-
def HasField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "start_date_time", b"start_date_time"]) -> builtins.bool: ...
334-
def ClearField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "extensions", b"extensions", "hardware_item_ids", b"hardware_item_ids", "id", b"id", "link", b"link", "name", b"name", "operator_id", b"operator_id", "outcome", b"outcome", "schema_id", b"schema_id", "software_item_ids", b"software_item_ids", "start_date_time", b"start_date_time", "test_adapter_ids", b"test_adapter_ids", "test_description_id", b"test_description_id", "test_station_id", b"test_station_id", "uut_instance_id", b"uut_instance_id"]) -> None: ...
351+
def HasField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "error_information", b"error_information", "start_date_time", b"start_date_time"]) -> builtins.bool: ...
352+
def ClearField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "error_information", b"error_information", "extensions", b"extensions", "hardware_item_ids", b"hardware_item_ids", "id", b"id", "link", b"link", "name", b"name", "operator_id", b"operator_id", "outcome", b"outcome", "schema_id", b"schema_id", "software_item_ids", b"software_item_ids", "start_date_time", b"start_date_time", "test_adapter_ids", b"test_adapter_ids", "test_description_id", b"test_description_id", "test_station_id", b"test_station_id", "uut_instance_id", b"uut_instance_id"]) -> None: ...
335353

336354
global___TestResult = TestResult
337355

@@ -368,6 +386,8 @@ class Step(google.protobuf.message.Message):
368386
NOTES_FIELD_NUMBER: builtins.int
369387
START_DATE_TIME_FIELD_NUMBER: builtins.int
370388
END_DATE_TIME_FIELD_NUMBER: builtins.int
389+
OUTCOME_FIELD_NUMBER: builtins.int
390+
ERROR_INFORMATION_FIELD_NUMBER: builtins.int
371391
LINK_FIELD_NUMBER: builtins.int
372392
EXTENSIONS_FIELD_NUMBER: builtins.int
373393
SCHEMA_ID_FIELD_NUMBER: builtins.int
@@ -395,6 +415,14 @@ class Step(google.protobuf.message.Message):
395415
"""Step type (e.g., Setup, Action, Measurement, Cleanup)"""
396416
notes: builtins.str
397417
"""Any notes about the step"""
418+
outcome: global___Outcome.ValueType
419+
"""Optional. Overall step outcome (e.g., Passed, Failed, Indeterminate)
420+
The outcome can be set on creation if it is known at the time of creation.
421+
Otherwise, the outcome will be calculated based on the outcomes of the
422+
associated measurements. If the outcome is calculated, the most 'significant' outcome
423+
is the outcome that will be reported.
424+
Significance hierarchy: Unspecified (default) < Passed < Indeterminate < Failed
425+
"""
398426
link: builtins.str
399427
"""A link to a resource that describes the step.
400428
This value is expected to be a valid URI.
@@ -413,6 +441,14 @@ class Step(google.protobuf.message.Message):
413441
def end_date_time(self) -> ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp:
414442
"""End date and time of the test step (timestamp)"""
415443

444+
@property
445+
def error_information(self) -> global___ErrorInformation:
446+
"""Optional. Any error information associated with the test step. Error information can be
447+
set on creation if it is known at the time of creation. Otherwise, the error information
448+
will be calculated based on the outcomes of the associated measurements. If the
449+
error information is calculated, the first observed error information will be reported.
450+
"""
451+
416452
@property
417453
def extensions(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue]:
418454
"""Any extensions to be associated with the test step"""
@@ -429,12 +465,14 @@ class Step(google.protobuf.message.Message):
429465
notes: builtins.str = ...,
430466
start_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None = ...,
431467
end_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None = ...,
468+
outcome: global___Outcome.ValueType = ...,
469+
error_information: global___ErrorInformation | None = ...,
432470
link: builtins.str = ...,
433471
extensions: collections.abc.Mapping[builtins.str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue] | None = ...,
434472
schema_id: builtins.str = ...,
435473
) -> None: ...
436-
def HasField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "start_date_time", b"start_date_time"]) -> builtins.bool: ...
437-
def ClearField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "extensions", b"extensions", "id", b"id", "link", b"link", "name", b"name", "notes", b"notes", "parent_step_id", b"parent_step_id", "schema_id", b"schema_id", "start_date_time", b"start_date_time", "test_id", b"test_id", "test_result_id", b"test_result_id", "type", b"type"]) -> None: ...
474+
def HasField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "error_information", b"error_information", "start_date_time", b"start_date_time"]) -> builtins.bool: ...
475+
def ClearField(self, field_name: typing.Literal["end_date_time", b"end_date_time", "error_information", b"error_information", "extensions", b"extensions", "id", b"id", "link", b"link", "name", b"name", "notes", b"notes", "outcome", b"outcome", "parent_step_id", b"parent_step_id", "schema_id", b"schema_id", "start_date_time", b"start_date_time", "test_id", b"test_id", "test_result_id", b"test_result_id", "type", b"type"]) -> None: ...
438476

439477
global___Step = Step
440478

0 commit comments

Comments
 (0)