Skip to Content
IntegrationExamples

Examples

Complete integration examples demonstrating common patterns.

Basic Telemetry Ingestion

Simple example of sending telemetry data to ModularIoT.

HTTP POST

Basic HTTP request with metrics payload.

Authentication

Including API key in headers.

Response Handling

Processing success and error responses.

Batch Ingestion

Efficiently sending multiple records.

Batch Construction

Building a batch payload.

Timing Strategy

When to send the batch.

Partial Failure Handling

Dealing with partially accepted batches.

Webhook Consumer

Receiving and processing symptom notifications.

Endpoint Setup

Creating a webhook receiver.

Payload Validation

Verifying webhook authenticity.

Processing Logic

Handling different event types.

SDK Usage

Using official SDKs for integration.

JavaScript Example

Node.js integration sample.

Python Example

Python integration sample.

Java Example

Java integration sample.

Complete Integration

End-to-end example combining:

  • Telemetry ingestion
  • Symptom subscription
  • Error handling
  • Monitoring

See the SDK documentation for complete code samples.

Last updated on