Class DataPoint
java.lang.Object
com.azure.resourcemanager.deviceregistry.models.DataPoint
Defines the data point properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the capabilityId property: The path to the type definition of the capability (e.g.Get the dataPointConfiguration property: Protocol-specific configuration for the data point.Get the dataSource property: The address of the source of the data in the asset (e.g.name()
Get the name property: The name of the data point.Get the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.void
validate()
Validates the instance.withCapabilityId
(String capabilityId) Set the capabilityId property: The path to the type definition of the capability (e.g.withDataPointConfiguration
(String dataPointConfiguration) Set the dataPointConfiguration property: Protocol-specific configuration for the data point.withDataSource
(String dataSource) Set the dataSource property: The address of the source of the data in the asset (e.g.Set the name property: The name of the data point.withObservabilityMode
(DataPointsObservabilityMode observabilityMode) Set the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.
-
Constructor Details
-
DataPoint
public DataPoint()Creates an instance of DataPoint class.
-
-
Method Details
-
name
Get the name property: The name of the data point.- Returns:
- the name value.
-
withName
Set the name property: The name of the data point.- Parameters:
name
- the name value to set.- Returns:
- the DataPoint object itself.
-
dataSource
Get the dataSource property: The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.- Returns:
- the dataSource value.
-
withDataSource
Set the dataSource property: The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.- Parameters:
dataSource
- the dataSource value to set.- Returns:
- the DataPoint object itself.
-
capabilityId
Get the capabilityId property: The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.- Returns:
- the capabilityId value.
-
withCapabilityId
Set the capabilityId property: The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.- Parameters:
capabilityId
- the capabilityId value to set.- Returns:
- the DataPoint object itself.
-
observabilityMode
Get the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.- Returns:
- the observabilityMode value.
-
withObservabilityMode
Set the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.- Parameters:
observabilityMode
- the observabilityMode value to set.- Returns:
- the DataPoint object itself.
-
dataPointConfiguration
Get the dataPointConfiguration property: Protocol-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.- Returns:
- the dataPointConfiguration value.
-
withDataPointConfiguration
Set the dataPointConfiguration property: Protocol-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.- Parameters:
dataPointConfiguration
- the dataPointConfiguration value to set.- Returns:
- the DataPoint object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-