ni.measurements.data.v1.data_store_pb2
Attributes
No outcome was specified. |
|
The measurement passed. |
|
The measurement failed. |
|
The outcome is indeterminate. |
|
Classes
Describes the outcome of a measurement |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
The information about the test result with which a test step is associated. |
|
Represents the metadata of the step that was taken |
|
Represents an error message resulting from a failed operation |
Package Contents
- ni.measurements.data.v1.data_store_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.measurements.data.v1.data_store_pb2.Outcome
Bases:
_OutcomeDescribes the outcome of a measurement
- ni.measurements.data.v1.data_store_pb2.OUTCOME_INDETERMINATE: Outcome
The outcome is indeterminate.
- ni.measurements.data.v1.data_store_pb2.global___Outcome
- class ni.measurements.data.v1.data_store_pb2.PublishedCondition(*, moniker=..., id=..., name=..., condition_type=..., step_id=..., test_result_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- id: str
The unique identifier of the condition. This can be used to reference and find the condition in the data store.
- property moniker: ni.datamonikers.v1.data_moniker_pb2.Moniker
The moniker of the condition that this value is associated with. This moniker returns a ni.protobuf.types.Vector
- Return type:
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurements.data.v1.data_store_pb2.global___PublishedCondition
- class ni.measurements.data.v1.data_store_pb2.PublishedMeasurement(*, moniker=..., published_conditions=..., id=..., test_result_id=..., step_id=..., software_item_ids=..., hardware_item_ids=..., test_adapter_ids=..., name=..., value_type=..., notes=..., start_date_time=..., end_date_time=..., outcome=..., parametric_index=..., error_information=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
moniker (ni.datamonikers.v1.data_moniker_pb2.Moniker | None)
published_conditions (collections.abc.Iterable[global___PublishedCondition] | None)
id (str)
test_result_id (str)
step_id (str)
software_item_ids (collections.abc.Iterable[str] | None)
hardware_item_ids (collections.abc.Iterable[str] | None)
test_adapter_ids (collections.abc.Iterable[str] | None)
name (str)
value_type (str)
notes (str)
start_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
end_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
outcome (global___Outcome)
parametric_index (int)
error_information (global___ErrorInformation | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- value_type: str
The type of the value of the measurement. This is used to filter measurements in queries.
- outcome: global___Outcome
The most ‘significant’ outcome that was observed when publishing to this measurement. Significance hierarchy: Unspecified (default) < Passed < Indeterminate < Failed
- property moniker: ni.datamonikers.v1.data_moniker_pb2.Moniker
The moniker providing access to measurement data. Scalar measurements are returned as Vectors; other types are returned as published.
- Return type:
- property published_conditions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PublishedCondition]
The conditions associated with the test step that owns this measurement.
- property software_item_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
The ids of the software items with which this measurement is associated.
- property hardware_item_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
The ids of the hardware items with which this measurement is associated.
- property test_adapter_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
The ids of the test adapters with which this measurement is associated.
- property start_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
The date and time at which the measurement was first published. If the measurement represents a parametric set, this is the timestamp of the first measurement published to the parametric set.
- property end_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
The date and time at which the measurement was last published. If the measurement represents a parametric set, this is the timestamp of the last measurement published to the parametric set.
- property error_information: global___ErrorInformation
Error or exception information in JSON format. If the measurement represents a parametric set, this contains the error information for the first error that occurred when publishing to the parametric set.
- Return type:
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurements.data.v1.data_store_pb2.global___PublishedMeasurement
- class ni.measurements.data.v1.data_store_pb2.TestResult(*, id=..., uut_instance_id=..., operator_id=..., test_station_id=..., test_description_id=..., software_item_ids=..., hardware_item_ids=..., test_adapter_ids=..., name=..., start_date_time=..., end_date_time=..., outcome=..., error_information=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageThe information about the test result with which a test step is associated.
- Parameters:
id (str)
uut_instance_id (str)
operator_id (str)
test_station_id (str)
test_description_id (str)
software_item_ids (collections.abc.Iterable[str] | None)
hardware_item_ids (collections.abc.Iterable[str] | None)
test_adapter_ids (collections.abc.Iterable[str] | None)
name (str)
start_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
end_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
outcome (global___Outcome)
error_information (global___ErrorInformation | None)
link (str)
extension (collections.abc.Mapping[str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, key=..., value=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
key (str)
value (ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- id: str
Optional. If you specify an id, the value is expected to be a parsable GUID. If you do not specify an id, one will be generated for you, and returned in the response.
- uut_instance_id: str
Optional. The id of the UUT instance associated with this test result. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- operator_id: str
Optional. The id of the operator associated with this test result. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- test_station_id: str
Optional. The id of the test station associated with this test result. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- test_description_id: str
Optional. The id of the test description associated with this test result. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- outcome: global___Outcome
Optional. Overall test result outcome (e.g., Passed, Failed, Indeterminate) The outcome can be set on creation if it is known at the time of creation. Otherwise, the outcome will be calculated based on the outcomes of the associated steps. If the outcome is calculated, the most ‘significant’ outcome is the outcome that will be reported. Significance hierarchy: Unspecified (default) < Passed < Indeterminate < Failed
- link: str
Optional. A link to a resource that describes the test result. This value is expected to be a valid URI.
- schema_id: str
Optional. If any of your messages contain ‘extension’, you must register a schema, and specify the schema id here. In that case, all metadata will be validated against the specified schema.
- property software_item_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Optional. The ids of the software item associated with this test result. These values are expected to be parsable GUIDs or aliases. They will always be returned from the service as GUIDs.
- property hardware_item_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Optional. The ids of the hardware item associated with this test result. These values are expected to be parsable GUIDs or aliases. They will always be returned from the service as GUIDs.
- property test_adapter_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Optional. The ids of the test adapters associated with this test result. These values are expected to be parsable GUIDs or aliases. They will always be returned from the service as GUIDs.
- property start_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
Optional. Start date and time of the test execution (timestamp)
- property end_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
Optional. End date and time of the test execution (timestamp)
- property error_information: global___ErrorInformation
Optional. Any error information associated with the test result. Error information can be set on creation if it is known at the time of creation. Otherwise, the error information will be calculated based on the outcomes of the associated steps. If the error information is calculated, the first observed error information will be reported.
- Return type:
- property extension: google.protobuf.internal.containers.MessageMap[str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue]
Optional. Any attributes used to extend the definition of your test result can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurements.data.v1.data_store_pb2.global___TestResult
- class ni.measurements.data.v1.data_store_pb2.Step(*, id=..., parent_step_id=..., test_result_id=..., test_id=..., name=..., step_type=..., notes=..., start_date_time=..., end_date_time=..., outcome=..., error_information=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of the step that was taken
- Parameters:
id (str)
parent_step_id (str)
test_result_id (str)
test_id (str)
name (str)
step_type (str)
notes (str)
start_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
end_date_time (ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp | None)
outcome (global___Outcome)
error_information (global___ErrorInformation | None)
link (str)
extension (collections.abc.Mapping[str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, key=..., value=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
key (str)
value (ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- test_result_id: str
Optional. The id of the test result associated with this test step. If not specified, a test result will be created from the information that can be implicitly obtained.
- test_id: str
Optional. The id of the test associated with this test step. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- outcome: global___Outcome
Optional. Overall step outcome (e.g., Passed, Failed, Indeterminate) The outcome can be set on creation if it is known at the time of creation. Otherwise, the outcome will be calculated based on the outcomes of the associated measurements. If the outcome is calculated, the most ‘significant’ outcome is the outcome that will be reported. Significance hierarchy: Unspecified (default) < Passed < Indeterminate < Failed
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property start_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
Start date and time of the test step (timestamp)
- property end_date_time: ni.protobuf.types.precision_timestamp_pb2.PrecisionTimestamp
End date and time of the test step (timestamp)
- property error_information: global___ErrorInformation
Optional. Any error information associated with the test step. Error information can be set on creation if it is known at the time of creation. Otherwise, the error information will be calculated based on the outcomes of the associated measurements. If the error information is calculated, the first observed error information will be reported.
- Return type:
- property extension: google.protobuf.internal.containers.MessageMap[str, ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue]
Optional. Any attributes used to extend the definition of your test step can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurements.data.v1.data_store_pb2.global___Step
- class ni.measurements.data.v1.data_store_pb2.ErrorInformation(*, error_code=..., message=..., source=...)
Bases:
google.protobuf.message.MessageRepresents an error message resulting from a failed operation
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurements.data.v1.data_store_pb2.global___ErrorInformation