Condividi tramite


AssetEvent Class

Definition

Defines the event properties.

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

Constructors

AssetEvent(String)

Initializes a new instance of AssetEvent.

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.

EventConfiguration

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

EventNotifier

The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.

Name

The name of the event.

ObservabilityMode

An indication of how the event should be mapped to OpenTelemetry.

Explicit Interface Implementations

IJsonModel<AssetEvent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AssetEvent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AssetEvent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AssetEvent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AssetEvent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to