Structure
DataConnector
public struct DataConnector: Decodable, Equatable
A Data Connector is a mechanism to send device events in real-time from Disruptive Technologies' backend to an external service. It can be set up to send specific types of events to a configurable endpoint through an HTTP POST request.
Functions relevant for DataConnector
s are implemented on the Disruptive
struct:
To learn more about Data Connectors, see the following article on the developer website:
Relationships
Nested Types
DataConnector.Metrics
Represents the metrics such as success-rate and latency for the past 3 hours of a Data Connector.
DataConnector.Status
The current status of a Data Connector. This will indicate whether or not the Data Connector is currently sending out events.
DataConnector.PushType
The mechanism used by a Data Connector to push device events to an external service.
Conforms To
Decodable
Equatable
Initializers
init(from:)
public init(from decoder: Decoder) throws
Properties
identifier
public let identifier: String
The unique identifier of the Data Connector. This will be different from thename
field in the REST API
in that it is just the identifier without the projects/*/dataconnectors/
prefix.
pushType
public let pushType: PushType
Describes the mechanism for how to push events to an external service, with configurable parameters. See more in the documentation for the type itself.
status
public let status: Status
The current status of the Data Connector. This will indicate whether or not the Data Connector is currently sending out events.
labels
public let labels: [String]
The labels that could be included along with an event (if the label is present on the device the event comes from).