The attributes parameter is where you specify the value or values for the alert. This needs to be documented, but since you provided a code sample for the alert you want to create, I can provide the following snippet which will create an
InfoTablethat will work for your particular use case.
var alertAttributes = Resources["InfoTableFunctions"].CreateInfoTable();
Do you know how can I do the same thing with REST API calls, imagine a web site using thingworx only with its REST calls, so in my case, I dont know what would replace the snippet you gave.
Anyway, So, What I would like to do is to make a POST request to add an alert and I would like to send the following JSON like Hirotaka:
description: "humidity above threshold value",