Reflection Emit API Documentation

Overview

This documentation provides an overview of the Reflection Emit API. It explains the core concepts, data structures, and usage examples.

Data Structures

API Endpoints

This section lists the key endpoints for interacting with the Reflection Emit API.

Example Usage

Here's a simple example of how to use the API to emit a reflection data point.

                
                const myState = new ReflectionEmitState();
                myState.timestamp = 1678886400;
                myState.resourceId = "myResource";
                myState.isProcessing = true;

                const event = new ReflectionEvent("DataPoint", {
                    parameters: {
                        name: "DataPoint",
                        value: 123
                    }
                });

                const emittedData = emit(myState, event);
                console.log(emittedData);
                ```