This documentation provides an overview of the Reflection Emit API. It explains the core concepts, data structures, and usage examples.
This section lists the key endpoints for interacting with the Reflection Emit API.
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);
```