cancel
Showing results for 
Search instead for 
Did you mean: 

Adding an alert to PdMS (Cloud Edition) via API

mth42
Participant
0 Kudos

Hello

We try to build a solution based on PdMS and SAP Leonardo IoT. Currently, we have some issues even getting up and running due to the lack of proper documentation and error handling within the APIs.

Up to now we failed to add an event to PdMS as described here:

https://help.sap.com/viewer/f213961d71824c3da59a7b9e0ef046a2/1902/en-US/40a48f65c79449228c4437ac9c0a...

but whatever we do, we currently end up in a 400 bad request or in a straight through Java exceptions delivered to us. There typically is an empty json respone. No information like, maybe "mandatory parameter missing", "thingid not found" are something similar. Just, 400 bad request. How shall we work with such an API? You can offered such hurdles in an open source environment, when you can look into the code and help yourself. Here we are lost.

1) Can someone provide a working example or knows of a tutorial that describes the generation of alterts? I guess we are missing just a minor detail that could be solved immediately with proper debug output.

2) How can we debug PdMS (Cloud Edition) APIs? Is there some tracing functionality? We need to have more information on what is wrong with an API call than just a java exception or an empty response...

For our examples we access the APIs as described here:

https://blogs.sap.com/2018/10/16/sap-predictive-maintenance-and-service-pdms-from-sensor-readings-to...

PS: Some of the example payloads are obviosouly wrong, sometimes the API description and the schema disagree on what is mandatory and what is not...

Accepted Solutions (0)

Answers (1)

Answers (1)

oliver_mainka
Active Participant
0 Kudos

Hi Matthias,

unfortunately I don't have an answer for you but I sent a link to your question to some technical PdMS people.

Best, Oliver