C8yEvent

public struct C8yEvent : JcEncodableContent, Identifiable

Represents an c8y event, refer to c8y API Reference Guide for more info

  • id

    Declaration

    Swift

    public internal(set) var id: String? { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var source: String { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var type: String? { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var time: Date { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var text: String { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var creationTime: Date? { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var eventDecodeError: String? { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var position: C8yManagedObject.Position? { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var info: Dictionary<String, C8yCustomAsset>? { get }
  • Creates a new event for the associated C8yManagedObject

    Declaration

    Swift

    public init(forSource: String, type: String, text: String)
  • Creates a new event for the associated C8yManagedObject representing a postional tracking event.

    Declaration

    Swift

    public init(forSource: String, position: C8yManagedObject.Position)
  • Creates a new event for the associated C8yManagedObject with custom properties

    Declaration

    Swift

    public init(forSource: String, type: String, text: String, properties: C8yCustomAsset)
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws