I am exploring the feasibility of accessing a JSON or CSV file in the EPL program through MongoDD database interaction, similar to how it’s done with Pandas in Python for an Excel file.
I came across this resource on the Apama Database: (ApamaDoc).
Could you provide a simple example of how to access a 2x2 table using these API calls? Would it be similar to how we access measurements? For instance, if I have a table like:
on all (Measurement(type="Child device ID") as ChildDeviceID and Measurement(type="Email To") as EmailTo)
could you explain what you mean by database access? Do you mean an external SQL database?
If you do not have a specific table you want to connect to, you can use the Cumulocity Inventory API. You would store the JSON inside a managed object:
and could then search for it like this:
or update it by sending back the Managed Object to Cumulocity IoT.
Let’s start by noting that this is a MongoDB database, which is a document-oriented or NoSQL database.
This database is the database of cumulocity, where APAMA resides.
I would like guidance on accessing the database from the initial setup and retrieving data from it. The table structure could be a simple 2x2 table, similar to the one I mentioned in the previous message.
I’ve explored the APAMA documentation, but I find myself a bit lost. That’s why I’m turning to the knowledgeable APAMA community for assistance.
If you need additional information from my end, please feel free to ask.
I’m eager to learn how to accomplish this task.
Thank you once again.