Condividi tramite


DataPoint Class

Definition

Defines the data point properties.

public class DataPoint : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DeviceRegistry.Models.DataPoint>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DeviceRegistry.Models.DataPoint>
type DataPoint = class
    interface IJsonModel<DataPoint>
    interface IPersistableModel<DataPoint>
Public Class DataPoint
Implements IJsonModel(Of DataPoint), IPersistableModel(Of DataPoint)
Inheritance
DataPoint
Implements

Constructors

DataPoint(String)

Initializes a new instance of DataPoint.

Properties

CapabilityId

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.

DataPointConfiguration

Protocol-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.

DataSource

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.

Name

The name of the data point.

ObservabilityMode

An indication of how the data point should be mapped to OpenTelemetry.

Explicit Interface Implementations

IJsonModel<DataPoint>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DataPoint>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataPoint>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataPoint>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DataPoint>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to