Partager via


DiscoveredEvent Class

Definition

Defines the event properties.

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

Constructors

DiscoveredEvent(String, String)

Initializes a new instance of DiscoveredEvent.

Properties

EventConfiguration

Stringified JSON that contains connector-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.

LastUpdatedOn

UTC timestamp indicating when the event was added or modified.

Name

The name of the event.

Topic

Object that describes the topic information for the specific event.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DiscoveredEvent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DiscoveredEvent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DiscoveredEvent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DiscoveredEvent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DiscoveredEvent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to